summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBogomil Shopov <shopov@kolabsys.com>2011-04-15 13:58:18 (GMT)
committerBogomil Shopov <shopov@kolabsys.com>2011-04-15 13:58:18 (GMT)
commit0d13c638eb56f7ac2652fe2592c47f209930104f (patch)
tree9772c10116dffc065b4ad917fab28d64d2efc725 /lib
parenta218a1b5f0d076907fd9bb2685d495a1ef35de4f (diff)
downloadkolab-webadmin-0d13c638eb56f7ac2652fe2592c47f209930104f.tar.gz
Fixing problem with multi-language: https://bugzilla.kolabsys.com/show_bug.cgi?id=69
Diffstat (limited to 'lib')
-rwxr-xr-x[-rw-r--r--]lib/KolabAdmin/include/locale.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/KolabAdmin/include/locale.php b/lib/KolabAdmin/include/locale.php
index 4172a42..2fd6202 100644..100755
--- a/lib/KolabAdmin/include/locale.php
+++ b/lib/KolabAdmin/include/locale.php
@@ -22,8 +22,6 @@
// PENDING(romain,steffen): Clean up so this is not a mix of code and global functions
-session_start();
-
function supported_lang($lang) {
// REMEMBER TO UPDATE THIS WHEN ADDING NEW LANGUAGES
@@ -99,6 +97,9 @@ function setLanguage($lang)
if(!empty($_REQUEST["lang"])) {
setLanguage($_REQUEST["lang"]);
}
+//reset the Locale BEFORE adding a new one:
+setlocale(LC_ALL,null);
+
// I18N support information
$language = getLanguage();