Merge pull request #1164 from Scrumplex/fix-sort-languages
This commit is contained in:
commit
58a5331f7b
1 changed files with 5 additions and 1 deletions
|
@ -86,6 +86,10 @@ struct Language
|
|||
else {
|
||||
result = locale.nativeLanguageName();
|
||||
}
|
||||
|
||||
if (result.isEmpty()) {
|
||||
result = key;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -394,7 +398,7 @@ void TranslationsModel::reloadLocalFiles()
|
|||
return false;
|
||||
}
|
||||
}
|
||||
return a.key < b.key;
|
||||
return a.languageName().toLower() < b.languageName().toLower();
|
||||
});
|
||||
endInsertRows();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue