Set Language-Specific Placeholder Values

Is there a way to make a project use different placeholder values based on language when compiling? For example, my part names in English are “Part One” using Title Prefix Part <$t:part>. Now I’m making a German version of that document. I can change “Part” easily enough, but I’m not seeing a way to change the names One, Two, etc.
(A workaround is to use $n or $r but I would prefer $t if possible.)

Hi.

Assuming that “One ; Two ; Three” etc., won’t be anywhere in your text, have you tried the compile format replacements? See if that auto-replace stage comes after the naming of sections at compile, you could set a bypassable translation of the numbers your need.
(?)

(I am not saying it can’t be done some other way – I don’t know. But this came to my mind.)

Thanks for the suggestion, but I don’t think that’s a safe assumption. Especially if the compile format replacement will replace within a word.

For the Mac, you need to switch your system language to German temporarily to compile. The counters should be localised, but it’s the OS producing them.

2 Likes