mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
parent
989fdb5895
commit
6ec07d744e
7 changed files with 13563 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue