Repository navigation
i18n(zh-CN): 同步上游新增内容,补齐缺失翻译 - #161
Conversation
Li-T-1025
commented
Oct 31, 2026
- 新增 tribute.json(致敬 Sir Patrick Stewart / Picard 船长主题页)
- 补齐 90 个缺失 key:feature-tours(quickSetup/fleetFocus/航点转向与航向)、guides(sitl/crsf/cargo/adjust/language/releaseDemos)、navigation(themeBridge+short 短标签)、parameters(参数校验)、settings(主题)、survey(磁力计/连接线)、area-editor(舰桥主题)、hooks(拒绝)
- 重译 feature-tours 廊道/导出两处,标签与 en 对齐
- 术语与既有 zh-CN 一致:线距/盘旋半径/查看/遥控器
- 新增 tribute.json(致敬 Sir Patrick Stewart / Picard 船长主题页) - 补齐 90 个缺失 key:feature-tours(quickSetup/fleetFocus/航点转向与航向)、guides(sitl/crsf/cargo/adjust/language/releaseDemos)、navigation(themeBridge+short 短标签)、parameters(参数校验)、settings(主题)、survey(磁力计/连接线)、area-editor(舰桥主题)、hooks(拒绝) - 重译 feature-tours 廊道/导出两处,标签与 en 对齐 - 术语与既有 zh-CN 一致:线距/盘旋半径/查看/遥控器
ff4958c to
88fad86
Compare
TS18048: 'app.dock' is possibly 'undefined' on non-macOS builds. The call already sits in a darwin-only block, so behaviour is unchanged.
|
关于本 PR 中引入的 Typecheck 修复 / About the typecheck fix included in this PR 中文: 本 PR 除语言包改动外,附带一个最小化的源码修复: app.dock.setIcon(join(resourcesPath, 'icon.png'));改为 app.dock?.setIcon(join(resourcesPath, 'icon.png'));原因:
若维护者希望以其他方式修复(例如在分支内显式判空),请告知,我们乐意配合调整。 English: Apart from the locale changes, this PR carries a minimal source fix at app.dock.setIcon(join(resourcesPath, 'icon.png'));changed to: app.dock?.setIcon(join(resourcesPath, 'icon.png'));Why:
If maintainers prefer a different approach (e.g. an explicit null guard inside the block), we are happy to adjust. |
|
@Li-T-1025 Thanks a lot, this is a great cleanup, the mainland terms (芯片, 闪存, 当前) are exactly what zh-CN needed. One change before I merge: please keep "Cargo" untranslated. It's the product name for ArduDeck add-ons and stays "Cargo" in every language (de, uk, zh-TW too), same as Hangar. 模块 is fine where the English text says "module", just not as a replacement for Cargo. After that it's good to go. |
# Conflicts: # apps/desktop/src/shared/i18n/locales/zh-CN/firmware.json # apps/desktop/src/shared/i18n/locales/zh-CN/guides.json # apps/desktop/src/shared/i18n/locales/zh-CN/main.json # apps/desktop/src/shared/i18n/locales/zh-CN/map.json # apps/desktop/src/shared/i18n/locales/zh-CN/mavlink-config.json # apps/desktop/src/shared/i18n/locales/zh-CN/mission.json # apps/desktop/src/shared/i18n/locales/zh-CN/navigation.json # apps/desktop/src/shared/i18n/locales/zh-CN/osd.json # apps/desktop/src/shared/i18n/locales/zh-CN/parameters.json # apps/desktop/src/shared/i18n/locales/zh-CN/settings.json # apps/desktop/src/shared/i18n/locales/zh-CN/shared.json # apps/desktop/src/shared/i18n/locales/zh-CN/sitl.json # apps/desktop/src/shared/i18n/locales/zh-CN/survey.json # apps/desktop/src/shared/i18n/locales/zh-CN/tribute.json
|
@rubenCodeforges Thanks for the review and the kind words! 🙏 Done in 44b26ea: "Cargo" is now kept untranslated as the product name across all zh-CN strings (guides, modules, navigation, map, osd, settings, telemetry, main, mavlink-config), matching de / zh-TW / uk. "模块" is only used where the English source says "module". Also merged the latest upstream master (e973ead) and translated the new strings (wind legs, mission sharing, hazards, glider release, default-value column, etc.). The locale verifier reports 14406 strings checked, 0 problems. Ready for merge whenever you are. |