fix(locale): put TCOUNT's new prompts back in the catalog

The placement options arrived with their prompts and messages written as
plain Rust strings, so they were the only command left speaking English
whatever the interface was set to.

They go through t! / tf! now like every other prompt, and the strings are
registered so the call actually reaches a translation: a source string
only resolves if the generated lookup knows it, and t! on an unknown
string just hands the source back. Keys follow what the table already
uses — the slug of the source, cut to forty-six characters, and the first
ten hex digits of its SHA-1 — which reproduces 2978 of the 3161 entries
exactly; the rest are hand-written ones predating the generator.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 5 committed 2026-08-08 03:19:54 +03:00
1 parent 7ef5b431e1
commit 2feac73eec
4 files changed
+34 -15

No files matched your search

+6 -4
View File
@@ -922,18 +922,20 @@ impl CadCommand for TCountCommand {
fn prompt(&self) -> String {
if self.gathering {
return "TCOUNT select text objects, then press Enter:".to_string();
return crate::t!("TCOUNT select text objects, then press Enter:").into_owned();
}
match self.step {
TCountStep::Start => {
format!("TCOUNT starting number <{}>:", self.start)
let start = self.start;
crate::tf!("TCOUNT starting number <{start}>:").into_owned()
}
TCountStep::Increment => {
format!("TCOUNT increment <{}>:", self.increment)
let increment = self.increment;
crate::tf!("TCOUNT increment <{increment}>:").into_owned()
}
TCountStep::Placement => {
"TCOUNT placement [Overwrite/Prefix/Suffix] <Overwrite>:".to_string()
crate::t!("TCOUNT placement [Overwrite/Prefix/Suffix] <Overwrite>:").into_owned()
}
}
}