On Sun, Jan 18, 2026 at 01:22:07PM +0100, Bruno Haible wrote: > Gavin Smith wrote: > > In a way, they are valid failures, as it shows that translation of document > > strings won't work. > > > > texi2any needs a locale other than C, C.UTF-8 or POSIX to translate document > > strings when outputting in languages other than English. > > Does texi2any print a warning in this situation? Something like > warning: ignoring @documentlanguage because no nontrivial locale is present
It should. This is someting we discussed in the past: https://lists.gnu.org/archive/html/bug-texinfo/2025-01/msg00043.html The message should be "Cannot switch to a locale compatible with document strings translations" I checked that the message is not output when POSIX::setlocale(LC_MESSAGES, "en_US.UTF-8"); returns undef. I will add a slightly different message in that case. -- Pat
