Need a PHP variable for active language code
|Posted: Sun, 2009-10-25 12:30|
I'm using a third-party PHP script in Gallery and I need to define in that script a variable representing the active language code selected for Gallery (in my case 'pt_PT' or 'en_US'). Usually there is something like $locale, $lang, etc but I can't find one in Gallery scripts to use it in the third-party script. I've tried $_SESSION['language'] and similar but doesn't work. Any ideas, please?