On Mon, Oct 14, 2024 at 12:40:42PM +0100, Gavin Smith wrote:
> Hovever, I remember that there was more dependencies on gettext in XS
> code after the 7.1 release, so this may not be possible.  (I'd have to
> go back to old emails to remember the details - it may have been
> for the rarely used "object-oriented definition" commands, such as
> @defcv that used translated strings in their output.)

It is as you say, the translation of @def* related to class names is
done from within the parser.

> Depending on how much we wanted to fix this there could be other
> workarounds - could we call into Perl code to get the translated strings
> and/or to change the environment?  We could even have a separate helper
> program we could run to get the translated string output, although
> hopefully that would not be necessary.

This is a pain, but I think that the simplest would be having a call to
Texinfo::Translations::translate_string replace translate_string in
tp/Texinfo/XS/main/translations.c, similar to what is done already with
the calls in tp/Texinfo/XS/main/call_perl_function.c for index sorting
and transliteration of unicode.

-- 
Pat

Reply via email to