fn:format-date french translation

Tuesday, 15 February 2022 · 3 messages · last reply 16 Feb 2022
JM
Josselin Morvan15 Feb 2022 15:26 #
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
CG
Christian Grün15 Feb 2022 20:06 #
Hi Josselin,
Quoted text · Josselin Morvan · 1 line
> 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/5b8117221b0daf071020168a35d1b0c198b699ac [2] https://files.basex.org/releases/latest/ [3] http://www.heartandcoeur.com/convert/convert_chiffre_lettre.php
JM
Josselin Morvan16 Feb 2022 12:19 #
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.
Quoted text · Christian Grün · 31 lines
> Le 15 févr. 2022 à 20:06, Christian Grün <christian.gruen at 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/5b8117221b0daf071020168a35d1b0c198b699ac > [2] https://files.basex.org/releases/latest/ > [3] http://www.heartandcoeur.com/convert/convert_chiffre_lettre.php

⚡Generated with XQuery