Web conversion to a language different than english fails

14 views
Skip to first unread message

valeriom...@gmail.com

unread,
Aug 6, 2026, 6:54:05 PMAug 6
to PreTeXt development
Dear all,
it looks like some recent change introduced a bug in web conversion if a language different than english (I tried italian and French) is set. LaTeX conversion is unaffected.

I get a bunch of error messages like these 

bug: * PTX:BUG:     could not translate string with id "search-book" into language for code "it-IT"
bug: * PTX:BUG:     could not translate string with id "readability-settings" into language for code "it-IT"

I made some tests with different versions of Pretext-CLI and it looks like the first version to be affected is 2.4.5

All the best,
Valerio

Rob Beezer

unread,
Aug 6, 2026, 11:26:25 PMAug 6
to prete...@googlegroups.com
Dear Valerio,

Do you get reasonable output? Does teh\\he build run to a healthy conclusion?

This is what happens when a translation is incomplete and does not have a
translation for a particular string (like "Search" on a search button.

The only change may be that it got converted from a WARNING to a BUG and now it
is more prominent in your diagnostics.

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com <mailto:pretext-
> dev+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> dev/6a2d1b20-1e67-4d5c-a77d-d452a46f2df0n%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-dev/6a2d1b20-1e67-4d5c-a77d-
> d452a46f2df0n%40googlegroups.com?utm_medium=email&utm_source=footer>.

valeriom...@gmail.com

unread,
Aug 7, 2026, 2:18:42 AMAug 7
to PreTeXt development
Hi Rob,
thanks. No, the conversion fails with this message

fatal: There were errors during the build.  See above.
fatal: Failed to build without errors.  Exiting...

The issue is easy to reproduce.
  • Create a new project
  • Open main.ptx and change language (I  tried italian, french and german)
  • Try to build
Pretext-CLI 2.44 works fine. Pretext-CLI 2.45 is the first one where build fails.

Valerio

Oscar Levin

unread,
Aug 7, 2026, 6:17:52 AMAug 7
to prete...@googlegroups.com
Those last two fatal messages might be misleading.  We used to call them critical and use that message to report all log messages of a certain level at the end of the log output.  I'll look into that today.  Did your output look mostly right or did it actually abort mid way through?

To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/7f3c037d-b6c8-4761-8a2b-ce7aa4822587n%40googlegroups.com.

OHappyDay

unread,
Aug 7, 2026, 7:11:28 AMAug 7
to PreTeXt development
I tested the Italian setting on one of my projects and the build process resulted in a bunch of similar bug messages like in the original post.
The build itself was successful (respective message at the top of the build output indicates that) and Italian text was showing up.

The bug lines refer to terms that are not translated via the it-IT.xml file. The respective lines are commented out 
(e.g.  <!-- <localization string-id='search-book'>Search Book</localization> -->). You find the file in ~/.ptx/2.47.1/core/xsl/localizations.

Correct this and maybe send the updated version of this file to the developers for inclusion in the next release.

Klaus

Rob Beezer

unread,
Aug 7, 2026, 11:03:54 AMAug 7
to prete...@googlegroups.com
Thanks, Valerio, for the report, and for everyone's interest in this one.
Here's the deal.

The message in the XSL for a string without a translation got upgraded from
WARNING to BUG as part of a major overhaul of all the messaging coming from the
XSL and Python. My assistant's doing, but I did not catch it in a review. That
has been switched back.

https://github.com/PreTeXtBook/pretext/pull/3133

Then the CLI decides what to do with all these messages and how to report and
handle them. I dropped a few changes on Oscar as part of this overhaul and
maybe he wants to take a closer look (or perhaps all is fine). We distinguish
error, warning, and fallback from fatal, with only the latter resulting in no
(or busted) output.

@Oscar - do you think you can do a minor CLI release with the above fix so that
we do not alarm any more of our international friends?

Rob

valeriom...@gmail.com

unread,
Aug 7, 2026, 1:06:47 PMAug 7
to PreTeXt development
Thank you,
Rob.

Even it is not related to this, I saw that there are several untranslated string in the Italian localization. I will work on this as soon as possible.

Valerio

Oscar Levin

unread,
Aug 7, 2026, 1:25:23 PMAug 7
to prete...@googlegroups.com
Yes, I can release an update later tonight.  And I'll make sure that non fatal errors don't get a fatal log entry at the end of the build.

--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages