From 0ff2749ddf64bb3d92ebdc89702bd0d8fabdf036 Mon Sep 17 00:00:00 2001 From: Zakk Date: Sat, 26 Sep 2026 12:12:33 +1000 Subject: [PATCH] fix(i18n): correct mistranslated strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DNS cache coverage list rendered positive and negative answers as 正面答案 and 負面答案, which read as favourable and unfavourable replies. They now pair with the positive and negative cache labels. --- src/features/dns/messages.ts | 8 ++++---- src/features/nodes/messages.ts | 4 ++-- src/features/rules/messages.ts | 2 +- src/i18n/locales/en.ts | 2 +- src/i18n/locales/zh-CN.ts | 6 +++--- src/i18n/locales/zh-TW.ts | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/features/dns/messages.ts b/src/features/dns/messages.ts index 5f8ca51e..db6fccc9 100644 --- a/src/features/dns/messages.ts +++ b/src/features/dns/messages.ts @@ -8,8 +8,8 @@ export const messages = defineMessages({ 'dns.chart.resolver': '解析器自身', 'dns.chart.cache': '快取狀態', 'dns.chart.cacheNote': '條目:{n},容量上限:未回報', - 'dns.chart.positive': '正面答案', - 'dns.chart.negative': '負面答案', + 'dns.chart.positive': '正向回答', + 'dns.chart.negative': '負向回答', 'dns.chart.usage': '使用量', 'dns.chart.usageFacts': '條目:{entries}', 'dns.chart.coverage': '快取範圍:{kinds};{persistent}', @@ -87,8 +87,8 @@ export const messages = defineMessages({ 'dns.chart.resolver': '解析器自身', 'dns.chart.cache': '缓存状态', 'dns.chart.cacheNote': '条目:{n},容量上限:未上报', - 'dns.chart.positive': '正面答案', - 'dns.chart.negative': '负面答案', + 'dns.chart.positive': '正向应答', + 'dns.chart.negative': '负向应答', 'dns.chart.usage': '使用量', 'dns.chart.usageFacts': '条目:{entries}', 'dns.chart.coverage': '缓存范围:{kinds};{persistent}', diff --git a/src/features/nodes/messages.ts b/src/features/nodes/messages.ts index 0e84ddd6..000fab3d 100644 --- a/src/features/nodes/messages.ts +++ b/src/features/nodes/messages.ts @@ -19,7 +19,7 @@ export const messages = defineMessages({ 'nodes.latency.row': '目前:{latest},移動平均:{moving},近 10 次平均:{avg10}', 'nodes.latency.unavailableList': '無法使用({n} 個):{names}', 'nodes.latency.unmeasuredList': '尚未測量({n} 個):{names}', - 'nodes.latency.andMore': '等 {n} 個', + 'nodes.latency.andMore': '及另外 {n} 個', 'nodes.latency.noGroup': '未分組', 'nodes.latency.noProtocol': '未知協定', 'nodes.latency.showAll': '顯示全部 {n} 個', @@ -110,7 +110,7 @@ export const messages = defineMessages({ 'nodes.latency.row': '当前:{latest},移动平均:{moving},近 10 次平均:{avg10}', 'nodes.latency.unavailableList': '不可用({n} 个):{names}', 'nodes.latency.unmeasuredList': '尚未测量({n} 个):{names}', - 'nodes.latency.andMore': '等 {n} 个', + 'nodes.latency.andMore': '及另外 {n} 个', 'nodes.latency.noGroup': '未分组', 'nodes.latency.noProtocol': '未知协议', 'nodes.latency.showAll': '显示全部 {n} 个', diff --git a/src/features/rules/messages.ts b/src/features/rules/messages.ts index da638e9d..9582cade 100644 --- a/src/features/rules/messages.ts +++ b/src/features/rules/messages.ts @@ -208,7 +208,7 @@ export const messages = defineMessages({ 'rule.lineOnly': 'Line {n}', 'rule.add': 'Add rule', 'rule.must': 'Require this outbound', - 'rule.addHelp': "Adds the rule to the source file's routing section, then validates, saves and reloads the configuration.", + 'rule.addHelp': "Adds the rule to the source file's routing section, then saves and reloads after validation passes.", 'rule.condition': 'Condition', 'rule.conditionMode': 'Condition form', 'rule.pick': 'Select', diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index 72acb37e..f728649f 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -835,7 +835,7 @@ export const messages = { 'rule.lineOnly': 'Line {n}', 'rule.add': 'Add rule', 'rule.must': 'Require this outbound', - 'rule.addHelp': "Adds the rule to the source file's routing section, then validates, saves and reloads the configuration.", + 'rule.addHelp': "Adds the rule to the source file's routing section, then saves and reloads after validation passes.", 'rule.condition': 'Condition', 'rule.conditionMode': 'Condition form', 'rule.pick': 'Select', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 43370f3b..9c934811 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -254,8 +254,8 @@ export const messages = { 'dns.chart.resolver': '解析器自身', 'dns.chart.cache': '缓存状态', 'dns.chart.cacheNote': '条目:{n},容量上限:未上报', - 'dns.chart.positive': '正面答案', - 'dns.chart.negative': '负面答案', + 'dns.chart.positive': '正向应答', + 'dns.chart.negative': '负向应答', 'dns.chart.usage': '使用量', 'dns.chart.usageFacts': '条目:{entries}', 'dns.chart.coverage': '缓存范围:{kinds};{persistent}', @@ -399,7 +399,7 @@ export const messages = { 'nodes.latency.row': '当前:{latest},移动平均:{moving},近 10 次平均:{avg10}', 'nodes.latency.unavailableList': '不可用({n} 个):{names}', 'nodes.latency.unmeasuredList': '尚未测量({n} 个):{names}', - 'nodes.latency.andMore': '等 {n} 个', + 'nodes.latency.andMore': '及另外 {n} 个', 'nodes.latency.noGroup': '未分组', 'nodes.latency.noProtocol': '未知协议', 'nodes.latency.showAll': '显示全部 {n} 个', diff --git a/src/i18n/locales/zh-TW.ts b/src/i18n/locales/zh-TW.ts index 32091264..a4623fbb 100644 --- a/src/i18n/locales/zh-TW.ts +++ b/src/i18n/locales/zh-TW.ts @@ -253,8 +253,8 @@ export const messages = { 'dns.chart.resolver': '解析器自身', 'dns.chart.cache': '快取狀態', 'dns.chart.cacheNote': '條目:{n},容量上限:未回報', - 'dns.chart.positive': '正面答案', - 'dns.chart.negative': '負面答案', + 'dns.chart.positive': '正向回答', + 'dns.chart.negative': '負向回答', 'dns.chart.usage': '使用量', 'dns.chart.usageFacts': '條目:{entries}', 'dns.chart.coverage': '快取範圍:{kinds};{persistent}', @@ -398,7 +398,7 @@ export const messages = { 'nodes.latency.row': '目前:{latest},移動平均:{moving},近 10 次平均:{avg10}', 'nodes.latency.unavailableList': '無法使用({n} 個):{names}', 'nodes.latency.unmeasuredList': '尚未測量({n} 個):{names}', - 'nodes.latency.andMore': '等 {n} 個', + 'nodes.latency.andMore': '及另外 {n} 個', 'nodes.latency.noGroup': '未分組', 'nodes.latency.noProtocol': '未知協定', 'nodes.latency.showAll': '顯示全部 {n} 個',