Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
feat(l10n): add Chinese (Taiwan) translation to UI
Browse files Browse the repository at this point in the history
Thanks to @lnddyl for the help with what should be put in the language
name.
  • Loading branch information
zetok committed Feb 21, 2017
1 parent b80e964 commit 43d16d9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -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(
Expand Down
8 changes: 6 additions & 2 deletions src/widget/form/settings/generalform.cpp
Expand Up @@ -69,7 +69,9 @@ static QStringList locales = {"ar",
"tr",
"ug",
"uk",
"zh_CN"};
"zh_CN",
"zh_TW"
};
static QStringList langs = {"Arabic",
"Беларуская",
"Български",
Expand Down Expand Up @@ -104,7 +106,9 @@ static QStringList langs = {"Arabic",
"Türkçe",
"ئۇيغۇرچە",
"Українська",
"中文(中国)"};
"中文(中国)",
"繁體中文(台灣)"
};

/**
* @class GeneralForm
Expand Down
3 changes: 2 additions & 1 deletion translations/README.md
Expand Up @@ -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 changes: 2 additions & 1 deletion translations/i18n.pri
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions translations/translations.qrc
Expand Up @@ -34,5 +34,6 @@
<file>ug.qm</file>
<file>uk.qm</file>
<file>zh_CN.qm</file>
<file>zh_TW.qm</file>
</qresource>
</RCC>

0 comments on commit 43d16d9

Please sign in to comment.