Add Latgalian translation

Closes #12415
This commit is contained in:
sledgehammer999 2020-10-25 01:02:54 +03:00
parent 989fdb5895
commit 6ec07d744e
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
7 changed files with 13563 additions and 0 deletions

View file

@ -575,6 +575,10 @@ void OptionsDialog::initializeLanguageCombo()
// QLocale doesn't work with that locale. Esperanto isn't a "real" language.
languageName = QString::fromUtf8(C_LOCALE_ESPERANTO);
}
else if (localeStr.startsWith("ltg", Qt::CaseInsensitive)) {
// QLocale doesn't work with that locale.
languageName = QString::fromUtf8(C_LOCALE_LATGALIAN);
}
else {
QLocale locale(localeStr);
languageName = languageToLocalizedString(locale);
@ -1549,6 +1553,9 @@ void OptionsDialog::setLocale(const QString &localeStr)
if (localeStr.startsWith("eo", Qt::CaseInsensitive)) {
name = "eo";
}
else if (localeStr.startsWith("ltg", Qt::CaseInsensitive)) {
name = "ltg";
}
else {
QLocale locale(localeStr);
if (locale.language() == QLocale::Uzbek)