From c6d6eaca599e1c1e2dc3611426174ef0b72adb0a Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 4 Jun 2007 05:33:26 +0000 Subject: [PATCH] Added hard coded zh_CN in case of browser zh_* matches git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6524 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/functions.inc b/include/functions.inc index 46d91667a..14e35c412 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -185,6 +185,11 @@ function get_browser_language() } } + /* We've just one zh variation. Fix code... */ + if (preg_match('/zh/', $lang)){ + return ("zh_CN"); + } + return (strtolower($lang)."_".strtoupper($lang)); } -- 2.30.2