Code

Language settings wasn't initialized correctly.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Sep 2007 05:52:37 +0000 (05:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Sep 2007 05:52:37 +0000 (05:52 +0000)
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

html/setup.php

index 823994e4b397991b2f48e9efb5adac5a2e3fb374..5ba7e4a5bbb974b0c867bc655f563dcb4dd28cce 100644 (file)
@@ -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);