i18n: add Chinese (Simplified) translation and fix POTFILES / 添加简体中文翻译并修复 POTFILES - #259
Open
xianyvyy wants to merge 1 commit into
Open
i18n: add Chinese (Simplified) translation and fix POTFILES / 添加简体中文翻译并修复 POTFILES#259xianyvyy wants to merge 1 commit into
xianyvyy wants to merge 1 commit into
Conversation
- Fix po/POTFILES to reference actual source paths (control.ui, __main__.py, menu.py, gui/control.py) - Add zh_CN locale to po/LINGUAS - Add Chinese (Simplified) translation with 56 strings covering all UI surfaces - Wrap user-facing strings with _() gettext markers in src/menu.py and src/gui/control.py - Add gettext fallback for environments where _() is not yet installed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🇨🇳 中文说明
改动内容
po/POTFILES:原文件引用了不存在的路径 (src/window.ui,src/main.py,src/window.py),已更新为当前源码结构zh_CNlocale:po/LINGUAS加入zh_CNpo/zh_CN.po:56 条完整中文翻译,覆盖全部界面:src/menu.py+src/gui/control.py:将用户可见字符串包裹_()gettext 标记,并添加 fallback 机制翻译原则
验证
polib验证 .po 文件 56 条全部通过LANG=zh_CN.UTF-8启动正常🇬🇧 English
Changes
po/POTFILES: Updated stale paths to match current source structurezh_CNlocale: Register inpo/LINGUASpo/zh_CN.po: 56 complete Chinese translations covering all UI surfacessrc/menu.py+src/gui/control.py: Wrapped user-visible strings with_()gettext markers, with safe fallbackNotes
gettext.install()already called insrc/hidamari.in, so_()is available at runtime_()is not yet installed during import