codemaster2008 Posted January 23, 2010 Share Posted January 23, 2010 Hello there; I'm working on a customization and i was wondering how cna i indentify the current language on thempaltes. I now if use, let's say $LANG.globalsystemname, it will return the "globalsystemname" on the current selected language but what i need is to identify the selected language. Something like: {if $LANG.selectedlanguage eq "English"} {do something here} {/if} Hope somebody can help me with that. Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted January 23, 2010 Share Posted January 23, 2010 Try the following code: {if $language eq "English"} Hello, English person! {elseif $language eq "Dutch"} Hallo, Nederlands persoon! {/if} 0 Quote Link to comment Share on other sites More sharing options...
codemaster2008 Posted January 23, 2010 Author Share Posted January 23, 2010 That's exactly what i need, thanks a lot. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.