i18n(wizard): translate the first-run wizard (was all hardcoded English)

The first-run wizard predated the i18n system — every label, button, and help
line was hardcoded English. Route them all through TR():

- 62 literals in app_wizard.cpp replaced with TR(). Where a wizard string is a
  parallel of existing content, it reuses the existing key (the whole bootstrap_*
  family, plus theme / language / balance_layout / low_spec_mode / ui_opacity /
  console_scanline / download / retry / cancel) so it inherits their translations
  and stays consistent with Settings. Button labels drop their ##id suffix and use
  TR(key) directly (the app's established TactileButton(TR(...)) pattern; the
  wizard's phase buttons never share a frame, so no id collision).
- 55 new wiz_* English keys in i18n.cpp for the wizard-specific strings, and their
  translations back-filled across all 8 languages (es/de/fr/pt/ru/zh/ja/ko);
  format specifiers (%s, %zu) and newlines preserved. CJK subset rebuilt.

Verified on the sweep: English renders with correct labels in place (all keys
resolve), and a German run shows the reused + new keys translated end-to-end
(Darstellung / Acryl-Glaseffekte / Verschlüsseln & Weiter …).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-12 01:41:18 -05:00
parent 758ea06ab7
commit 09e0b962c3
11 changed files with 581 additions and 84 deletions

View File

@@ -1369,6 +1369,61 @@
"warning_upper": "警告!",
"website": "网站",
"window_opacity": "窗口透明度",
"wiz_acrylic": "亚克力玻璃效果",
"wiz_acrylic_desc": "面板上的半透明模糊(关闭则禁用)",
"wiz_already_encrypted": "钱包已加密",
"wiz_already_encrypted_desc": "您的钱包已使用密码短语进行保护。无需进一步操作。",
"wiz_appearance": "外观",
"wiz_bootstrap": "引导数据",
"wiz_bootstrap_desc": "下载区块链引导数据以大幅加快初始同步速度。\n\n您现有的 wallet.dat 不会被修改或替换。",
"wiz_bootstrap_failed": "引导数据失败",
"wiz_confirm": "确认:",
"wiz_continue": "继续",
"wiz_daemon_sending_stop": "正在发送停止命令…",
"wiz_daemon_stop_failed": "守护进程未停止——请尝试手动停止。",
"wiz_daemon_stopped_ok": "守护进程已停止。",
"wiz_daemon_waiting_stop": "正在等待守护进程关闭…",
"wiz_download_failed": "下载失败",
"wiz_encrypt_bg": "加密将在后台完成",
"wiz_encrypt_continue": "加密并继续",
"wiz_encrypt_desc": "加密您的钱包,用密码短语保护私钥。",
"wiz_encrypt_warning": "如果您丢失密码短语,将无法访问您的资金。",
"wiz_encryption": "加密",
"wiz_ext_daemon_running": "外部守护进程正在运行",
"wiz_ext_daemon_warning": "下载引导数据前必须先停止它,否则链数据可能会损坏。",
"wiz_level": "级别:",
"wiz_lowspec_desc": "禁用所有重度视觉效果",
"wiz_off": "关闭",
"wiz_pass_mismatch": "密码短语不匹配",
"wiz_pass_spaces": "密码短语含有首尾空格——请将其删除",
"wiz_pass_too_short": "密码短语至少需要 8 个字符 (%zu/8)",
"wiz_passphrase": "密码短语:",
"wiz_pin_confirm": "确认 PIN",
"wiz_pin_invalid": "PIN 必须为 4-8 位数字",
"wiz_pin_label": "PIN4-8 位数字):",
"wiz_pin_mismatch": "PIN 不匹配",
"wiz_pin_optional": "快速解锁 PIN可选",
"wiz_pin_title": "快速解锁 PIN",
"wiz_scanline_desc": "控制台中的 CRT 扫描线效果",
"wiz_skip": "跳过",
"wiz_skip_confirm": "确定不加密继续吗?私钥将以未加密方式存储——请再次点击“跳过”以确认。",
"wiz_step1": "第 1 步",
"wiz_step2": "第 2 步",
"wiz_step3": "第 3 步",
"wiz_stop_daemon": "停止守护进程",
"wiz_strength": "强度:%s",
"wiz_strength_fair": "一般",
"wiz_strength_good": "良好",
"wiz_strength_strong": "强",
"wiz_strength_weak": "弱",
"wiz_theme_builtin": "内置",
"wiz_theme_custom": "自定义",
"wiz_theme_effects": "主题视觉效果",
"wiz_theme_effects_desc": "动态边框、色彩渲染",
"wiz_theme_invalid": " (无效)",
"wiz_ui_opacity_desc": "卡片与侧边栏透明度1.0 = 不透明)",
"wiz_welcome_sub": "只需几项快速设置,即可启用您的全节点。",
"wiz_welcome_title": "欢迎使用 ObsidianDragon",
"wizard_daemon_start_failed": "启动守护进程失败 — 将自动重试",
"xmrig_browse_releases": "浏览所有版本…",
"xmrig_checking": "正在检查最新的矿工程序…",