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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user