* Lua os.date() localization in context
@ 2019-04-29 22:13 Romain Diss
0 siblings, 0 replies; only message in thread
From: Romain Diss @ 2019-04-29 22:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi all,
I would like to print the day name of a date in french using my current
locale.
In lua I can do:
> os.setlocale('fr_FR.UTF-8',all)
> print(os.date("%A"))
But in a cld document it doesn't work. Context complains about using
"os.locale in a supposedly locale neutral enviroment" and it prints the
day name in english.
How can I translate the day names without hardcoding everything?
Thanks in advance.
Best.
--
Romain Diss
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-29 22:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-29 22:13 Lua os.date() localization in context Romain Diss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).