From: cajus Date: Mon, 4 Jun 2007 05:34:02 +0000 (+0000) Subject: Added zh_* mapping to zh_CN X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2a4cd6f89f706635f05be5716a4913b62026a1a6;p=gosa.git Added zh_* mapping to zh_CN git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6525 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 1fdcf1a0b..144e03be0 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -187,6 +187,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)); }