Browse Source

Merge pull request #14069 from sledgehammer999/new_languages

Add new languages
adaptive-webui-19844
sledgehammer999 4 years ago committed by GitHub
parent
commit
fffa2f097e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/unicodestrings.h
  2. 4
      src/gui/optionsdialog.cpp
  3. 2
      src/lang/lang.qrc
  4. 10309
      src/lang/qbittorrent_az@latin.ts
  5. 10283
      src/lang/qbittorrent_et.ts
  6. 2
      src/webui/www/private/views/preferences.html
  7. 3354
      src/webui/www/translations/webui_az@latin.ts
  8. 3353
      src/webui/www/translations/webui_et.ts
  9. 2
      src/webui/www/translations/webui_translations.qrc

2
src/base/unicodestrings.h

@ -46,6 +46,7 @@ const char C_UTP[] = "μTP"; @@ -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"; @@ -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";

4
src/gui/optionsdialog.cpp

@ -88,6 +88,7 @@ namespace @@ -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 @@ -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) @@ -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();
}

2
src/lang/lang.qrc

@ -1,5 +1,6 @@ @@ -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 @@ @@ -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>

10309
src/lang/qbittorrent_az@latin.ts

File diff suppressed because it is too large Load Diff

10283
src/lang/qbittorrent_et.ts

File diff suppressed because it is too large Load Diff

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

@ -648,10 +648,12 @@ @@ -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>

3354
src/webui/www/translations/webui_az@latin.ts

File diff suppressed because it is too large Load Diff

3353
src/webui/www/translations/webui_et.ts

File diff suppressed because it is too large Load Diff

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

@ -1,5 +1,6 @@ @@ -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 @@ @@ -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>

Loading…
Cancel
Save