Skip to content

Commit

Permalink
Sort translation locales
Browse files Browse the repository at this point in the history
  • Loading branch information
slu125 committed Nov 9, 2013
1 parent 81b2130 commit 5da69d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Controller/TranslateController.php
Expand Up @@ -74,6 +74,9 @@ public function indexAction()
}

$locales = array_keys($files[$domain]);

natsort($locales);

if ((!$locale = $this->request->query->get('locale')) || !isset($files[$domain][$locale])) {
$locale = reset($locales);
}
Expand Down Expand Up @@ -131,4 +134,4 @@ public function indexAction()
'sourceLanguage' => $this->sourceLanguage,
);
}
}
}

0 comments on commit 5da69d3

Please sign in to comment.