From: hickert Date: Wed, 5 Sep 2007 05:52:37 +0000 (+0000) Subject: Language settings wasn't initialized correctly. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fb38340768fa2e1acda91cc51b692da05d2d6295;p=gosa.git Language settings wasn't initialized correctly. Appended .UTF to actually selected language string. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7217 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/setup.php b/html/setup.php index 823994e4b..5ba7e4a5b 100644 --- a/html/setup.php +++ b/html/setup.php @@ -92,6 +92,10 @@ if(isset($_POST['lang_selected'])){ } $lang = $_SESSION['lang']; + +if(!preg_match("/utf8/i",$lang)){ + $lang .= ".UTF8"; +} putenv("LANGUAGE="); putenv("LANG=$lang"); setlocale(LC_ALL, $lang);