Skip to content

i18n: add Chinese (zh_CN) translation support - #117

Open
harnocca wants to merge 2 commits into
xarblu:mainfrom
harnocca:i18n-zh-cn
Open

i18n: add Chinese (zh_CN) translation support#117
harnocca wants to merge 2 commits into
xarblu:mainfrom
harnocca:i18n-zh-cn

Conversation

@harnocca

Copy link
Copy Markdown

Adds Chinese (Simplified) translation support using ki18n_install()

Changes

  • New po/zh_CN/kwin_better_blur_dx.po with translated KCM UI strings
  • ki18n_install(.) in po/CMakeLists.txt for .mo generation/install
  • KLocalizedString::setApplicationDomain() call in BlurEffectConfig
    so runtime i18n() calls resolve to the correct translation domain
  • Localized Name/Description fields in metadata.json for zh_CN
  • Added Messages.sh for regenerating the .pot template when UI
    strings change in the future

Testing

Built and installed on Fedora 44 / KF6 6.27.0. Verified .mo
generation on build.sh, confirmed translated strings appear
correctly in the KCM UI under a zh_CN locale.

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