Numbertext / libnumbertext

Number to number name and money text conversion libraries in C++, Java, JavaScript and Python & LibreOffice Calc Extension
BSD 3-Clause "New" or "Revised" License
68 stars 47 forks source link

Translating thousands in french #90

Closed arena94 closed 1 year ago

arena94 commented 3 years ago

Currently, the software translate number 1100 in 'onze cents' but 1200 in 'mille deux cents'

For legal purpose i would like to be able to translate 1100 in 'mille cent'.

as stated by the Académie Française ...

Dans l’usage courant, au lieu de mille cent, mille deux cents, etc., on dit plutôt onze cents, douze cents, etc., jusqu’à dix-neuf cents : Onze cents francs, seize cents euros. En revanche, dans la langue écrite, et notamment dans un texte juridique, administratif ou scientifique, on préfèrera les formes : mille cent, mille deux cents, etc. Une somme de mille deux cent cinquante francs. Une superficie de mille cinq cents mètres carrés.

source

is it possible ?

apparently in fr.sor there is a special rule lines 45 & 46 for this ...

thank you for your help

laszlonemeth commented 1 year ago

Hi,

The problem was solved in the previous patches of the v1.0.10 release, integrated with LibreOffice, too.

The result will be quite visible in LibreOffice 7.5, according to the new number and currency formats of the Calc Cell and Writer Field formatting dialog windows:

https://wiki.documentfoundation.org/ReleaseNotes/7.5#Default_.E2.80.9Cspell_out.E2.80.9D_number_and_currency_formats

Many thanks for your bug report!

Best regards, László