From: cajus Date: Mon, 4 Jun 2007 05:33:26 +0000 (+0000) Subject: Added hard coded zh_CN in case of browser zh_* matches X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c6d6eaca599e1c1e2dc3611426174ef0b72adb0a;p=gosa.git 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 --- 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)); }