php-gettext / Languages

gettext language list automatically generated from CLDR data
https://php-gettext.github.io/Languages/
Other
70 stars 10 forks source link

There is an incorrect plural form for French. #42

Closed Sendey7 closed 3 years ago

Sendey7 commented 3 years ago

Hi! I found out that the library returns 3 plural forms for the French language - https://php-gettext.github.io/Languages/ (http://i.imgur.com/8sjFFM6.png). This is a screenshot from my debug code - http://i.imgur.com/L4GEBXs.png But other sources say that there are only two plural forms:

Could you please help me with this?

Thanks!

mlocati commented 3 years ago

That's correct: the third plural form for French has been introduced in the Unicode CLDR data (it's the source of the data of php-gettext/Languages): see https://cldr.unicode.org/index/downloads/cldr-38#h.7ahoxbsngtxp

This third plural category is used to translate the multiple of millions.

For example

English French
1 view 1 vue
2 views 1 vues
1.000.000 views 1.000.000 de vues (read as "1 million de vues")

That's not my choice: Unicode people switched to that approach...

Sendey7 commented 3 years ago

@mlocati Thank you for the explanation!