French installation

I recently have problem installing Concrete (versions 8.5.6 or 9RC). The error message is

The language file /application/languages/fr_FR/LC_MESSAGES/messages.mo for French (France) has 2 plural forms instead of 3

I never had this error before, and the 8.5.5 version installation is working.

Hi, i’ve just saw it too.
i’ll check the language file but i do not understand too. because they are not 3 plural form in french, just 2 (1 and plural)

Hi,
Same problem here, i tried to upgrade 8.5.5 to 8.5.6 : same error on french language. After this, install from scratch and same error. Tried Spanish language : ok…

So, I saw that lib gettext had changed… So, the file (in v8.5.6) : /concrete/vendor/gettext/languages/src/cldr-data/supplemental/plurals.json have now this line for french (3 plurals) :

“fr”: {
“pluralRule-count-one”: “i = 0,1 @integer 0, 1 @decimal 0.0~1.5”,
“pluralRule-count-many”: “e = 0 and i != 0 and i % 1000000 = 0 and v = 0 or e != 0…5 @integer 1000000, 1c6, 2c6, 3c6, 4c6, 5c6, 6c6, … @decimal 1.0000001c6, 1.1c6, 2.0000001c6, 2.1c6, 3.0000001c6, 3.1c6, …”,
“pluralRule-count-other”: " @integer 2~17, 100, 1000, 10000, 100000, 1c3, 2c3, 3c3, 4c3, 5c3, 6c3, … @decimal 2.0~3.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, 1.0001c3, 1.1c3, 2.0001c3, 2.1c3, 3.0001c3, 3.1c3, …"
},

For version 8.5.5 :

“fr”: {
“pluralRule-count-one”: “i = 0,1 @integer 0, 1 @decimal 0.0~1.5”,
“pluralRule-count-other”: " @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 2.0~3.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …"
},

With this last configuration (old conf plural with 8.5.6) : it’s ok !

An other solution is to edit messages.po and add nplurals=3, instead of nplurals=2 and replace the old messages.mo in application…
But, it will be cool to have a good messages.mo uploaded on installation…

i saw it too. Good catch i didn’t have idea to look in gettext json definition :slight_smile:

we don’t have access to the .po on the translate tool.
in fact the tips working