Serxu Posted May 1, 2009 Share Posted May 1, 2009 I want do this: {if lang==English} asdasd {else} dsadsa {/if} How to do it? Can you help me? SALUDOS 0 Quote Link to comment Share on other sites More sharing options...
VS-fam Posted May 11, 2009 Share Posted May 11, 2009 Pick a variable as reference from the English.txt lang file. Example: $LANG.globalsystemname Then set your conditions around that variable default value in English.txt like this: {if $LANG.globalsystemname eq "Portal Home"} English text {else} Other Language text {/if} That could be a workaround. 0 Quote Link to comment Share on other sites More sharing options...
Lightwave Posted May 11, 2009 Share Posted May 11, 2009 The variable you want to use is $language {if $language == English } code {/if} 0 Quote Link to comment Share on other sites More sharing options...
ljesh Posted May 15, 2009 Share Posted May 15, 2009 (edited) What if we have 3 languages? {if $language == English } ENGLISH {if $language == German } GERMAN {else} Italian Can anyone suggest? Edited May 15, 2009 by ljesh 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted May 6, 2011 Share Posted May 6, 2011 What if we have 3 languages? {if $language == English } ENGLISH {if $language == German } GERMAN {else} Italian Can anyone suggest? try this. {if $language == English } ENGLISH {elseif $language == German } GERMAN {elseif $language == Greek } Greek {/if} 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.