diff --git a/desktop/internal/i18n/shared.generated.go b/desktop/internal/i18n/shared.generated.go index 54cd2f748..e44dcec86 100644 --- a/desktop/internal/i18n/shared.generated.go +++ b/desktop/internal/i18n/shared.generated.go @@ -216,18 +216,24 @@ var sharedCatalogs = map[string]map[string]string{ "desktop.buildSettings.conflictReason": "Also declared by {plugins}", "desktop.buildSettings.copyPath": "Copy Path", "desktop.buildSettings.debuggerCount": "{count} debuggers", + "desktop.buildSettings.debuggerCountOne": "1 debugger", "desktop.buildSettings.debuggerFilter": "Filter debuggers", "desktop.buildSettings.debuggerNoMatches": "No matching debuggers", "desktop.buildSettings.debuggers": "Debuggers", "desktop.buildSettings.declaredBy": "Declared by {plugin}", "desktop.buildSettings.directoryDebuggers": "Stepping: {count} debuggers support filters", "desktop.buildSettings.directoryDebuggersCustomized": "Stepping: {count} debuggers support filters · {customized} customized", + "desktop.buildSettings.directoryDebuggersOne": "Stepping: 1 debugger supports filters", + "desktop.buildSettings.directoryDebuggersOneCustomized": "Stepping: 1 debugger supports filters · customized", "desktop.buildSettings.directoryKind": "{names} · provided by plugins", "desktop.buildSettings.directoryKindMore": "{names} and {count} more · provided by plugins", "desktop.buildSettings.directoryNote": "This page lists the subpages and their status only; it does not show what plugins add.", "desktop.buildSettings.directoryScopeGlobal": "global defaults", "desktop.buildSettings.directoryScopeProject": "the current project", "desktop.buildSettings.directoryToolchains": "{tools} tools · from {plugins} plugins · showing {scope}", + "desktop.buildSettings.directoryToolchainsOne": "1 tool · from 1 plugin · showing {scope}", + "desktop.buildSettings.directoryToolchainsOnePlugin": "{tools} tools · from 1 plugin · showing {scope}", + "desktop.buildSettings.directoryToolchainsOneTool": "1 tool · from {plugins} plugins · showing {scope}", "desktop.buildSettings.effectiveHelp": "The program the tool uses now, as Core resolves it.\nChanges are only a draft until you click Apply or OK at the bottom of the window; then they are written and read back.", "desktop.buildSettings.effectiveTitle": "In Effect", "desktop.buildSettings.filterAll": "All", @@ -246,6 +252,7 @@ var sharedCatalogs = map[string]map[string]string{ "desktop.buildSettings.inheritWith": "Inherit (global default · {version})", "desktop.buildSettings.issuesAll": "View all {count} in Toolchains", "desktop.buildSettings.issuesTitle": "{count} need attention", + "desktop.buildSettings.issuesTitleOne": "1 needs attention", "desktop.buildSettings.keywordsBuild": "build execution deployment", "desktop.buildSettings.keywordsDebuggers": "debugger stepping filter", "desktop.buildSettings.keywordsToolchains": "toolchain sdk jdk version", @@ -254,7 +261,9 @@ var sharedCatalogs = map[string]map[string]string{ "desktop.buildSettings.kindFilter": "Filter pages or plugins", "desktop.buildSettings.kindNoMatches": "No matching pages", "desktop.buildSettings.kindPageCount": "{count} pages", + "desktop.buildSettings.kindPageCountOne": "1 page", "desktop.buildSettings.listCount": "{matched} / {total} tools", + "desktop.buildSettings.listCountOne": "{matched} / 1 tool", "desktop.buildSettings.listSeparator": ", ", "desktop.buildSettings.noMatches": "No matching tools", "desktop.buildSettings.noPatterns": "No rules", @@ -311,6 +320,7 @@ var sharedCatalogs = map[string]map[string]string{ "desktop.buildSettings.traceCandidate": "{candidate} ({reason})", "desktop.buildSettings.traceStep": "{layer}: {detail}", "desktop.buildSettings.trustBanner": "{count} tools come from environments inside the project ({sources}). Lithe does not probe or run them until you trust the project.", + "desktop.buildSettings.trustBannerOne": "1 tool comes from an environment inside the project ({sources}). Lithe does not probe or run it until you trust the project.", "desktop.buildSettings.trustProject": "Trust This Project", "desktop.buildSettings.trustReason": "From {source}; trust the project first", "desktop.buildSettings.trustedHelp": "This project is trusted on this Mac: Lithe may probe and run the tool environments inside it.", @@ -4179,18 +4189,24 @@ var sharedCatalogs = map[string]map[string]string{ "desktop.buildSettings.conflictReason": "同时由 {plugins} 声明", "desktop.buildSettings.copyPath": "复制路径", "desktop.buildSettings.debuggerCount": "{count} 个调试器", + "desktop.buildSettings.debuggerCountOne": "1 个调试器", "desktop.buildSettings.debuggerFilter": "筛选调试器", "desktop.buildSettings.debuggerNoMatches": "没有匹配的调试器", "desktop.buildSettings.debuggers": "调试器", "desktop.buildSettings.declaredBy": "由 {plugin} 声明", "desktop.buildSettings.directoryDebuggers": "单步:{count} 个调试器支持过滤", "desktop.buildSettings.directoryDebuggersCustomized": "单步:{count} 个调试器支持过滤 · {customized} 个已自定义", + "desktop.buildSettings.directoryDebuggersOne": "单步:1 个调试器支持过滤", + "desktop.buildSettings.directoryDebuggersOneCustomized": "单步:1 个调试器支持过滤 · 已自定义", "desktop.buildSettings.directoryKind": "{names} · 由插件提供", "desktop.buildSettings.directoryKindMore": "{names} 等 {count} 个 · 由插件提供", "desktop.buildSettings.directoryNote": "这一页只列子页和状态摘要,不直接展示插件注入的内容。", "desktop.buildSettings.directoryScopeGlobal": "全局默认", "desktop.buildSettings.directoryScopeProject": "当前项目", "desktop.buildSettings.directoryToolchains": "{tools} 个工具 · 来自 {plugins} 个插件 · 当前显示{scope}", + "desktop.buildSettings.directoryToolchainsOne": "1 个工具 · 来自 1 个插件 · 当前显示{scope}", + "desktop.buildSettings.directoryToolchainsOnePlugin": "{tools} 个工具 · 来自 1 个插件 · 当前显示{scope}", + "desktop.buildSettings.directoryToolchainsOneTool": "1 个工具 · 来自 {plugins} 个插件 · 当前显示{scope}", "desktop.buildSettings.effectiveHelp": "工具现在实际使用的程序,由 Core 解析得出。\n修改只是草稿,点窗口底部的“应用”或“好”之后才写入并重新读取。", "desktop.buildSettings.effectiveTitle": "当前生效", "desktop.buildSettings.filterAll": "全部", @@ -4209,6 +4225,7 @@ var sharedCatalogs = map[string]map[string]string{ "desktop.buildSettings.inheritWith": "继承(全局默认 · {version})", "desktop.buildSettings.issuesAll": "在工具链中查看全部 {count} 项", "desktop.buildSettings.issuesTitle": "{count} 项需要处理", + "desktop.buildSettings.issuesTitleOne": "1 项需要处理", "desktop.buildSettings.keywordsBuild": "构建 执行 部署 build", "desktop.buildSettings.keywordsDebuggers": "调试器 单步 debugger stepping 过滤", "desktop.buildSettings.keywordsToolchains": "工具链 sdk jdk 版本 toolchain", @@ -4217,7 +4234,9 @@ var sharedCatalogs = map[string]map[string]string{ "desktop.buildSettings.kindFilter": "筛选页面或插件", "desktop.buildSettings.kindNoMatches": "没有匹配的页面", "desktop.buildSettings.kindPageCount": "{count} 个页面", + "desktop.buildSettings.kindPageCountOne": "1 个页面", "desktop.buildSettings.listCount": "{matched} / {total} 个工具", + "desktop.buildSettings.listCountOne": "{matched} / 1 个工具", "desktop.buildSettings.listSeparator": "、", "desktop.buildSettings.noMatches": "没有匹配的工具", "desktop.buildSettings.noPatterns": "没有规则", @@ -4274,6 +4293,7 @@ var sharedCatalogs = map[string]map[string]string{ "desktop.buildSettings.traceCandidate": "{candidate}({reason})", "desktop.buildSettings.traceStep": "{layer}:{detail}", "desktop.buildSettings.trustBanner": "{count} 个工具来自项目内的环境({sources})。信任项目之前不会探测或运行它们。", + "desktop.buildSettings.trustBannerOne": "1 个工具来自项目内的环境({sources})。信任项目之前不会探测或运行它。", "desktop.buildSettings.trustProject": "信任此项目", "desktop.buildSettings.trustReason": "来自 {source},需要先信任项目", "desktop.buildSettings.trustedHelp": "本机此项目已信任:允许探测和运行项目内的工具环境。", diff --git a/desktop/internal/settingswindow/build_counts_test.go b/desktop/internal/settingswindow/build_counts_test.go new file mode 100644 index 000000000..5114f78bb --- /dev/null +++ b/desktop/internal/settingswindow/build_counts_test.go @@ -0,0 +1,45 @@ +package settingswindow + +import ( + "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/i18n" +) + +// TestBuildCountsUseTheSingularForOne checks the build settings texts that count +// pages, debuggers and tools: English says "1 page", not "1 pages", and other +// counts keep the plural with grouped digits. +func TestBuildCountsUseTheSingularForOne(t *testing.T) { + for _, test := range []struct { + name string + got string + want string + }{ + {"one page", kindPageCount(i18n.English, 1), "1 page"}, + {"pages", kindPageCount(i18n.English, 1200), "1,200 pages"}, + {"no pages", kindPageCount(i18n.English, 0), "0 pages"}, + {"one debugger", debuggerCount(i18n.English, 1), "1 debugger"}, + {"debuggers", debuggerCount(i18n.English, 3), "3 debuggers"}, + {"one stepping debugger", steppingTileDescription(i18n.English, 1, 0), "Stepping: 1 debugger supports filters"}, + {"one customized stepping debugger", steppingTileDescription(i18n.English, 1, 1), "Stepping: 1 debugger supports filters · customized"}, + {"stepping debuggers", steppingTileDescription(i18n.English, 2, 0), "Stepping: 2 debuggers support filters"}, + {"customized stepping debuggers", steppingTileDescription(i18n.English, 2, 1), "Stepping: 2 debuggers support filters · 1 customized"}, + {"one tool in the project", trustBannerText(i18n.English, 1, ".venv"), "1 tool comes from an environment inside the project (.venv). Lithe does not probe or run it until you trust the project."}, + {"tools in the project", trustBannerText(i18n.English, 2, ".venv, .conda"), "2 tools come from environments inside the project (.venv, .conda). Lithe does not probe or run them until you trust the project."}, + {"one issue", issuesTitle(i18n.English, 1), "1 needs attention"}, + {"issues", issuesTitle(i18n.English, 2), "2 need attention"}, + {"one tool from one plugin", toolchainsTileDescription(i18n.English, 1, 1, "global"), "1 tool · from 1 plugin · showing global"}, + {"one tool from plugins", toolchainsTileDescription(i18n.English, 1, 2, "global"), "1 tool · from 2 plugins · showing global"}, + {"tools from one plugin", toolchainsTileDescription(i18n.English, 4, 1, "global"), "4 tools · from 1 plugin · showing global"}, + {"tools from plugins", toolchainsTileDescription(i18n.English, 4, 2, "global"), "4 tools · from 2 plugins · showing global"}, + {"one tool listed", toolchainListCount(i18n.English, 1, 1), "1 / 1 tool"}, + {"tools listed", toolchainListCount(i18n.English, 1, 3), "1 / 3 tools"}, + {"one page in Chinese", kindPageCount(i18n.Chinese, 1), "1 个页面"}, + {"one tool from one plugin in Chinese", toolchainsTileDescription(i18n.Chinese, 1, 1, "全局"), "1 个工具 · 来自 1 个插件 · 当前显示全局"}, + {"one tool in Chinese", trustBannerText(i18n.Chinese, 1, ".venv"), "1 个工具来自项目内的环境(.venv)。信任项目之前不会探测或运行它。"}, + } { + if test.got != test.want { + t.Errorf("%s = %q, want %q", test.name, test.got, test.want) + } + } +} diff --git a/desktop/internal/settingswindow/build_directory_view.go b/desktop/internal/settingswindow/build_directory_view.go index e1f08e6bb..2d9fe06fe 100644 --- a/desktop/internal/settingswindow/build_directory_view.go +++ b/desktop/internal/settingswindow/build_directory_view.go @@ -71,7 +71,7 @@ func (w *window) buildIssues(c ui.C, language i18n.Language) { all := false ui.Column(c).FillWidth().MinWidth(0).Shrink(0).PadX(10).PadY(8).Radius(8). Border(1, colors.border).Background(colors.background).Children(func() { - ui.Text(c, i18n.SharedFormat(language, "desktop.buildSettings.issuesTitle", map[string]string{"count": formatCount(view.Counts.Problems)})). + ui.Text(c, issuesTitle(language, view.Counts.Problems)). FontSize(buildSmall).Weight(gfx.WeightSemibold).Color(colors.text).Ellipsis() ui.Row(c).Height(4).Shrink(0) for i := range view.Issues { @@ -201,9 +201,7 @@ func (w *window) directoryEntries(language i18n.Language) []directoryEntry { tools = t.view.view.Counts.Total entry.problems = t.view.view.Counts.Problems } - entry.desc = i18n.SharedFormat(language, "desktop.buildSettings.directoryToolchains", map[string]string{ - "tools": formatCount(tools), "plugins": formatCount(plugins), "scope": shown, - }) + entry.desc = toolchainsTileDescription(language, tools, plugins, shown) } entries = append(entries, entry) } @@ -220,13 +218,7 @@ func (w *window) directoryEntries(language i18n.Language) []directoryEntry { customized++ } } - if customized > 0 { - entry.desc = i18n.SharedFormat(language, "desktop.buildSettings.directoryDebuggersCustomized", map[string]string{ - "count": formatCount(len(s.adapters)), "customized": formatCount(customized), - }) - } else { - entry.desc = i18n.SharedFormat(language, "desktop.buildSettings.directoryDebuggers", map[string]string{"count": formatCount(len(s.adapters))}) - } + entry.desc = steppingTileDescription(language, len(s.adapters), customized) } entries = append(entries, entry) } diff --git a/desktop/internal/settingswindow/build_directory_view_test.go b/desktop/internal/settingswindow/build_directory_view_test.go index 572dd11dd..f4d04ca4c 100644 --- a/desktop/internal/settingswindow/build_directory_view_test.go +++ b/desktop/internal/settingswindow/build_directory_view_test.go @@ -186,7 +186,7 @@ func TestBuildKindIsOneRowThatOpensItsPage(t *testing.T) { t.Fatalf("the kind's page does not list %q", title) } } - if total := i18n.SharedFormat(i18n.English, "desktop.buildSettings.kindPageCount", map[string]string{"count": formatCount(count)}); !d.text(total) { + if total := kindPageCount(i18n.English, count); !d.text(total) { t.Fatalf("the kind's page does not count its pages as %q", total) } if !d.has(i18n.Shared(i18n.English, "desktop.buildSettings.kindFilter")) { diff --git a/desktop/internal/settingswindow/build_kind_view.go b/desktop/internal/settingswindow/build_kind_view.go index 830b28410..b9156a1a2 100644 --- a/desktop/internal/settingswindow/build_kind_view.go +++ b/desktop/internal/settingswindow/build_kind_view.go @@ -85,7 +85,7 @@ func (w *window) buildKindPage(c ui.C, kind string) { w.kindList(c.Part("list"), language, kind, state) ui.Row(c).FillWidth().Height(1).Shrink(0).Background(b.line) ui.Row(c).FillWidth().Shrink(0).PadX(12).PadY(5).Children(func() { - ui.Text(c, i18n.SharedFormat(language, "desktop.buildSettings.kindPageCount", map[string]string{"count": formatCount(w.dynamic.kindCount(kind))})). + ui.Text(c, kindPageCount(language, w.dynamic.kindCount(kind))). FontSize(11).Color(b.faint).Ellipsis() }) }) diff --git a/desktop/internal/settingswindow/build_style.go b/desktop/internal/settingswindow/build_style.go index 62391acc9..019dae2f2 100644 --- a/desktop/internal/settingswindow/build_style.go +++ b/desktop/internal/settingswindow/build_style.go @@ -6,6 +6,7 @@ import ( "unicode" "unicode/utf8" + "github.com/1lck/Lithe-IDEA/desktop/internal/i18n" "github.com/1lck/Lithe-IDEA/desktop/internal/icons" "github.com/vivaui/viva/gfx" "github.com/vivaui/viva/ui" @@ -531,6 +532,93 @@ func formatCount(n int) string { return sign + out.String() } +// The count texts below have their own entry for one, because English says +// "1 page", not "1 pages". The entries stay literal so the i18n checker can +// match each key with its parameters. + +// kindPageCount is the footer under a kind's page list. +func kindPageCount(language i18n.Language, n int) string { + if n == 1 { + return i18n.Shared(language, "desktop.buildSettings.kindPageCountOne") + } + return i18n.SharedFormat(language, "desktop.buildSettings.kindPageCount", map[string]string{"count": formatCount(n)}) +} + +// issuesTitle is the title of the box that lists the tools needing attention. +func issuesTitle(language i18n.Language, n int) string { + if n == 1 { + return i18n.Shared(language, "desktop.buildSettings.issuesTitleOne") + } + return i18n.SharedFormat(language, "desktop.buildSettings.issuesTitle", map[string]string{"count": formatCount(n)}) +} + +// toolchainsTileDescription is the Toolchains tile's line on the Build, Execution, +// Deployment page: how many tools, from how many plugins, in which scope. Each count +// picks its own singular, so English never reads "1 tools" or "1 plugins". +func toolchainsTileDescription(language i18n.Language, tools, plugins int, scope string) string { + switch { + case tools == 1 && plugins == 1: + return i18n.SharedFormat(language, "desktop.buildSettings.directoryToolchainsOne", map[string]string{"scope": scope}) + case tools == 1: + return i18n.SharedFormat(language, "desktop.buildSettings.directoryToolchainsOneTool", map[string]string{ + "plugins": formatCount(plugins), "scope": scope, + }) + case plugins == 1: + return i18n.SharedFormat(language, "desktop.buildSettings.directoryToolchainsOnePlugin", map[string]string{ + "tools": formatCount(tools), "scope": scope, + }) + } + return i18n.SharedFormat(language, "desktop.buildSettings.directoryToolchains", map[string]string{ + "tools": formatCount(tools), "plugins": formatCount(plugins), "scope": scope, + }) +} + +// toolchainListCount is the line under the Toolchains list: how many tool rows are +// listed out of all the tools in the scope. +func toolchainListCount(language i18n.Language, matched, total int) string { + if total == 1 { + return i18n.SharedFormat(language, "desktop.buildSettings.listCountOne", map[string]string{"matched": formatCount(matched)}) + } + return i18n.SharedFormat(language, "desktop.buildSettings.listCount", map[string]string{ + "matched": formatCount(matched), "total": formatCount(total), + }) +} + +// debuggerCount is the footer under the Stepping debugger list. +func debuggerCount(language i18n.Language, n int) string { + if n == 1 { + return i18n.Shared(language, "desktop.buildSettings.debuggerCountOne") + } + return i18n.SharedFormat(language, "desktop.buildSettings.debuggerCount", map[string]string{"count": formatCount(n)}) +} + +// steppingTileDescription is the Stepping tile on the directory page. customized +// counts the listed debuggers whose filters the user changed, so it never +// exceeds n. +func steppingTileDescription(language i18n.Language, n, customized int) string { + switch { + case n == 1 && customized > 0: + return i18n.Shared(language, "desktop.buildSettings.directoryDebuggersOneCustomized") + case n == 1: + return i18n.Shared(language, "desktop.buildSettings.directoryDebuggersOne") + case customized > 0: + return i18n.SharedFormat(language, "desktop.buildSettings.directoryDebuggersCustomized", map[string]string{ + "count": formatCount(n), "customized": formatCount(customized), + }) + default: + return i18n.SharedFormat(language, "desktop.buildSettings.directoryDebuggers", map[string]string{"count": formatCount(n)}) + } +} + +// trustBannerText is the Toolchains warning about tools from environments in an +// untrusted project. sources is already joined. +func trustBannerText(language i18n.Language, n int, sources string) string { + if n == 1 { + return i18n.SharedFormat(language, "desktop.buildSettings.trustBannerOne", map[string]string{"sources": sources}) + } + return i18n.SharedFormat(language, "desktop.buildSettings.trustBanner", map[string]string{"count": formatCount(n), "sources": sources}) +} + // midTrim shortens s to at most limit characters by cutting its middle, so both the // start and the end of a path stay readable. func midTrim(s string, limit int) string { diff --git a/desktop/internal/settingswindow/stepping_view.go b/desktop/internal/settingswindow/stepping_view.go index 52d5f7827..3e903afc4 100644 --- a/desktop/internal/settingswindow/stepping_view.go +++ b/desktop/internal/settingswindow/stepping_view.go @@ -342,7 +342,7 @@ func (w *window) debuggersPage(c ui.C) { w.debuggerList(c.Part("list"), language) ui.Row(c).FillWidth().Height(1).Shrink(0).Background(b.line) ui.Row(c).FillWidth().Shrink(0).PadX(12).PadY(5).Children(func() { - ui.Text(c, i18n.SharedFormat(language, "desktop.buildSettings.debuggerCount", map[string]string{"count": formatCount(len(s.adapters))})). + ui.Text(c, debuggerCount(language, len(s.adapters))). FontSize(11).Color(b.faint).Ellipsis() }) }) diff --git a/desktop/internal/settingswindow/toolchains_view.go b/desktop/internal/settingswindow/toolchains_view.go index f1f011356..cbb3f6733 100644 --- a/desktop/internal/settingswindow/toolchains_view.go +++ b/desktop/internal/settingswindow/toolchains_view.go @@ -257,10 +257,7 @@ func (w *window) toolchainsNotices(c ui.C, language i18n.Language, scope *toolch if len(sources) > 3 { sources = sources[:3] } - text := i18n.SharedFormat(language, "desktop.buildSettings.trustBanner", map[string]string{ - "count": formatCount(count), - "sources": strings.Join(sources, i18n.Shared(language, "desktop.buildSettings.listSeparator")), - }) + text := trustBannerText(language, count, strings.Join(sources, i18n.Shared(language, "desktop.buildSettings.listSeparator"))) w.box(c.Part("banner"), boxWarn, func(words gfx.Color) { boxIcon(c, icons.CircleAlert, words) boxText(c, text, words) @@ -322,10 +319,7 @@ func (w *window) toolchainsSplit(c ui.C, language i18n.Language, scope *toolchai } } ui.Row(c).FillWidth().Shrink(0).PadX(12).PadY(5).Gap(8).Children(func() { - ui.Text(c, i18n.SharedFormat(language, "desktop.buildSettings.listCount", map[string]string{ - "matched": formatCount(tools), - "total": formatCount(w.toolchains.view.view.Counts.Total), - })).FontSize(11).Color(b.faint).Ellipsis() + ui.Text(c, toolchainListCount(language, tools, w.toolchains.view.view.Counts.Total)).FontSize(11).Color(b.faint).Ellipsis() }) }) ui.Row(c).Width(1).Shrink(0).FillHeight().Background(b.line) diff --git a/docs/assets/settings-singular-counts/directory-after-en-light.png b/docs/assets/settings-singular-counts/directory-after-en-light.png new file mode 100644 index 000000000..f9ae18302 Binary files /dev/null and b/docs/assets/settings-singular-counts/directory-after-en-light.png differ diff --git a/docs/assets/settings-singular-counts/directory-before-en-light.png b/docs/assets/settings-singular-counts/directory-before-en-light.png new file mode 100644 index 000000000..c5ad294cb Binary files /dev/null and b/docs/assets/settings-singular-counts/directory-before-en-light.png differ diff --git a/docs/assets/settings-singular-counts/toolchains-untrusted-after-en-light.png b/docs/assets/settings-singular-counts/toolchains-untrusted-after-en-light.png new file mode 100644 index 000000000..ff16c95ca Binary files /dev/null and b/docs/assets/settings-singular-counts/toolchains-untrusted-after-en-light.png differ diff --git a/docs/assets/settings-singular-counts/toolchains-untrusted-before-en-light.png b/docs/assets/settings-singular-counts/toolchains-untrusted-before-en-light.png new file mode 100644 index 000000000..48075add9 Binary files /dev/null and b/docs/assets/settings-singular-counts/toolchains-untrusted-before-en-light.png differ diff --git a/shared/i18n/features/build-settings.json b/shared/i18n/features/build-settings.json index a8fbedc7c..f474f6eb4 100644 --- a/shared/i18n/features/build-settings.json +++ b/shared/i18n/features/build-settings.json @@ -18,6 +18,13 @@ "count": "string" } }, + { + "id": "desktop.buildSettings.issuesTitleOne", + "description": "Build, Execution, Deployment settings: the problems box title when exactly one tool needs attention", + "platforms": [ + "desktop" + ] + }, { "id": "desktop.buildSettings.issuesAll", "description": "Build, Execution, Deployment settings: issuesAll", @@ -54,6 +61,38 @@ "tools": "string" } }, + { + "id": "desktop.buildSettings.directoryToolchainsOneTool", + "description": "Build, Execution, Deployment settings: the Toolchains tile when there is exactly one tool, from several plugins", + "platforms": [ + "desktop" + ], + "parameters": { + "plugins": "string", + "scope": "string" + } + }, + { + "id": "desktop.buildSettings.directoryToolchainsOnePlugin", + "description": "Build, Execution, Deployment settings: the Toolchains tile when several tools come from exactly one plugin", + "platforms": [ + "desktop" + ], + "parameters": { + "scope": "string", + "tools": "string" + } + }, + { + "id": "desktop.buildSettings.directoryToolchainsOne", + "description": "Build, Execution, Deployment settings: the Toolchains tile when exactly one tool comes from exactly one plugin", + "platforms": [ + "desktop" + ], + "parameters": { + "scope": "string" + } + }, { "id": "desktop.buildSettings.directoryDebuggers", "description": "Build, Execution, Deployment settings: directoryDebuggers", @@ -64,6 +103,13 @@ "count": "string" } }, + { + "id": "desktop.buildSettings.directoryDebuggersOne", + "description": "Build, Execution, Deployment settings: the Stepping tile when exactly one debugger supports filters", + "platforms": [ + "desktop" + ] + }, { "id": "desktop.buildSettings.directoryDebuggersCustomized", "description": "Build, Execution, Deployment settings: directoryDebuggersCustomized", @@ -75,6 +121,13 @@ "customized": "string" } }, + { + "id": "desktop.buildSettings.directoryDebuggersOneCustomized", + "description": "Build, Execution, Deployment settings: the Stepping tile when exactly one debugger supports filters and its filters are customized", + "platforms": [ + "desktop" + ] + }, { "id": "desktop.buildSettings.directoryKind", "description": "Build, Execution, Deployment settings: directoryKind", @@ -106,6 +159,13 @@ "count": "string" } }, + { + "id": "desktop.buildSettings.kindPageCountOne", + "description": "Build, Execution, Deployment settings: the footer of a kind's page list when it lists exactly one page", + "platforms": [ + "desktop" + ] + }, { "id": "desktop.buildSettings.kindFilter", "description": "Build, Execution, Deployment settings: kindFilter", @@ -328,6 +388,16 @@ "sources": "string" } }, + { + "id": "desktop.buildSettings.trustBannerOne", + "description": "Build, Execution, Deployment settings: the Toolchains warning when exactly one tool comes from an environment inside the untrusted project", + "platforms": [ + "desktop" + ], + "parameters": { + "sources": "string" + } + }, { "id": "desktop.buildSettings.trustProject", "description": "Build, Execution, Deployment settings: trustProject", @@ -346,6 +416,16 @@ "total": "string" } }, + { + "id": "desktop.buildSettings.listCountOne", + "description": "Build, Execution, Deployment settings: the count under the Toolchains list when the scope has exactly one tool", + "platforms": [ + "desktop" + ], + "parameters": { + "matched": "string" + } + }, { "id": "desktop.buildSettings.noMatches", "description": "Build, Execution, Deployment settings: noMatches", @@ -824,6 +904,13 @@ "count": "string" } }, + { + "id": "desktop.buildSettings.debuggerCountOne", + "description": "Build, Execution, Deployment settings: the footer of the Stepping debugger list when it lists exactly one debugger", + "platforms": [ + "desktop" + ] + }, { "id": "desktop.buildSettings.debuggerNoMatches", "description": "Build, Execution, Deployment settings: debuggerNoMatches", @@ -996,15 +1083,22 @@ "en-US": { "desktop.buildSettings.directoryNote": "This page lists the subpages and their status only; it does not show what plugins add.", "desktop.buildSettings.issuesTitle": "{count} need attention", + "desktop.buildSettings.issuesTitleOne": "1 needs attention", "desktop.buildSettings.issuesAll": "View all {count} in Toolchains", "desktop.buildSettings.directoryScopeGlobal": "global defaults", "desktop.buildSettings.directoryScopeProject": "the current project", "desktop.buildSettings.directoryToolchains": "{tools} tools · from {plugins} plugins · showing {scope}", + "desktop.buildSettings.directoryToolchainsOneTool": "1 tool · from {plugins} plugins · showing {scope}", + "desktop.buildSettings.directoryToolchainsOnePlugin": "{tools} tools · from 1 plugin · showing {scope}", + "desktop.buildSettings.directoryToolchainsOne": "1 tool · from 1 plugin · showing {scope}", "desktop.buildSettings.directoryDebuggers": "Stepping: {count} debuggers support filters", + "desktop.buildSettings.directoryDebuggersOne": "Stepping: 1 debugger supports filters", "desktop.buildSettings.directoryDebuggersCustomized": "Stepping: {count} debuggers support filters · {customized} customized", + "desktop.buildSettings.directoryDebuggersOneCustomized": "Stepping: 1 debugger supports filters · customized", "desktop.buildSettings.directoryKind": "{names} · provided by plugins", "desktop.buildSettings.directoryKindMore": "{names} and {count} more · provided by plugins", "desktop.buildSettings.kindPageCount": "{count} pages", + "desktop.buildSettings.kindPageCountOne": "1 page", "desktop.buildSettings.kindFilter": "Filter pages or plugins", "desktop.buildSettings.kindNoMatches": "No matching pages", "desktop.buildSettings.listSeparator": ", ", @@ -1034,8 +1128,10 @@ "desktop.buildSettings.groupPlugin": "By Plugin", "desktop.buildSettings.groupNone": "None", "desktop.buildSettings.trustBanner": "{count} tools come from environments inside the project ({sources}). Lithe does not probe or run them until you trust the project.", + "desktop.buildSettings.trustBannerOne": "1 tool comes from an environment inside the project ({sources}). Lithe does not probe or run it until you trust the project.", "desktop.buildSettings.trustProject": "Trust This Project", "desktop.buildSettings.listCount": "{matched} / {total} tools", + "desktop.buildSettings.listCountOne": "{matched} / 1 tool", "desktop.buildSettings.noMatches": "No matching tools", "desktop.buildSettings.noProblems": "✓ No tools need attention", "desktop.buildSettings.pluginGroupHelp": "Runtimes plugins declare for their own language servers or background processes. You rarely change them, so the group starts collapsed; their problems still count under Needs Attention.", @@ -1096,6 +1192,7 @@ "desktop.buildSettings.debuggers": "Debuggers", "desktop.buildSettings.debuggerFilter": "Filter debuggers", "desktop.buildSettings.debuggerCount": "{count} debuggers", + "desktop.buildSettings.debuggerCountOne": "1 debugger", "desktop.buildSettings.debuggerNoMatches": "No matching debuggers", "desktop.buildSettings.providedBy": "Provided by {plugin}", "desktop.buildSettings.tabStepping": "Stepping", @@ -1123,15 +1220,22 @@ "zh-CN": { "desktop.buildSettings.directoryNote": "这一页只列子页和状态摘要,不直接展示插件注入的内容。", "desktop.buildSettings.issuesTitle": "{count} 项需要处理", + "desktop.buildSettings.issuesTitleOne": "1 项需要处理", "desktop.buildSettings.issuesAll": "在工具链中查看全部 {count} 项", "desktop.buildSettings.directoryScopeGlobal": "全局默认", "desktop.buildSettings.directoryScopeProject": "当前项目", "desktop.buildSettings.directoryToolchains": "{tools} 个工具 · 来自 {plugins} 个插件 · 当前显示{scope}", + "desktop.buildSettings.directoryToolchainsOneTool": "1 个工具 · 来自 {plugins} 个插件 · 当前显示{scope}", + "desktop.buildSettings.directoryToolchainsOnePlugin": "{tools} 个工具 · 来自 1 个插件 · 当前显示{scope}", + "desktop.buildSettings.directoryToolchainsOne": "1 个工具 · 来自 1 个插件 · 当前显示{scope}", "desktop.buildSettings.directoryDebuggers": "单步:{count} 个调试器支持过滤", + "desktop.buildSettings.directoryDebuggersOne": "单步:1 个调试器支持过滤", "desktop.buildSettings.directoryDebuggersCustomized": "单步:{count} 个调试器支持过滤 · {customized} 个已自定义", + "desktop.buildSettings.directoryDebuggersOneCustomized": "单步:1 个调试器支持过滤 · 已自定义", "desktop.buildSettings.directoryKind": "{names} · 由插件提供", "desktop.buildSettings.directoryKindMore": "{names} 等 {count} 个 · 由插件提供", "desktop.buildSettings.kindPageCount": "{count} 个页面", + "desktop.buildSettings.kindPageCountOne": "1 个页面", "desktop.buildSettings.kindFilter": "筛选页面或插件", "desktop.buildSettings.kindNoMatches": "没有匹配的页面", "desktop.buildSettings.listSeparator": "、", @@ -1161,8 +1265,10 @@ "desktop.buildSettings.groupPlugin": "按插件", "desktop.buildSettings.groupNone": "不分组", "desktop.buildSettings.trustBanner": "{count} 个工具来自项目内的环境({sources})。信任项目之前不会探测或运行它们。", + "desktop.buildSettings.trustBannerOne": "1 个工具来自项目内的环境({sources})。信任项目之前不会探测或运行它。", "desktop.buildSettings.trustProject": "信任此项目", "desktop.buildSettings.listCount": "{matched} / {total} 个工具", + "desktop.buildSettings.listCountOne": "{matched} / 1 个工具", "desktop.buildSettings.noMatches": "没有匹配的工具", "desktop.buildSettings.noProblems": "✓ 没有需要处理的工具", "desktop.buildSettings.pluginGroupHelp": "插件为自己的语言服务器或后台进程声明的运行时。平时不用改,所以默认折叠;出了问题仍会计入“需要处理”。", @@ -1223,6 +1329,7 @@ "desktop.buildSettings.debuggers": "调试器", "desktop.buildSettings.debuggerFilter": "筛选调试器", "desktop.buildSettings.debuggerCount": "{count} 个调试器", + "desktop.buildSettings.debuggerCountOne": "1 个调试器", "desktop.buildSettings.debuggerNoMatches": "没有匹配的调试器", "desktop.buildSettings.providedBy": "由 {plugin} 提供", "desktop.buildSettings.tabStepping": "单步",