Hi everyone!
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? Eventually, I could share the translation to make it accessible to all?
Thanks a lot for your help, Best, Josselin
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
Hi Christian,
Wow! Merci beaucoup ;)
It seems perfect, at least for the dates. I’ll take a closer look and give feedback if I notice something we can improve!
Thank you very much again!
Best, Josselin.
Le 15 févr. 2022 à 20:06, Christian Grün christian.gruen@gmail.com a écrit :
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
basex-talk@mailman.uni-konstanz.de