PDA

View Full Version : Current language on templates



codemaster2008
01-23-10, 05:19 PM
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.

m00
01-23-10, 05:31 PM
Try the following code:

{if $language eq "English"}
Hello, English person!
{elseif $language eq "Dutch"}
Hallo, Nederlands persoon!
{/if}

codemaster2008
01-23-10, 06:59 PM
That's exactly what i need, thanks a lot.