sorting languages alphabeticaly

This commit is contained in:
Ralf Becker 2004-07-10 11:20:10 +00:00
parent 5ea042041c
commit c0f4f45767

View File

@ -379,6 +379,7 @@
{
$select_lang = '<select name="lang">';
$langs = $GLOBALS['phpgw']->translation->get_installed_langs();
uasort($langs,'strcasecmp');
foreach ($langs as $key => $name) // if we have a translation use it
{
$select_lang .= "\n\t".'<option value="'.$key.'"'.($key == $GLOBALS['phpgw_info']['user']['preferences']['common']['lang'] ? ' selected="1"' : '').'>'.$name.'</option>';