summaryrefslogtreecommitdiff
path: root/program/steps/settings/func.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-10-16 19:14:00 +0000
committerthomascube <thomas@roundcube.net>2005-10-16 19:14:00 +0000
commitcd900dd71f56698b2c8ffedeb1af342e79faf0db (patch)
tree910d16436eb8d0979cac6849a631956b140ad90d /program/steps/settings/func.inc
parent9fee0ed9af6bb1daa3af2ff7290f5589040b4821 (diff)
Improved folder display; added Portuguese and Catalan translation
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&ccedil;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,