mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Add new languages
* Azerbaijani * Estonian
This commit is contained in:
parent
162421a59a
commit
ffebe82586
9 changed files with 27311 additions and 0 deletions
|
@ -88,6 +88,7 @@ namespace
|
|||
{
|
||||
case QLocale::Arabic: return QString::fromUtf8(C_LOCALE_ARABIC);
|
||||
case QLocale::Armenian: return QString::fromUtf8(C_LOCALE_ARMENIAN);
|
||||
case QLocale::Azerbaijani: return QString::fromUtf8(C_LOCALE_AZERBAIJANI);
|
||||
case QLocale::Basque: return QString::fromUtf8(C_LOCALE_BASQUE);
|
||||
case QLocale::Bulgarian: return QString::fromUtf8(C_LOCALE_BULGARIAN);
|
||||
case QLocale::Byelorussian: return QString::fromUtf8(C_LOCALE_BYELORUSSIAN);
|
||||
|
@ -110,6 +111,7 @@ namespace
|
|||
case QLocale::UnitedKingdom: return QString::fromUtf8(C_LOCALE_ENGLISH_UNITEDKINGDOM);
|
||||
default: return QString::fromUtf8(C_LOCALE_ENGLISH);
|
||||
}
|
||||
case QLocale::Estonian: return QString::fromUtf8(C_LOCALE_ESTONIAN);
|
||||
case QLocale::Finnish: return QString::fromUtf8(C_LOCALE_FINNISH);
|
||||
case QLocale::French: return QString::fromUtf8(C_LOCALE_FRENCH);
|
||||
case QLocale::Galician: return QString::fromUtf8(C_LOCALE_GALICIAN);
|
||||
|
@ -1612,6 +1614,8 @@ void OptionsDialog::setLocale(const QString &localeStr)
|
|||
QLocale locale(localeStr);
|
||||
if (locale.language() == QLocale::Uzbek)
|
||||
name = "uz@Latn";
|
||||
else if (locale.language() == QLocale::Azerbaijani)
|
||||
name = "az@latin";
|
||||
else
|
||||
name = locale.name();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue