Skip to content

i18n: add Traditional Chinese (zh-Hant) translation - #46

Open
monarchsofchaos004-gif wants to merge 1 commit into
ciddwd:devfrom
monarchsofchaos004-gif:i18n/zh-hant
Open

monarchsofchaos004-gif wants to merge 1 commit into
ciddwd:devfrom
monarchsofchaos004-gif:i18n/zh-hant

Conversation

@monarchsofchaos004-gif

Copy link
Copy Markdown

Type

  • i18n: translation / localization

Summary

Adds a Traditional Chinese (Taiwan wording) UI translation, following the steps you outlined in #45 and the translation section of CONTRIBUTING:

  • app/src/main/res/values-b+zh+Hant/strings.xml: new, translated from the English values/strings.xml on dev
  • app/src/main/res/xml/locales_config.xml: registers zh-Hant
  • SettingsScreen.kt: adds AppLanguageOption("zh-Hant", R.string.settings_app_lang_zh_hant) to APP_LANGUAGE_OPTIONS (and drops the "zh-TW" item from the "future" comment)
  • values/strings.xml: adds settings_app_lang_zh_hant = 繁體中文 as the language label, translatable="false" like settings_app_lang_ar

Resource keys, placeholders and escapes are kept as they are, and translatable="false" entries are omitted.

Coverage: 2464 / 2464 translatable strings (100%).

Refs #45

Self-test

Checked locally against values/strings.xml:

  • Same keys in the same order, same placeholders and escapes in every value
  • Well-formed XML, no blank values, no unescaped quotes
  • No Simplified Chinese characters or mainland wording in the values

The repo's own CI workflow (Build debug APK) passes on my fork with these changes.

Screenshots

I'll add Home and Settings screenshots in Traditional Chinese in a comment.

Notes

normalize() in AppLanguageSelector matches a system tag such as zh-Hant-TW by its primary subtag, so it would resolve to the first zh entry (zh-CN). I left it untouched here; happy to adjust it if you want.

@monarchsofchaos004-gif

Copy link
Copy Markdown
Author

Screenshots with the app language set to 繁體中文:

Home Settings

The English words left on these screens are names (OCR, TTS, deepseek-v4-flash, Sakura). Text like 「中文(簡體)」 on the preset cards describes each preset's translation target, so it is not interface text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant