Commit d05b1e91 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(core) Sort languages by displayed name

issue #5761
parent db948a97
......@@ -2187,6 +2187,8 @@ function get_languages($languages_in_own_language = FALSE, $strip_region_tag = F
}
}
}
asort($ret);
return $ret;
}
......
......@@ -447,7 +447,6 @@ class configInLdap extends simplePlugin
$attributesInfo = static::getAttributesInfo();
/* Languages */
$languages = get_languages(TRUE);
asort($languages);
$languages = array_merge(array("" => _("Automatic")), $languages);
$attributesInfo['look_n_feel']['attrs'][0]->setChoices(array_keys($languages), array_values($languages));
/* Timezones */
......
......@@ -65,7 +65,6 @@ class setupStepLanguage extends setupStep
function execute()
{
$languages = get_languages(TRUE);
asort($languages);
$languages = array_merge(array("" => _("Automatic")), $languages);
$this->attributesAccess['lang_selected']->setChoices(array_keys($languages), array_values($languages));
return parent::execute();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment