Check if the server has the module gettext , if not
return immediately in the function set_language
This commit is contained in:
parent
edfa6f2b01
commit
bc59ff33a9
1 changed files with 6 additions and 0 deletions
|
|
@ -670,6 +670,12 @@ function set_language()
|
|||
// desactivate local check
|
||||
if ( defined("LOCALE") && LOCALE==0 ) return;
|
||||
if ( ! isset ($_SESSION['g_lang'])) return;
|
||||
|
||||
/*
|
||||
* If translation is not supported by current
|
||||
*/
|
||||
if (! function_exists("bindtextdomain")) return;
|
||||
|
||||
$dir = "";
|
||||
// set differently the language depending of the operating system
|
||||
if (what_os() == 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue