Skip to content

Commit

Permalink
Enable newly added translations
Browse files Browse the repository at this point in the history
  • Loading branch information
J5lx authored and chchwy committed Apr 24, 2024
1 parent 6acff71 commit cc44f50
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 26 deletions.
6 changes: 6 additions & 0 deletions app/app.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -29,13 +30,17 @@ 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 \
$$PWD/../translations/pencil_id.ts \
$$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 \
Expand All @@ -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

Expand Down
6 changes: 6 additions & 0 deletions app/src/generalpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand All @@ -43,13 +44,17 @@ 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" },
{ tr("Indonesian"), QStringLiteral("Bahasa Indonesia"), "id" },
{ 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" },
Expand All @@ -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" },
};
Expand Down
82 changes: 56 additions & 26 deletions translations/pencil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3399,136 +3399,166 @@
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="38"/>
<source>Catalan</source>
<source>Bulgarian</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="39"/>
<source>Czech</source>
<source>Catalan</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="40"/>
<source>Danish</source>
<source>Czech</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="41"/>
<source>German</source>
<source>Danish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="42"/>
<source>Greek</source>
<source>German</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="43"/>
<source>English</source>
<source>Greek</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="44"/>
<source>Spanish</source>
<source>English</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="45"/>
<source>Estonian</source>
<source>Spanish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="46"/>
<source>French</source>
<source>Estonian</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="47"/>
<source>Hebrew</source>
<source>Persian</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="48"/>
<source>Hungarian</source>
<source>French</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="49"/>
<source>Indonesian</source>
<source>Hebrew</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="50"/>
<source>Italian</source>
<source>Hungarian</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="51"/>
<source>Japanese</source>
<source>Indonesian</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="52"/>
<source>Kabyle</source>
<source>Italian</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="53"/>
<source>Polish</source>
<source>Japanese</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="54"/>
<source>Portuguese – Portugal</source>
<source>Kabyle</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="55"/>
<source>Portuguese – Brazil</source>
<source>Korean</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="56"/>
<source>Russian</source>
<source>Norwegian Bokmål</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="57"/>
<source>Slovene</source>
<source>Dutch – Netherlands</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="58"/>
<source>Swedish</source>
<source>Polish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="59"/>
<source>Turkish</source>
<source>Portuguese – Portugal</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="60"/>
<source>Vietnamese</source>
<source>Portuguese – Brazil</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="61"/>
<source>Chinese – China</source>
<source>Russian</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="62"/>
<source>Slovene</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="63"/>
<source>Swedish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="64"/>
<source>Turkish</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="65"/>
<source>Vietnamese</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="66"/>
<source>Cantonese</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="67"/>
<source>Chinese – China</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="68"/>
<source>Chinese – Taiwan</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="195"/>
<location filename="../app/src/generalpage.cpp" line="201"/>
<source>Restart Required</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../app/src/generalpage.cpp" line="196"/>
<location filename="../app/src/generalpage.cpp" line="202"/>
<source>The language change will take effect after a restart of Pencil2D</source>
<translation type="unfinished"></translation>
</message>
Expand Down
File renamed without changes.

0 comments on commit cc44f50

Please sign in to comment.