From cc44f505e72b23148682b92dad6b2210f4ded344 Mon Sep 17 00:00:00 2001 From: Jakob Gahde Date: Tue, 23 Apr 2024 21:42:50 +0200 Subject: [PATCH] Enable newly added translations --- app/app.pro | 6 ++ app/src/generalpage.cpp | 6 ++ translations/pencil.ts | 82 +++++++++++++------ .../{pencil_nl_nl.ts => pencil_nl_NL.ts} | 0 4 files changed, 68 insertions(+), 26 deletions(-) rename translations/{pencil_nl_nl.ts => pencil_nl_NL.ts} (100%) diff --git a/app/app.pro b/app/app.pro index 65b213554..fb09b2d22 100644 --- a/app/app.pro +++ b/app/app.pro @@ -21,6 +21,7 @@ RC_LANGS.de = --lang LANG_GERMAN --sublang SUBLANG_NEUTRAL EXTRA_TRANSLATIONS += \ $$PWD/../translations/pencil_ar.ts \ + $$PWD/../translations/pencil_bg.ts \ $$PWD/../translations/pencil_ca.ts \ $$PWD/../translations/pencil_cs.ts \ $$PWD/../translations/pencil_da.ts \ @@ -29,6 +30,7 @@ EXTRA_TRANSLATIONS += \ $$PWD/../translations/pencil_en.ts \ $$PWD/../translations/pencil_es.ts \ $$PWD/../translations/pencil_et.ts \ + $$PWD/../translations/pencil_fa.ts \ $$PWD/../translations/pencil_fr.ts \ $$PWD/../translations/pencil_he.ts \ $$PWD/../translations/pencil_hu_HU.ts \ @@ -36,6 +38,9 @@ EXTRA_TRANSLATIONS += \ $$PWD/../translations/pencil_it.ts \ $$PWD/../translations/pencil_ja.ts \ $$PWD/../translations/pencil_kab.ts \ + $$PWD/../translations/pencil_ko.ts \ + $$PWD/../translations/pencil_nb.ts \ + $$PWD/../translations/pencil_nl_NL.ts \ $$PWD/../translations/pencil_pl.ts \ $$PWD/../translations/pencil_pt.ts \ $$PWD/../translations/pencil_pt_BR.ts \ @@ -44,6 +49,7 @@ EXTRA_TRANSLATIONS += \ $$PWD/../translations/pencil_sv.ts \ $$PWD/../translations/pencil_tr.ts \ $$PWD/../translations/pencil_vi.ts \ + $$PWD/../translations/pencil_yue.ts \ $$PWD/../translations/pencil_zh_CN.ts \ $$PWD/../translations/pencil_zh_TW.ts diff --git a/app/src/generalpage.cpp b/app/src/generalpage.cpp index d6403eb3f..8338355a9 100644 --- a/app/src/generalpage.cpp +++ b/app/src/generalpage.cpp @@ -35,6 +35,7 @@ GeneralPage::GeneralPage() : ui(new Ui::GeneralPage) { // translatable string, endonym, locale code { tr("Arabic"), QStringLiteral("العربية"), "ar" }, + { tr("Bulgarian"), QStringLiteral("Български"), "bg" }, { tr("Catalan"), QStringLiteral("Català"), "ca" }, { tr("Czech"), QStringLiteral("Čeština"), "cs" }, { tr("Danish"), QStringLiteral("Dansk"), "da" }, @@ -43,6 +44,7 @@ GeneralPage::GeneralPage() : ui(new Ui::GeneralPage) { tr("English"), QStringLiteral("English"), "en" }, { tr("Spanish"), QStringLiteral("Español"), "es" }, { tr("Estonian"), QStringLiteral("Eesti"), "et" }, + { tr("Persian"), QStringLiteral("فارسی"), "fa" }, { tr("French"), QStringLiteral("Français"), "fr" }, { tr("Hebrew"), QStringLiteral("עברית"), "he" }, { tr("Hungarian"), QStringLiteral("Magyar"), "hu_HU" }, @@ -50,6 +52,9 @@ GeneralPage::GeneralPage() : ui(new Ui::GeneralPage) { tr("Italian"), QStringLiteral("Italiano"), "it" }, { tr("Japanese"), QStringLiteral("日本語"), "ja" }, { tr("Kabyle"), QStringLiteral("Taqbaylit"), "kab" }, + { tr("Korean"), QStringLiteral("한국어"), "ko" }, + { tr("Norwegian Bokmål"), QStringLiteral("Norsk bokmål"), "nb" }, + { tr("Dutch \u2013 Netherlands"), QStringLiteral("Nederlands \u2013 Nederland"), "nl_NL" }, { tr("Polish"), QStringLiteral("Polski"), "pl" }, { tr("Portuguese \u2013 Portugal"), QStringLiteral("Português \u2013 Portugal"), "pt_PT" }, { tr("Portuguese \u2013 Brazil"), QStringLiteral("Português \u2013 Brasil"), "pt_BR" }, @@ -58,6 +63,7 @@ GeneralPage::GeneralPage() : ui(new Ui::GeneralPage) { tr("Swedish"), QStringLiteral("Svenska"), "sv" }, { tr("Turkish"), QStringLiteral("Türkçe"), "tr" }, { tr("Vietnamese"), QStringLiteral("Tiếng Việt"), "vi" }, + { tr("Cantonese"), QStringLiteral("粵语"), "yue" }, { tr("Chinese \u2013 China"), QStringLiteral("简体中文"), "zh_CN" }, { tr("Chinese \u2013 Taiwan"), QStringLiteral("繁體中文"), "zh_TW" }, }; diff --git a/translations/pencil.ts b/translations/pencil.ts index 31266752f..20e370b43 100644 --- a/translations/pencil.ts +++ b/translations/pencil.ts @@ -3399,136 +3399,166 @@ - Catalan + Bulgarian - Czech + Catalan - Danish + Czech - German + Danish - Greek + German - English + Greek - Spanish + English - Estonian + Spanish - French + Estonian - Hebrew + Persian - Hungarian + French - Indonesian + Hebrew - Italian + Hungarian - Japanese + Indonesian - Kabyle + Italian - Polish + Japanese - Portuguese – Portugal + Kabyle - Portuguese – Brazil + Korean - Russian + Norwegian Bokmål - Slovene + Dutch – Netherlands - Swedish + Polish - Turkish + Portuguese – Portugal - Vietnamese + Portuguese – Brazil - Chinese – China + Russian + Slovene + + + + + Swedish + + + + + Turkish + + + + + Vietnamese + + + + + Cantonese + + + + + Chinese – China + + + + Chinese – Taiwan - + Restart Required - + The language change will take effect after a restart of Pencil2D diff --git a/translations/pencil_nl_nl.ts b/translations/pencil_nl_NL.ts similarity index 100% rename from translations/pencil_nl_nl.ts rename to translations/pencil_nl_NL.ts