From 2b74e8d0ef05d1e1f105fe059dff27b3fcb56b2b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Sep 2007 05:58:08 +0000 Subject: [PATCH] Updated language detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7219 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/setup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/setup.php b/html/setup.php index 38dc97d2c..623394b1a 100644 --- a/html/setup.php +++ b/html/setup.php @@ -93,6 +93,10 @@ if(isset($_POST['lang_selected'])){ } $lang = $_SESSION['lang']; +/* Append .UTF-8 to language string if necessary */ +if(!preg_match("/utf(-)8$/i",$lang)){ + $lang .= ".UTF-8"; +} putenv("LANGUAGE="); putenv("LANG=$lang"); setlocale(LC_ALL, $lang); -- 2.30.2