Page 1 of 1

Check which language is active

Posted: Sun Mar 15, 2009 1:56 am
by Marc1983
Hello,

Anybody knows how to check which language is active? I want to use it for modules, something like this:
If language=language then do something

Re: Check which language is active

Posted: Mon Mar 16, 2009 8:07 am
by alby
Marc1983 wrote: Anybody knows how to check which language is active? I want to use it for modules, something like this:
If language=language then do something
You have $lang variable

Alby

Re: Check which language is active

Posted: Mon Mar 16, 2009 6:59 pm
by Marc1983
Ok thnx! But how should i construct an if-statement from that? I'm sorry, not quite familiar with smarty yet. ;)

Thnx for the gr8 module btw!  ;)

Re: Check which language is active

Posted: Mon Mar 16, 2009 7:43 pm
by alby
Marc1983 wrote: Ok thnx! But how should i construct an if-statement from that? I'm sorry, not quite familiar with smarty yet. ;)

Thnx for the gr8 module btw!  ;)
http://www.smarty.net/manual/en/languag ... ion.if.php

Alby