Skip to content
Snippets Groups Projects
Commit 45a8a9c3 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Sort language drop down by language code.

This seemed the logical place to do it, because it's essentially
a presentation thing (so in Template, not Locale). There's likely
something to be said for sorting by key aswell as sorting by
translated language name. Picked key for now, seems most predictable.
parent edfec09e
No related branches found
No related tags found
No related merge requests found
......@@ -330,6 +330,7 @@ class SimpleSAML_XHTML_Template
private function generateLanguageBar()
{
$languages = $this->translator->getLanguage()->getLanguageList();
ksort($languages);
$langmap = null;
if (count($languages) > 1) {
$parameterName = $this->getTranslator()->getLanguage()->getLanguageParameterName();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment