[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)
- [Noalyss-commit] [noalyss] branch master updated (edfa6f2 -> df17810), Dany De Bontridder, 2015/12/02
- [Noalyss-commit] [noalyss] 01/05: Check if the server has the module gettext , if not return immediately in the function set_language,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 03/05: Adapt for mobile, hide elt when needed, Dany De Bontridder, 2015/12/02
- [Noalyss-commit] [noalyss] 04/05: Task #1231 - Cohérence listes CSV Journaux #1231 Add class for CSV, Dany De Bontridder, 2015/12/02
- [Noalyss-commit] [noalyss] 02/05: remove test for user "plugin-only" they don't exist anymore, Dany De Bontridder, 2015/12/02
- [Noalyss-commit] [noalyss] 05/05: Task #1231 - Cohérence listes CSV Journaux #1231 Rewrite code for export CSV for ANC part, Dany De Bontridder, 2015/12/02