fix(i18n): named-argument messages no longer print a stray placeholder

Eight messages with %{name} arguments went through the positional
formatter, which printed "%3" for a count, and their catalog entries
held %__ocs_fmt_N__ where the named form is expected. They take named
arguments now, and the entries — and those of the selection and HATCHEDIT
prompts with the same fault — use __ocs_arg_<name>__.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-07 12:51:33 +03:00
1 parent 33640e050d
commit 34dbc13db0
24 files changed
+176 -176

No files matched your search

+5 -5
View File
@@ -1148,7 +1148,7 @@ impl super::OpenCADStudio {
if prepared.is_empty() {
self.command_line.push_output(
crate::tf!(
crate::t!(
"INTERSECT: no positive-area common result; %{count} original object(s) retained.",
count = retained_without_change
)
@@ -1215,7 +1215,7 @@ impl super::OpenCADStudio {
self.tabs[i].dirty = true;
self.refresh_properties();
self.command_line.push_output(
crate::tf!(
crate::t!(
"INTERSECT: created %{count} result object(s).",
count = results.len()
)
@@ -1423,7 +1423,7 @@ impl super::OpenCADStudio {
self.tabs[i].dirty = true;
self.refresh_properties();
self.command_line.push_output(
crate::tf!("UNION: created %{count} result object(s).", count = created.len()).as_ref(),
crate::t!("UNION: created %{count} result object(s).", count = created.len()).as_ref(),
);
Task::none()
}
@@ -1695,7 +1695,7 @@ impl super::OpenCADStudio {
self.tabs[i].dirty = true;
self.refresh_properties();
self.command_line.push_output(
crate::tf!(
crate::t!(
"SUBTRACT: created %{count} result object(s).",
count = retained.len()
)
@@ -1928,7 +1928,7 @@ impl super::OpenCADStudio {
self.tabs[i].dirty = true;
self.refresh_properties();
self.command_line.push_output(
crate::tf!(
crate::t!(
"SLICE: created %{count} result object(s).",
count = retained.len()
)