Skip to content
Snippets Groups Projects
Commit f3f74f82 authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

Merge pull request #3257 from owncloud/fix_3251

Fix 3251
parents 9f3c156a ee1ce055
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,7 @@ $commonlangcodes = array(
$languageNames=include 'languageCodes.php';
$languages=array();
// Initialize array, so we can substitue later with our in $commonlangcodes specified order
$commonlanguages = array_fill(0, count($commonlangcodes), "");
$commonlanguages = array();
foreach($languageCodes as $lang) {
$l=OC_L10N::get('settings', $lang);
if(substr($l->t('__language_name__'), 0, 1)!='_') {//first check if the language name is in the translation file
......@@ -52,6 +51,8 @@ foreach($languageCodes as $lang) {
}
}
ksort($commonlanguages);
// sort now by displayed language not the iso-code
usort( $languages, function ($a, $b) {
return strcmp($a['name'], $b['name']);
......
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