Commit Graph

5 Commits

Author SHA1 Message Date
mawei b2f5adc98f fix(i18n): replace tr_noop with tr for sidebar menu names in sunnypilot settings
Root cause: all sidebar menu buttons used tr_noop() which returns the
original string without translation. Replaced with tr() for all 16 menu
items (Device, Network, sunnylink, Toggles, Software, Models, Steering,
Cruise, Visuals, Display, OSM, Trips, Vehicle, Firehose, Developer).

Also fixes:
- PairBigButton: pair/paired/subscribed/upgrade to prime hardcoded text
- UpdateOpenpilotBigButton: 'update sunnypilot' hardcoded text
- SunnylinkHeader title: '🚀 sunnylink 🚀' hardcoded text
- OSM: DELETING..., Loading... hardcoded text
- PO: added 25 new translation entries for all above items
2026-06-02 21:10:16 +08:00
mawei cae81899fb fix(i18n): 修复汉化问题 - 补充 tr() 包裹和 PO 翻译
1. 源码 8 个文件:40 处硬编码英文改为 tr() 调用
   - settings.py: 主菜单按钮(toggles/network/device/developer/firehose)
   - network_layout.py: 网络设置全部按钮
   - toggles.py: 开关页全部选项
   - developer.py: 开发者页全部按钮
   - device.py: 设备页按钮
   - onboarding.py: 引导页全部按钮文字
   - sunnylink.py: Backup/Restore 确认对话框
   - sunnypilot/onboarding.py: sunnylink 引导页

2. PO 文件 app_zh-CHS.po: 新增 40 条翻译条目
   - 覆盖所有新增 tr() 调用的中文翻译
   - 翻译风格与原有中文 PO 保持一致

改动: 9 files, +215/-38 lines
2026-06-02 20:55:17 +08:00
mawei 4015dbd04c feat(i18n): 完整汉化 + 替换中文字体(NotoSansSC 子集)
汉化:
- app_zh-CHS.po 从 182 条翻译扩展至 519 条(+1241/-38)
- 覆盖所有功能名称、设置项描述、系统提示等

字体:
- 替换 unifont.otf(5.1MB 像素字体)→ unifont.ttf(426KB NotoSansSC 子集)
- 矢量字体渲染更清晰圆润,体积仅原来的 1/12
- 在设备运行 process.py 后生效
2026-06-02 20:18:52 +08:00
1okko 3c388b5648 2026-5-31 2026-06-02 19:07:47 +08:00
github-actions[bot] 7c44d10fed sunnypilot v2026.002.000 release
date: 2026-06-02T19:04:03
master commit: dfc3c98b226da57a653daf57131a8a3d66166fcb
2026-06-02 19:04:12 +08:00