Skip to content

Commit

Permalink
chore: update translation about region
Browse files Browse the repository at this point in the history
change text about region;
update translation about region due to changes of text;

Log: update translation about region
  • Loading branch information
FeiWang1119 committed Nov 8, 2023
1 parent a66909d commit 05691e3
Show file tree
Hide file tree
Showing 173 changed files with 105,542 additions and 12,661 deletions.
4 changes: 4 additions & 0 deletions src/plugin-datetime/operation/regionproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ void RegionProxy::active()
QString script = locale.scriptToString(locale.script());
QString language = locale.languageToString(locale.language());
QString country = locale.countryToString(locale.country());
if (locale.country() == QLocale::HongKong || locale.country() == QLocale::Taiwan)
language = "Traditional Chinese";
if (locale.country() == QLocale::China)
language = "Simplified Chinese";
QString langCountry = QString("%1 (%2)")
.arg(QCoreApplication::translate("dcc::datetime::Language",
language.toUtf8().data()))
Expand Down
4 changes: 2 additions & 2 deletions translations/datetime_country_en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@
</message>
<message>
<source>China</source>
<translation>China</translation>
<translation>Chinese mainland</translation>
</message>
<message>
<source>Hong Kong SAR China</source>
Expand Down Expand Up @@ -1222,4 +1222,4 @@
<translation>Aland Islands</translation>
</message>
</context>
</TS>
</TS>
12 changes: 6 additions & 6 deletions translations/datetime_country_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,15 +823,15 @@
</message>
<message>
<source>China</source>
<translation>中国</translation>
<translation>中国大陆</translation>
</message>
<message>
<source>Hong Kong SAR China</source>
<translation>中国香港特别行政区</translation>
</message>
<message>
<source>Hong Kong</source>
<translation>香港</translation>
<translation>中国香港</translation>
</message>
<message>
<source>Japan</source>
Expand All @@ -855,11 +855,11 @@
</message>
<message>
<source>Macao</source>
<translation>澳门</translation>
<translation>中国澳门</translation>
</message>
<message>
<source>Taiwan</source>
<translation>台湾</translation>
<translation>中国台湾</translation>
</message>
<message>
<source>Afghanistan</source>
Expand Down Expand Up @@ -1091,7 +1091,7 @@
</message>
<message>
<source>Macau</source>
<translation>澳门</translation>
<translation>中国澳门</translation>
</message>
<message>
<source>Bosnia And Herzegowina</source>
Expand Down Expand Up @@ -1222,4 +1222,4 @@
<translation>奥兰群岛</translation>
</message>
</context>
</TS>
</TS>
4 changes: 2 additions & 2 deletions translations/datetime_language_zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
</message>
<message>
<source>Chinese</source>
<translation>中文</translation>
<translation>简体中文</translation>
</message>
<message>
<source>Simplified Chinese</source>
Expand Down Expand Up @@ -2434,4 +2434,4 @@
<translation>瓦拉莫语</translation>
</message>
</context>
</TS>
</TS>
Loading

0 comments on commit 05691e3

Please sign in to comment.