Add new languages

* Azerbaijani
* Estonian
This commit is contained in:
sledgehammer999 2020-12-28 00:30:08 +02:00
parent 162421a59a
commit ffebe82586
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
9 changed files with 27311 additions and 0 deletions

View file

@ -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();
}