On Sat, Oct 05, 2024 at 11:28:53AM +0100, Gavin Smith wrote: > I see that this was fixed in commit b0eb920e16320727196c (2024-10-03); > however the effect of this is that all the translated versions of these > strings will now be wrong: > > - - Variable d\'instance de fr : BBB CCC > + -- Variable d\'instance of fr: BBB CCC > erreur→ > > I see two ways of fixing this. One is to change it back to the way > the code was before. The other is to use the > po_document/adjust-translations.pl script (which would be more work). > Any suggestions?
The previous output was incorrect, as the whole definition line was formatted as code, which is incorrect for the category of the definition, which is normal text. Now, the translation tree arguments are formatted as code when needed (for {class}, {name}, {type} {arguments}), but the whole line is formatted as normal text. I can imagine other ways to obtain the same result, for instance using @t{--}, or outputting separately the leading '@tie{}--- ' and the remaining, but those options entail a change in the translations. There could be an option, maybe, which would be to add a new pseudo type _no_code such that code style is removed for {category} but the whole line is formatted as code. Would that be better? -- Pat