Get display language in smarty template

Need help with your SocialEngine installation? ... or just want to share some thoughts about SE 2?

Get display language in smarty template

Postby sygram » Thu Feb 25, 2010 7:50 pm

Hi there,

i would like to display different things based on language selection. I am looking something like :

if (selectedLanguage="English") {
1}
else{
2}

Is there a global variable (some kind of id) that i can use in my smarty template ?

Thank you very much

Best Regards,

Leon
sygram
SE Newbie
 
Posts: 5
Joined: Sun Nov 08, 2009 9:50 pm
SE Skills: + + +

Re: Get display language in smarty template

Postby sygram » Thu Feb 25, 2010 7:54 pm

Got it,

posting for someone else :

{$global_language}
sygram
SE Newbie
 
Posts: 5
Joined: Sun Nov 08, 2009 9:50 pm
SE Skills: + + +


Return to Discussions, Help & Community-Support (SocialEngine 2)

Who is online

Users browsing this forum: No registered users and 1 guest