summaryrefslogtreecommitdiff
path: root/program/steps/settings/func.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/settings/func.inc')
-rw-r--r--program/steps/settings/func.inc12
1 files changed, 5 insertions, 7 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index a7571e052..621acd96c 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -50,15 +50,13 @@ function rcmail_user_prefs_form($attrib)
'prettydate' => array('type' => 'text'));
// show language selection
+ $a_lang = rcube_list_languages();
+ asort($a_lang);
+
$field_id = 'rcmfd_lang';
$select_lang = new select(array('name' => '_language', 'id' => $field_id));
- $select_lang->add('Dansk', 'da');
- $select_lang->add('Deutsch', 'de');
- $select_lang->add('English', 'en');
- $select_lang->add('Espanol', 'es');
- $select_lang->add('Français', 'fr');
- $select_lang->add('Italiano', 'it');
- $select_lang->add('Nederlands', 'nl');
+ $select_lang->add(array_values($a_lang), array_keys($a_lang));
+
$out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s</td></tr>\n",
$field_id,