Check which language is active

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
Marc1983
Forum Members
Forum Members
Posts: 13
Joined: Thu Jan 15, 2009 7:43 am

Check which language is active

Post 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
alby

Re: Check which language is active

Post 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
Marc1983
Forum Members
Forum Members
Posts: 13
Joined: Thu Jan 15, 2009 7:43 am

Re: Check which language is active

Post 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!  ;)
alby

Re: Check which language is active

Post 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
Locked

Return to “[locked] CMSMS MLE fork”