Browse Source

Add new languages

* Mongolian
* Persian
* Thai
adaptive-webui-19844
sledgehammer999 4 years ago
parent
commit
2c47cfbe25
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 3
      src/base/unicodestrings.h
  2. 3
      src/gui/optionsdialog.cpp
  3. 3
      src/lang/lang.qrc
  4. 10392
      src/lang/qbittorrent_fa.ts
  5. 10393
      src/lang/qbittorrent_mn_MN.ts
  6. 10401
      src/lang/qbittorrent_th.ts
  7. 3
      src/webui/www/private/views/preferences.html
  8. 3380
      src/webui/www/translations/webui_fa.ts
  9. 3380
      src/webui/www/translations/webui_mn_MN.ts
  10. 3380
      src/webui/www/translations/webui_th.ts
  11. 3
      src/webui/www/translations/webui_translations.qrc

3
src/base/unicodestrings.h

@ -76,8 +76,10 @@ const char C_LOCALE_LATGALIAN[] = "Latgalīšu volūda"; @@ -76,8 +76,10 @@ const char C_LOCALE_LATGALIAN[] = "Latgalīšu volūda";
const char C_LOCALE_LATVIAN[] = "Latviešu valoda";
const char C_LOCALE_LITHUANIAN[] = "Lietuvių";
const char C_LOCALE_MALAY[] = "بهاس ملايو";
const char C_LOCALE_MONGOLIAN[] = "Монгол хэл";
const char C_LOCALE_NORWEGIAN[] = "Norsk";
const char C_LOCALE_OCCITAN[] = "lenga d'òc";
const char C_LOCALE_PERSIAN[] = "فارسی";
const char C_LOCALE_POLISH[] = "Polski";
const char C_LOCALE_PORTUGUESE[] = "Português";
const char C_LOCALE_PORTUGUESE_BRAZIL[] = "Português brasileiro";
@ -88,6 +90,7 @@ const char C_LOCALE_SLOVAK[] = "Slovenčina"; @@ -88,6 +90,7 @@ const char C_LOCALE_SLOVAK[] = "Slovenčina";
const char C_LOCALE_SLOVENIAN[] = "Slovenščina";
const char C_LOCALE_SPANISH[] = "Español";
const char C_LOCALE_SWEDISH[] = "Svenska";
const char C_LOCALE_THAI[] = "ไทย";
const char C_LOCALE_TURKISH[] = "Türkçe";
const char C_LOCALE_UKRAINIAN[] = "Українська";
const char C_LOCALE_UZBEK[] = "أۇزبېك";

3
src/gui/optionsdialog.cpp

@ -131,8 +131,10 @@ namespace @@ -131,8 +131,10 @@ namespace
case QLocale::Latvian: return QString::fromUtf8(C_LOCALE_LATVIAN);
case QLocale::Lithuanian: return QString::fromUtf8(C_LOCALE_LITHUANIAN);
case QLocale::Malay: return QString::fromUtf8(C_LOCALE_MALAY);
case QLocale::Mongolian: return QString::fromUtf8(C_LOCALE_MONGOLIAN);
case QLocale::NorwegianBokmal: return QString::fromUtf8(C_LOCALE_NORWEGIAN);
case QLocale::Occitan: return QString::fromUtf8(C_LOCALE_OCCITAN);
case QLocale::Persian: return QString::fromUtf8(C_LOCALE_PERSIAN);
case QLocale::Polish: return QString::fromUtf8(C_LOCALE_POLISH);
case QLocale::Portuguese:
if (locale.country() == QLocale::Brazil)
@ -145,6 +147,7 @@ namespace @@ -145,6 +147,7 @@ namespace
case QLocale::Slovenian: return QString::fromUtf8(C_LOCALE_SLOVENIAN);
case QLocale::Spanish: return QString::fromUtf8(C_LOCALE_SPANISH);
case QLocale::Swedish: return QString::fromUtf8(C_LOCALE_SWEDISH);
case QLocale::Thai: return QString::fromUtf8(C_LOCALE_THAI);
case QLocale::Turkish: return QString::fromUtf8(C_LOCALE_TURKISH);
case QLocale::Ukrainian: return QString::fromUtf8(C_LOCALE_UKRAINIAN);
case QLocale::Uzbek: return QString::fromUtf8(C_LOCALE_UZBEK);

3
src/lang/lang.qrc

@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
<file>qbittorrent_es.qm</file>
<file>qbittorrent_et.qm</file>
<file>qbittorrent_eu.qm</file>
<file>qbittorrent_fa.qm</file>
<file>qbittorrent_fi.qm</file>
<file>qbittorrent_fr.qm</file>
<file>qbittorrent_gl.qm</file>
@ -33,6 +34,7 @@ @@ -33,6 +34,7 @@
<file>qbittorrent_lt.qm</file>
<file>qbittorrent_ltg.qm</file>
<file>qbittorrent_lv_LV.qm</file>
<file>qbittorrent_mn_MN.qm</file>
<file>qbittorrent_ms_MY.qm</file>
<file>qbittorrent_nb.qm</file>
<file>qbittorrent_nl.qm</file>
@ -46,6 +48,7 @@ @@ -46,6 +48,7 @@
<file>qbittorrent_sl.qm</file>
<file>qbittorrent_sr.qm</file>
<file>qbittorrent_sv.qm</file>
<file>qbittorrent_th.qm</file>
<file>qbittorrent_tr.qm</file>
<file>qbittorrent_uk.qm</file>
<file>qbittorrent_uz@Latn.qm</file>

10392
src/lang/qbittorrent_fa.ts

File diff suppressed because it is too large Load Diff

10393
src/lang/qbittorrent_mn_MN.ts

File diff suppressed because it is too large Load Diff

10401
src/lang/qbittorrent_th.ts

File diff suppressed because it is too large Load Diff

3
src/webui/www/private/views/preferences.html

@ -642,6 +642,7 @@ @@ -642,6 +642,7 @@
<option value="en_GB">English (United Kingdom)</option>
<option value="eo_EO">Esperanto</option>
<option value="et">Eesti, eesti keel</option>
<option value="fa">فارسی</option>
<option value="fr_FR">Français</option>
<option value="de_DE">Deutsch</option>
<option value="hu_HU">Magyar</option>
@ -659,6 +660,7 @@ @@ -659,6 +660,7 @@
<option value="lv_LV">Latviešu valoda</option>
<option value="lt_LT">Lietuvių</option>
<option value="ltg">Latgalīšu volūda</option>
<option value="mn_MN">Монгол хэл</option>
<option value="ms_MY">بهاس ملايو</option>
<option value="cs_CZ">Čeština</option>
<option value="sk_SK">Slovenčina</option>
@ -668,6 +670,7 @@ @@ -668,6 +670,7 @@
<option value="hr_HR">Hrvatski</option>
<option value="hy_AM">Հայերեն</option>
<option value="ro_RO">Română</option>
<option value="th">ไทย</option>
<option value="tr_TR">Türkçe</option>
<option value="el_GR">Ελληνικά</option>
<option value="sv_SE">Svenska</option>

3380
src/webui/www/translations/webui_fa.ts

File diff suppressed because it is too large Load Diff

3380
src/webui/www/translations/webui_mn_MN.ts

File diff suppressed because it is too large Load Diff

3380
src/webui/www/translations/webui_th.ts

File diff suppressed because it is too large Load Diff

3
src/webui/www/translations/webui_translations.qrc

@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
<file>webui_es.qm</file>
<file>webui_et.qm</file>
<file>webui_eu.qm</file>
<file>webui_fa.qm</file>
<file>webui_fi.qm</file>
<file>webui_fr.qm</file>
<file>webui_gl.qm</file>
@ -33,6 +34,7 @@ @@ -33,6 +34,7 @@
<file>webui_lt.qm</file>
<file>webui_ltg.qm</file>
<file>webui_lv_LV.qm</file>
<file>webui_mn_MN.qm</file>
<file>webui_ms_MY.qm</file>
<file>webui_nb.qm</file>
<file>webui_nl.qm</file>
@ -46,6 +48,7 @@ @@ -46,6 +48,7 @@
<file>webui_sl.qm</file>
<file>webui_sr.qm</file>
<file>webui_sv.qm</file>
<file>webui_th.qm</file>
<file>webui_tr.qm</file>
<file>webui_uk.qm</file>
<file>webui_uz@Latn.qm</file>

Loading…
Cancel
Save