From 37179d3551c8396d91ac25937e8e102cc9726953 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 4 Jun 2007 05:07:44 +0000 Subject: [PATCH] Added chinese to the list of language selections git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6522 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 1 + plugins/personal/generic/class_user.inc | 3 ++- setup/class_setupStep_Language.inc | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/html/main.php b/html/main.php index 1796905bd..701396950 100644 --- a/html/main.php +++ b/html/main.php @@ -136,6 +136,7 @@ if ($config->data['MAIN']['LANG'] == ""){ } $lang.=".UTF-8"; + putenv("LANGUAGE="); putenv("LANG=$lang"); setlocale(LC_ALL, $lang); diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 9749942d5..8c1b16b0e 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -263,7 +263,8 @@ class user extends plugin /* Assign prefered langage */ $language= array(0 => " ", "fr_FR" => ("fr_FR"), "en_EN" => ("en_EN"), "de_DE" => ("de_DE"), "it_IT" => ("it_IT"), - "nl_NL" => ("nl_NL"), "ru_RU" => ("ru_RU")); + "nl_NL" => ("nl_NL"), "ru_RU" => ("ru_RU"), + "zh_CN" => ("zh_CN")); $smarty->assign("preferredLanguage_list", $language); /* Get random number for pictures */ diff --git a/setup/class_setupStep_Language.inc b/setup/class_setupStep_Language.inc index 76106ebd0..986c33542 100644 --- a/setup/class_setupStep_Language.inc +++ b/setup/class_setupStep_Language.inc @@ -48,6 +48,7 @@ class Step_Language extends setup_step "de_DE" => _("German"), "fr_FR" => _("French"), "en_EN" => _("English"), + "zh_CN" => _("Chinese"), "ru_RU" => _("Russian")); asort($this->languages); $smarty = get_smarty(); -- 2.30.2