Skip to content

Commit

Permalink
Update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkanovikov committed Jan 17, 2023
1 parent 7bedcb9 commit 8879bff
Show file tree
Hide file tree
Showing 65 changed files with 13,684 additions and 9,181 deletions.
5 changes: 5 additions & 0 deletions src/core/management_layer/application_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,11 @@ void ApplicationManager::Implementation::setTranslation(QLocale::Language _langu
break;
}

case QLocale::Dutch: {
translation = "nl";
break;
}

case QLocale::Esperanto: {
translation = "eo";
break;
Expand Down
475 changes: 304 additions & 171 deletions src/core/translations/_en_source.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_ar.qm
Binary file not shown.
664 changes: 402 additions & 262 deletions src/core/translations/translation_ar.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_az.qm
Binary file not shown.
658 changes: 399 additions & 259 deletions src/core/translations/translation_az.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_be.qm
Binary file not shown.
658 changes: 399 additions & 259 deletions src/core/translations/translation_be.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_ca.qm
Binary file not shown.
722 changes: 431 additions & 291 deletions src/core/translations/translation_ca.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_da_DK.qm
Binary file not shown.
658 changes: 399 additions & 259 deletions src/core/translations/translation_da_DK.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_de.qm
Binary file not shown.
1,437 changes: 790 additions & 647 deletions src/core/translations/translation_de.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_en.qm
Binary file not shown.
653 changes: 400 additions & 253 deletions src/core/translations/translation_en.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_eo.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_eo.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_es.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_es.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_fa.qm
Binary file not shown.
654 changes: 397 additions & 257 deletions src/core/translations/translation_fa.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_fr.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_fr.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_gl_ES.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_gl_ES.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_he.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_he.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_hi.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_hi.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_hr.qm
Binary file not shown.
658 changes: 399 additions & 259 deletions src/core/translations/translation_hr.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_hu.qm
Binary file not shown.
654 changes: 397 additions & 257 deletions src/core/translations/translation_hu.ts

Large diffs are not rendered by default.

676 changes: 404 additions & 272 deletions src/core/translations/translation_id.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_it.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_it.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_ko.qm
Binary file not shown.
654 changes: 397 additions & 257 deletions src/core/translations/translation_ko.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_nl.qm
Binary file not shown.
1,725 changes: 936 additions & 789 deletions src/core/translations/translation_nl.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_pl.qm
Binary file not shown.
658 changes: 399 additions & 259 deletions src/core/translations/translation_pl.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_pt_BR.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_pt_BR.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_pt_PT.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_pt_PT.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_ro_RO.qm
Binary file not shown.
658 changes: 399 additions & 259 deletions src/core/translations/translation_ro_RO.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_ru.qm
Binary file not shown.
663 changes: 403 additions & 260 deletions src/core/translations/translation_ru.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_sl.qm
Binary file not shown.
665 changes: 404 additions & 261 deletions src/core/translations/translation_sl.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_ta.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_ta.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_tl_PH.qm
Binary file not shown.
656 changes: 398 additions & 258 deletions src/core/translations/translation_tl_PH.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_tr.qm
Binary file not shown.
658 changes: 399 additions & 259 deletions src/core/translations/translation_tr.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_uk.qm
Binary file not shown.
663 changes: 403 additions & 260 deletions src/core/translations/translation_uk.ts

Large diffs are not rendered by default.

Binary file modified src/core/translations/translation_zh_CN.qm
Binary file not shown.
654 changes: 397 additions & 257 deletions src/core/translations/translation_zh_CN.ts

Large diffs are not rendered by default.

31 changes: 16 additions & 15 deletions src/core/ui/onboarding/onboarding_navigator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,36 +184,37 @@ void OnboardingNavigator::Implementation::initUiPage()

return languageItem;
};
addLanguage("Azərbaycan", QLocale::Azerbaijani, 100);
addLanguage("Беларуский", QLocale::Belarusian, 51);
addLanguage("Català", QLocale::Catalan, 88);
addLanguage("Dansk", QLocale::Danish, 92);
addLanguage("Azərbaycan", QLocale::Azerbaijani, 99);
addLanguage("Беларуский", QLocale::Belarusian, 47);
addLanguage("Català", QLocale::Catalan, 83);
addLanguage("Dansk", QLocale::Danish, 86);
addLanguage("Deutsch", QLocale::German, 100);
auto englishItem = addLanguage("English", QLocale::English, 100);
addLanguage("Español", QLocale::Spanish, 91);
addLanguage("Español", QLocale::Spanish, 85);
addLanguage("Esperanto", QLocale::Esperanto, 9);
addLanguage("Français", QLocale::French, 67);
addLanguage("Galego", QLocale::Galician, 71);
addLanguage("Hrvatski", QLocale::Croatian, 71);
addLanguage("Français", QLocale::French, 62);
addLanguage("Galego", QLocale::Galician, 66);
addLanguage("Hrvatski", QLocale::Croatian, 66);
addLanguage("Indonesian", QLocale::Indonesian, 10);
addLanguage("Italiano", QLocale::Italian, 29);
addLanguage("Magyar", QLocale::Hungarian, 36);
addLanguage("Italiano", QLocale::Italian, 27);
addLanguage("Magyar", QLocale::Hungarian, 33);
addLanguage("Nederlands", QLocale::Dutch, 91);
addLanguage("Polski", QLocale::Polish, 41);
addLanguage("Português", static_cast<QLocale::Language>(QLocale::LastLanguage + 1), 13);
addLanguage("Português Brasileiro", QLocale::Portuguese, 69);
addLanguage("Română", QLocale::Romanian, 64);
addLanguage("Русский", QLocale::Russian, 100);
addLanguage("Slovenski", QLocale::Slovenian, 100);
addLanguage("Tagalog", QLocale::Filipino, 20);
addLanguage("Türkçe", QLocale::Turkish, 98);
addLanguage("Türkçe", QLocale::Turkish, 93);
addLanguage("Українська", QLocale::Ukrainian, 100);
addLanguage("اَلْعَرَبِيَّةُ", QLocale::Arabic, 17);
addLanguage("فارسی", QLocale::Persian, 65);
addLanguage("עִבְרִית", QLocale::Hebrew, 84);
addLanguage("हिन्दी", QLocale::Hindi, 37);
addLanguage("فارسی", QLocale::Persian, 61);
addLanguage("עִבְרִית", QLocale::Hebrew, 79);
addLanguage("हिन्दी", QLocale::Hindi, 34);
addLanguage("தமிழ்", QLocale::Tamil, 46);
addLanguage("汉语", QLocale::Chinese, 6);
addLanguage("한국어", QLocale::Korean, 78);
addLanguage("한국어", QLocale::Korean, 73);
uiLanguage->setModel(uiLanguageModel);
//
// Выбираем язык в зависимости от того, умеем ли мы в системный
Expand Down
48 changes: 27 additions & 21 deletions src/core/ui/settings/language_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class LanguageDialog::Implementation
PercentRadioButton* chinese = nullptr;
PercentRadioButton* croatian = nullptr;
PercentRadioButton* danish = nullptr;
PercentRadioButton* dutch = nullptr;
PercentRadioButton* english = nullptr;
PercentRadioButton* esperanto = nullptr;
PercentRadioButton* french = nullptr;
Expand Down Expand Up @@ -68,34 +69,35 @@ class LanguageDialog::Implementation

LanguageDialog::Implementation::Implementation(QWidget* _parent)
: arabic(new PercentRadioButton(_parent, 17))
, azerbaijani(new PercentRadioButton(_parent, 100))
, belarusian(new PercentRadioButton(_parent, 51))
, catalan(new PercentRadioButton(_parent, 88))
, azerbaijani(new PercentRadioButton(_parent, 99))
, belarusian(new PercentRadioButton(_parent, 47))
, catalan(new PercentRadioButton(_parent, 83))
, chinese(new PercentRadioButton(_parent, 6))
, croatian(new PercentRadioButton(_parent, 71))
, danish(new PercentRadioButton(_parent, 92))
, croatian(new PercentRadioButton(_parent, 66))
, danish(new PercentRadioButton(_parent, 86))
, dutch(new PercentRadioButton(_parent, 91))
, english(new PercentRadioButton(_parent, 100))
, esperanto(new PercentRadioButton(_parent, 9))
, french(new PercentRadioButton(_parent, 67))
, galician(new PercentRadioButton(_parent, 71))
, french(new PercentRadioButton(_parent, 62))
, galician(new PercentRadioButton(_parent, 66))
, german(new PercentRadioButton(_parent, 100))
, hebrew(new PercentRadioButton(_parent, 84))
, hindi(new PercentRadioButton(_parent, 37))
, hungarian(new PercentRadioButton(_parent, 36))
, hebrew(new PercentRadioButton(_parent, 79))
, hindi(new PercentRadioButton(_parent, 34))
, hungarian(new PercentRadioButton(_parent, 33))
, indonesian(new PercentRadioButton(_parent, 10))
, italian(new PercentRadioButton(_parent, 29))
, korean(new PercentRadioButton(_parent, 78))
, persian(new PercentRadioButton(_parent, 65))
, italian(new PercentRadioButton(_parent, 27))
, korean(new PercentRadioButton(_parent, 73))
, persian(new PercentRadioButton(_parent, 61))
, polish(new PercentRadioButton(_parent, 41))
, portuguese(new PercentRadioButton(_parent, 13))
, portugueseBrazil(new PercentRadioButton(_parent, 69))
, romanian(new PercentRadioButton(_parent, 64))
, russian(new PercentRadioButton(_parent, 100))
, slovenian(new PercentRadioButton(_parent, 100))
, spanish(new PercentRadioButton(_parent, 91))
, spanish(new PercentRadioButton(_parent, 85))
, tagalog(new PercentRadioButton(_parent, 20))
, tamil(new PercentRadioButton(_parent, 46))
, turkish(new PercentRadioButton(_parent, 98))
, turkish(new PercentRadioButton(_parent, 93))
, ukrainian(new PercentRadioButton(_parent, 100))
, languageHowToAddLink(new Body1LinkLabel(_parent))
, translationProgressLabel(new Body2Label(_parent))
Expand All @@ -116,6 +118,8 @@ LanguageDialog::Implementation::Implementation(QWidget* _parent)
croatian->setProperty(kLanguageKey, QLocale::Croatian);
danish->setText("Dansk");
danish->setProperty(kLanguageKey, QLocale::Danish);
dutch->setText("Nederlands");
dutch->setProperty(kLanguageKey, QLocale::Dutch);
english->setChecked(true);
english->setText("English");
english->setProperty(kLanguageKey, QLocale::English);
Expand Down Expand Up @@ -185,11 +189,11 @@ LanguageDialog::Implementation::Implementation(QWidget* _parent)
std::vector<PercentRadioButton*> LanguageDialog::Implementation::languages() const
{
return {
arabic, azerbaijani, belarusian, catalan, chinese, croatian, danish,
english, esperanto, french, galician, german, hebrew, hindi,
hungarian, indonesian, italian, korean, persian, polish, portuguese,
portugueseBrazil, romanian, russian, slovenian, spanish, tagalog, tamil,
turkish, ukrainian,
arabic, azerbaijani, belarusian, catalan, chinese, croatian, danish,
dutch, english, esperanto, french, galician, german, hebrew,
hindi, hungarian, indonesian, italian, korean, persian, polish,
portuguese, portugueseBrazil, romanian, russian, slovenian, spanish, tagalog,
tamil, turkish, ukrainian,
};
}

Expand Down Expand Up @@ -217,6 +221,7 @@ LanguageDialog::LanguageDialog(QWidget* _parent)
d->belarusian,
d->catalan,
d->danish,
d->dutch,
d->german,
d->english,
d->spanish,
Expand Down Expand Up @@ -262,9 +267,10 @@ LanguageDialog::LanguageDialog(QWidget* _parent)
contentsLayout()->addWidget(d->indonesian, rowForSecondColumn++, 1);
contentsLayout()->addWidget(d->italian, rowForSecondColumn++, 1);
contentsLayout()->addWidget(d->hungarian, rowForSecondColumn++, 1);
contentsLayout()->addWidget(d->dutch, rowForSecondColumn++, 1);
contentsLayout()->addWidget(d->polish, rowForSecondColumn++, 1);
contentsLayout()->addWidget(d->portuguese, rowForSecondColumn++, 1);
int rowForThirdColumn = 0;
contentsLayout()->addWidget(d->portuguese, rowForThirdColumn++, 2);
contentsLayout()->addWidget(d->portugueseBrazil, rowForThirdColumn++, 2);
contentsLayout()->addWidget(d->romanian, rowForThirdColumn++, 2);
contentsLayout()->addWidget(d->russian, rowForThirdColumn++, 2);
Expand Down

0 comments on commit 8879bff

Please sign in to comment.