Code

Cache results from get_module_departments.
[gosa.git] / setup / class_setupStep_Language.inc
index 5f2e98588870954aa9b12a54f4ecbae455e39840..e1b5e72ab61c11b2487740b8afb5063b924d967f 100644 (file)
@@ -39,16 +39,12 @@ class Step_Language extends setup_step
   {
     $this->s_title      = _("Language setup");
     $this->s_title_long = _("Language setup");
-    $this->s_info       = _("This step is allows you to select your prefered language.");
+    $this->s_info       = _("This step allows you to select your preferred language.");
   }
   
   function execute()
   {
-    $this->languages = array(""      => _("Automatic"),
-                             "de_DE" => _("German"),
-                             "fr_FR" => _("French"),
-                             "en_EN" => _("English"),
-                             "ru_RU" => _("Russian"));
+    $this->languages = array_merge(array(""      => _("Automatic")),get_languages(TRUE));
     asort($this->languages);
     $smarty = get_smarty();
     $smarty->assign("languages",    $this->languages);