Add new languages

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

View file

@ -46,6 +46,7 @@ const char C_UTP[] = "μTP";
const char C_LOCALE_ARABIC[] = "عربي";
const char C_LOCALE_ARMENIAN[] = "Հայերեն";
const char C_LOCALE_AZERBAIJANI[] = "Azərbaycan dili";
const char C_LOCALE_BASQUE[] = "Euskara";
const char C_LOCALE_BULGARIAN[] = "Български";
const char C_LOCALE_BYELORUSSIAN[] = "Беларуская";
@ -61,6 +62,7 @@ const char C_LOCALE_ENGLISH[] = "English";
const char C_LOCALE_ENGLISH_AUSTRALIA[] = "English (Australia)";
const char C_LOCALE_ENGLISH_UNITEDKINGDOM[] = "English (United Kingdom)";
const char C_LOCALE_ESPERANTO[] = "Esperanto";
const char C_LOCALE_ESTONIAN[] = "Eesti, eesti keel";
const char C_LOCALE_FINNISH[] = "Suomi";
const char C_LOCALE_FRENCH[] = "Français";
const char C_LOCALE_GALICIAN[] = "Galego";

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

View file

@ -1,5 +1,6 @@
<RCC>
<qresource prefix="/lang">
<file>qbittorrent_az@latin.qm</file>
<file>qbittorrent_ar.qm</file>
<file>qbittorrent_be.qm</file>
<file>qbittorrent_bg.qm</file>
@ -13,6 +14,7 @@
<file>qbittorrent_en_GB.qm</file>
<file>qbittorrent_eo.qm</file>
<file>qbittorrent_es.qm</file>
<file>qbittorrent_et.qm</file>
<file>qbittorrent_eu.qm</file>
<file>qbittorrent_fi.qm</file>
<file>qbittorrent_fr.qm</file>

File diff suppressed because it is too large Load diff

10283
src/lang/qbittorrent_et.ts Normal file

File diff suppressed because it is too large Load diff

View file

@ -648,10 +648,12 @@
<legend>QBT_TR(Language)QBT_TR[CONTEXT=OptionsDialog]</legend>
<label for="locale_select">QBT_TR(User Interface Language:)QBT_TR[CONTEXT=OptionsDialog]</label>
<select id="locale_select">
<option value="az@latin">Azərbaycan dili</option>
<option value="en">English</option>
<option value="en_AU">English (Australia)</option>
<option value="en_GB">English (United Kingdom)</option>
<option value="eo_EO">Esperanto</option>
<option value="et">Eesti, eesti keel</option>
<option value="fr_FR">Français</option>
<option value="de_DE">Deutsch</option>
<option value="hu_HU">Magyar</option>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,6 @@
<RCC>
<qresource prefix="/www/translations">
<file>webui_az@latin.qm</file>
<file>webui_ar.qm</file>
<file>webui_be.qm</file>
<file>webui_bg.qm</file>
@ -13,6 +14,7 @@
<file>webui_en_GB.qm</file>
<file>webui_eo.qm</file>
<file>webui_es.qm</file>
<file>webui_et.qm</file>
<file>webui_eu.qm</file>
<file>webui_fi.qm</file>
<file>webui_fr.qm</file>