2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Display languages native names in the box.

Also don't suggest the old official languages in a popup.
This commit is contained in:
John Preston
2017-06-04 16:09:53 +03:00
parent 85e6f55536
commit f3e65d400d
5 changed files with 45 additions and 23 deletions

View File

@@ -29,6 +29,20 @@ constexpr auto kLegacyLanguageNone = -2;
constexpr auto kLegacyCustomLanguage = -1;
constexpr auto kLegacyDefaultLanguage = 0;
constexpr str_const kLegacyLanguages[] = {
"en",
"it",
"es",
"de",
"nl",
"pt_BR",
"ko",
};
inline QString ConvertLegacyLanguageId(const QString &languageId) {
return languageId.toLower().replace('_', '-');
}
QString DefaultLanguageId();
class Instance;