Code

Added chinese to the list of language selections
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jun 2007 05:07:44 +0000 (05:07 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jun 2007 05:07:44 +0000 (05:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6522 594d385d-05f5-0310-b6e9-bd551577e9d8

html/main.php
plugins/personal/generic/class_user.inc
setup/class_setupStep_Language.inc

index 1796905bd7bcae5a70b69f20d59814d9b0b0791a..70139695098cb8f437133ffa988213665e0035bf 100644 (file)
@@ -136,6 +136,7 @@ if ($config->data['MAIN']['LANG'] == ""){
 }
 
 $lang.=".UTF-8";
+
 putenv("LANGUAGE=");
 putenv("LANG=$lang");
 setlocale(LC_ALL, $lang);
index 9749942d5f3942eee64c486f76226f84e081a7d2..8c1b16b0eeb529d01a4c6888c22484421080458e 100644 (file)
@@ -263,7 +263,8 @@ class user extends plugin
     /* Assign prefered langage */
     $language= array(0 => "&nbsp;", "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 */
index 76106ebd04534d97c12f9f102821d8eebe79634b..986c3354251792de7d6930210bf8036a456729b1 100644 (file)
@@ -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();