From 2a4cd6f89f706635f05be5716a4913b62026a1a6 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 4 Jun 2007 05:34:02 +0000 Subject: [PATCH] Added zh_* mapping to zh_CN git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6525 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 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)); } -- 2.30.2