Language variable for a condition in a Smarty Template
Hello,
In a Smarty template I use with a plugin list, I need conditions depending on the language of the page.
Looking in the debug console of Tiki, I have a variable $frontendLang that equal the language abbreviation for the current page.
sprint $frontendLang
frontendLang = fr
In my Smarty template I set then:
{if $frontendLang eq 'fr'}En francais{/if}
But that the condition is not working (text is always displayed).
What am I missing ?
Note this is just a sample my code should be more like this in the end;
{CODE()}
{if $frontendLang eq 'fr'}
...french content
{elseif $frontendLang eq 'he'}
...hebrew content
{else}
...english content
{/if}