From 13313d78b92a1951f8924cc9567979608e104dea Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Sep 2007 05:57:20 +0000 Subject: [PATCH] Updated langauage detection in setup git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7218 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/setup.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/setup.php b/html/setup.php index 5ba7e4a5b..60917222a 100644 --- a/html/setup.php +++ b/html/setup.php @@ -92,9 +92,9 @@ if(isset($_POST['lang_selected'])){ } $lang = $_SESSION['lang']; - -if(!preg_match("/utf8/i",$lang)){ - $lang .= ".UTF8"; +/* Append .UTF-8 to language string if necessary */ +if(!preg_match("/utf(-)8$/i",$lang)){ + $lang .= ".UTF-8"; } putenv("LANGUAGE="); putenv("LANG=$lang"); -- 2.30.2