fix(console): localize the lite console + drop full-node-only wording
The lite console tab lagged the full-node one on i18n: its toolbar status, status lines, help, and error/warning strings were hard-coded English or worded for a full node (a "daemon" the lite wallet doesn't have). - toolbarStatus()/statusLines(): route through TR() (reusing the existing lite_net_* keys where they already map) - printHelp(): enumerate the 25 pass-through backend verbs for discoverability, since the C++ tab intercepts `help` before the backend's own HelpCommand runs - gate the destructive 'stop' confirmation to the full node (hasRpcReference); lite has no node, so it lets 'stop' fall through to the backend instead of showing a phantom "shut down the node" warning behind a dead gate - word the not-connected error per variant (daemon vs "no wallet open") - TR() the "(no output)" command-result fallback Adds 7 i18n keys across all 8 languages (additive); rebuilds the CJK subset for the one new glyph (U+C5D4 for the Korean "backend"). Build + ctest + source-hygiene green; changes adversarially verified (no logic/i18n defects). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -271,6 +271,7 @@
|
||||
"console_app": "应用",
|
||||
"console_auto_scroll": "自动滚动",
|
||||
"console_available_commands": "可用命令:",
|
||||
"console_backend_unavailable": "无后端",
|
||||
"console_capturing_output": "正在捕获守护进程输出...",
|
||||
"console_cat_blockchain": "区块链",
|
||||
"console_cat_control": "控制",
|
||||
@@ -310,11 +311,14 @@
|
||||
"console_help_help": " help - 显示此帮助信息",
|
||||
"console_help_setgenerate": " setgenerate - 控制挖矿",
|
||||
"console_help_stop": " stop - 停止守护进程",
|
||||
"console_last_error": "上次错误:",
|
||||
"console_line_count": "%zu 行",
|
||||
"console_matches": "个匹配",
|
||||
"console_new_lines": "%d 新行",
|
||||
"console_no_daemon": "无守护进程",
|
||||
"console_no_output": "(无输出)",
|
||||
"console_not_connected": "错误:未连接到守护进程",
|
||||
"console_not_connected_lite": "错误:没有打开的钱包",
|
||||
"console_quit_note": "这里不需要 'quit'/'exit'——直接关闭窗口即可。",
|
||||
"console_ref_builds": "生成",
|
||||
"console_ref_cancel": "取消",
|
||||
@@ -348,6 +352,7 @@
|
||||
"console_status_stopped": "已停止",
|
||||
"console_status_stopping": "停止中",
|
||||
"console_status_unknown": "未知",
|
||||
"console_stop_confirm_node": "'stop' 将关闭节点并断开钱包连接。再次输入 'stop' 以确认。",
|
||||
"console_tab_completion": "Tab 补全",
|
||||
"console_text_colors": "文本颜色",
|
||||
"console_toggle_accents": "切换行颜色强调",
|
||||
@@ -626,6 +631,7 @@
|
||||
"lite_birthday_backup": "生日区块:%llu (也请一并备份)",
|
||||
"lite_birthday_hint": "开始扫描的区块高度。如未知请保留 0(完整扫描更慢)。",
|
||||
"lite_birthday_label": "诞生区块",
|
||||
"lite_console_backend_commands": "后端命令:",
|
||||
"lite_console_help_passthrough": "其他任何输入都将作为轻钱包控制台命令运行。",
|
||||
"lite_copy": "复制",
|
||||
"lite_could_not_write": "无法写入 ",
|
||||
@@ -643,6 +649,7 @@
|
||||
"lite_net_add_url_hint": "https://your-lite-server",
|
||||
"lite_net_checking": "检查中…",
|
||||
"lite_net_connected": "已连接",
|
||||
"lite_net_connecting": "连接中…",
|
||||
"lite_net_custom": "自定义",
|
||||
"lite_net_disconnected": "未连接",
|
||||
"lite_net_hidden_section": "隐藏的服务器",
|
||||
|
||||
Reference in New Issue
Block a user