Language

I would like to do somthing like :

if(language=='english')

instructions.

if(language=='french')

instructions.

How can i get the language ?

Quote · 25 Apr 2010

$sCurLang = getCurrentLangName();

I believe it returns the 2 letter code. Like en for english.

https://www.deanbassett.com
Quote · 25 Apr 2010

Ok i tested :

$sCurLang = getCurrentLangName();
////language replace
if($sCurLang==2)
{
instruction.
}

but it's not working :(

Quote · 25 Apr 2010

Oh thank you it's working if($sCurLang=='en')

Quote · 25 Apr 2010

Care to share on what it is you're actually doing?

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 25 Apr 2010

I am trying to replace the cats name when changing the language. "Translation"

Quote · 25 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.