Rob Beezer
unread,Feb 18, 2026, 1:47:11 PM (12 days ago) Feb 18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to prete...@googlegroups.com
Over on -support Alexandre Lymberopoulos asks
> Also the tag <today /> gives the date in English, is it possible to have it
in any other language?
Your timing is good. I'm doing quotation marks by language.
Note that for dates, it may not just be the words for the months and the days of
the week, but also the default format (yes, we do it weird in English). So it
is a bit of a minefield. Note that we do support a handful of formats already.
I should release the quotation work in a few days. We already have a new
"ambient language" template to determine what language is "in force" at any one
point.
Localization files would need 19 new entries (at least?), templates to query
them, and then XSL code to translate the English version (which we get with an
XSL function) into the language-specific version. A preferred format could be
something like what I am doing with how quotation mark styles vary. See the
template in xsl/pretext-common.xsl
<xsl:template match="today">
Thankfully, this should be "all text" results and so could be confined to that
one file. I can provide more guidance to you, or somebody else with an interest
in a non-trivial XSL project that has a good guide to the harder parts in the
upcoming quotation work.
Rob
P.S. And for good measure - 12 hour time v. 24 hour time!