Hi Josselin,
It seems that there is no french translation for the fn:format-date() fonction with BaseX. Does anyone knows how and where I could add it to make it run with the format-date() function?
Thanks for your offer to help out with the French variant of the format functions.
I’m not a native speaker, but I’ve done a first attempt [1,2]. Voici quelques exemples:
format-date(xs:date('2001-01-01'), '[FNn] [d] [Mn] [Y]', 'fr', (), ()) → Lundi 1 janvier 2002
format-integer(1984, 'w', 'fr') → mille neuf cent quatre-vingt-quatre
format-integer(111111111111, 'w;o', 'fr') → cent onze milliard cent onze million cent onze mille cent onzième
Feedback and suggestions for improvements will be appreciated. I looked at [3] for converting numbers to words, but the rewriting of large ordinal numbers might still be flawed.
Merci d’avance et salutations, Christian
[1] https://github.com/BaseXdb/basex/commit/5b8117221b0daf071020168a35d1b0c198b6... [2] https://files.basex.org/releases/latest/ [3] http://www.heartandcoeur.com/convert/convert_chiffre_lettre.php