Skip to content

🌐 Add Chinese (zh_CN) translation for settings UI #337

Description

@luokexiaoguo

Summary

Add Chinese (Simplified) translation support for Dash2Dock Animated settings UI. The current v92 release has translatable="yes" tags in the .ui files but no actual translation files are included.

Changes

I have translated all 4 settings pages (General, Style, Icons, Tweak) into Simplified Chinese. The translated results are applied by directly replacing the English text in the .ui files.

Translated pages

  1. General (基本设置) — Dock, Animation, Autohide, Debug sections
  2. Style (外观) — Theme, Icons, Dash, Indicators, Topbar, Label sections
  3. Icons (图标管理) — Icon visibility, Dynamic icons, Custom drawn icons
  4. Tweak (微调) — Animation tweaks, Autohide, Blur, Performance, Behavior

How to apply

The attached patch files can be applied to the .ui files in the ui/ directory.

For a proper i18n solution, the author may want to:

  1. Extract strings via intltool-extract or xgettext
  2. Create po/zh_CN.po
  3. Compile to .mo and ship with the extension

Screenshot

General page in Chinese

But currently v92 uses hardcoded English strings with translatable="yes" markup — no gettext _() calls around the text — so the quickest way is to replace the strings in the .ui files directly.

Would be great to have proper l10n support in future releases! I can help maintain the Chinese translation.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions