Sort languages list
This commit is contained in:
parent
a280ce33a5
commit
fbda1bb2cb
@ -107,6 +107,7 @@ $langForm = '
|
|||||||
<u>' . $lang["language"] . '</u><br />
|
<u>' . $lang["language"] . '</u><br />
|
||||||
<form>
|
<form>
|
||||||
<select name="units" onchange="setLang(this.options[this.selectedIndex].value);">';
|
<select name="units" onchange="setLang(this.options[this.selectedIndex].value);">';
|
||||||
|
asort($langsArr);
|
||||||
foreach ($langsArr as $langCode => $langName) {
|
foreach ($langsArr as $langCode => $langName) {
|
||||||
$langForm .= '<option value="' . $langCode . '"' . (($config::$lang == $langCode) ? ' selected' : '') . '>' . $langName . '</option>';
|
$langForm .= '<option value="' . $langCode . '"' . (($config::$lang == $langCode) ? ' selected' : '') . '>' . $langName . '</option>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user