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 <[email protected]>
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

+1 -1
View File
@@ -453,7 +453,7 @@ fn collect_drawing_paths(
return Ok(());
}
if !path.is_dir() {
return Err(crate::tf!("Data source not found: %{path}", path = path.display()).into_owned());
return Err(crate::t!("Data source not found: %{path}", path = path.display()).into_owned());
}
for entry in std::fs::read_dir(path).map_err(|error| error.to_string())? {
let entry = entry.map_err(|error| error.to_string())?;
+2 -2
View File
@@ -176,7 +176,7 @@ impl OpenCADStudio {
}
self.tabs[i].dirty = true;
self.command_line.push_output(
crate::tf!(
crate::t!(
"EXTRUDE: created %{created} object(s); %{failed} source(s) could not be extruded.",
created = created_handles.len(),
failed = failed
@@ -427,7 +427,7 @@ impl OpenCADStudio {
}
self.tabs[i].dirty = true;
self.command_line.push_output(
crate::tf!(
crate::t!(
"REVOLVE: created %{created} object(s); %{failed} source(s) could not be revolved.",
created = created_handles.len(),
failed = failed
+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()
)