noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/05: Check if the server has the module get


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/05: Check if the server has the module gettext , if not return immediately in the function set_language
Date: Wed, 02 Dec 2015 14:20:00 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit bc59ff33a96de060f5e283f822bb5624c5b8b2a3
Author: Dany De Bontridder <address@hidden>
Date:   Tue Dec 1 18:17:58 2015 +0100

    Check if the server has the module gettext , if not
    return immediately in the function set_language
---
 include/lib/ac_common.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index 9c17bc4..faf3f99 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]