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