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

🚑 fix(config) Sort languages in configuration drop down

This adds back sorting on the configuration side so that selecting the
 language is easier.

issue #5820
parent 6a7fb7fa
...@@ -452,6 +452,7 @@ class configInLdap extends simplePlugin ...@@ -452,6 +452,7 @@ class configInLdap extends simplePlugin
$attributesInfo = static::getAttributesInfo(); $attributesInfo = static::getAttributesInfo();
/* Languages */ /* Languages */
$languages = Language::list(TRUE); $languages = Language::list(TRUE);
asort($languages);
$languages = array_merge(array("" => _("Automatic")), $languages); $languages = array_merge(array("" => _("Automatic")), $languages);
$attributesInfo['look_n_feel']['attrs'][0]->setChoices(array_keys($languages), array_values($languages)); $attributesInfo['look_n_feel']['attrs'][0]->setChoices(array_keys($languages), array_values($languages));
/* Timezones */ /* Timezones */
......
...@@ -65,6 +65,7 @@ class setupStepLanguage extends setupStep ...@@ -65,6 +65,7 @@ class setupStepLanguage extends setupStep
function execute() function execute()
{ {
$languages = Language::list(TRUE); $languages = Language::list(TRUE);
asort($languages);
$languages = array_merge(array("" => _("Automatic")), $languages); $languages = array_merge(array("" => _("Automatic")), $languages);
$this->attributesAccess['lang_selected']->setChoices(array_keys($languages), array_values($languages)); $this->attributesAccess['lang_selected']->setChoices(array_keys($languages), array_values($languages));
return parent::execute(); return parent::execute();
......
Supports Markdown
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