Browse Source

feat(l10n): add Chinese (Taiwan) translation to UI

Thanks to @LNDDYL for the help with what should be put in the language
name.
pull/4190/head
Zetok Zalbavar 9 years ago
parent
commit
43d16d9181
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 1
      CMakeLists.txt
  2. 8
      src/widget/form/settings/generalform.cpp
  3. 3
      translations/README.md
  4. 3
      translations/i18n.pri
  5. 1
      translations/translations.qrc

1
CMakeLists.txt

@ -112,6 +112,7 @@ qt5_add_translation(${PROJECT_NAME}_QM_FILES @@ -112,6 +112,7 @@ qt5_add_translation(${PROJECT_NAME}_QM_FILES
translations/ug.ts
translations/uk.ts
translations/zh_CN.ts
translations/zh_TW.ts
)
qt5_add_resources(

8
src/widget/form/settings/generalform.cpp

@ -69,7 +69,9 @@ static QStringList locales = {"ar", @@ -69,7 +69,9 @@ static QStringList locales = {"ar",
"tr",
"ug",
"uk",
"zh_CN"};
"zh_CN",
"zh_TW"
};
static QStringList langs = {"Arabic",
"Беларуская",
"Български",
@ -104,7 +106,9 @@ static QStringList langs = {"Arabic", @@ -104,7 +106,9 @@ static QStringList langs = {"Arabic",
"Türkçe",
"ئۇيغۇرچە",
"Українська",
"中文(中国)"};
"中文(中国)",
"繁體中文(台灣)"
};
/**
* @class GeneralForm

3
translations/README.md vendored

@ -44,4 +44,5 @@ Language | Status @@ -44,4 +44,5 @@ Language | Status
[Türkçe](https://hosted.weblate.org/engage/tox/tr/) | [![Translation status](https://hosted.weblate.org/widgets/tox/tr/svg-badge.svg)](https://hosted.weblate.org/engage/tox/tr/?utm_source=widget)
[ئۇيغۇرچە](https://hosted.weblate.org/engage/tox/ug/) | [![Translation status](https://hosted.weblate.org/widgets/tox/ug/svg-badge.svg)](https://hosted.weblate.org/engage/tox/ug/?utm_source=widget)
[Українська](https://hosted.weblate.org/engage/tox/uk/) | [![Translation status](https://hosted.weblate.org/widgets/tox/uk/svg-badge.svg)](https://hosted.weblate.org/engage/tox/uk/?utm_source=widget)
[简体中文](https://hosted.weblate.org/engage/tox/zh_CN/) | [![Translation status](https://hosted.weblate.org/widgets/tox/zh_CN/svg-badge.svg)](https://hosted.weblate.org/engage/tox/zh_CN/?utm_source=widget)
[中文(中国)](https://hosted.weblate.org/engage/tox/zh_CN/) | [![Translation status](https://hosted.weblate.org/widgets/tox/zh_CN/svg-badge.svg)](https://hosted.weblate.org/engage/tox/zh_CN/?utm_source=widget)
[繁體中文(台灣)](https://hosted.weblate.org/engage/tox/zh_TW/) | [![Translation status](https://hosted.weblate.org/widgets/tox/zh_TW/svg-badge.svg)](https://hosted.weblate.org/engage/tox/zh_TW/?utm_source=widget)

3
translations/i18n.pri vendored

@ -34,7 +34,8 @@ TRANSLATIONS = \ @@ -34,7 +34,8 @@ TRANSLATIONS = \
translations/tr.ts \
translations/ug.ts \
translations/uk.ts \
translations/zh_CN.ts
translations/zh_CN.ts \
translations/zh_TW.ts
#rules to generate ts
isEmpty(QMAKE_LUPDATE) {

1
translations/translations.qrc vendored

@ -34,5 +34,6 @@ @@ -34,5 +34,6 @@
<file>ug.qm</file>
<file>uk.qm</file>
<file>zh_CN.qm</file>
<file>zh_TW.qm</file>
</qresource>
</RCC>

Loading…
Cancel
Save