The plurals formula used is:
"Plural-Forms: nplurals=2; plural=n != 1;\n"

But this causes an inconsistency with the "items in moderation" formula in modr8_page: 0 item will cause the 1 item case to appear. This can be fixed by using this formula:
"Plural-Forms: nplurals=2; plural=(n>1);\n"

In that case, 0 item will appear as "0 contributions en attente de modération", not excellent, but better than the current "1 contribution en attente de modération", which is numerically wrong.

The problem, though, is more with the code, which should take care of all three cases: 0, 1, and plurals (accounted for by format_plural). But this fix is still better than the current situation.

Comments

fgm’s picture

Title: Incorret plural formula in french translation » Incorrect plural formula in french translation

Err, actually the problem is really more with the code, and the suggested fr.po change is just wrong, forget about it.

I'll try to prepare a patch for both the moderator block and the moderator page, which have the same problem.

fgm’s picture

More detail in #816166: Documentation problem with format_plural and #384866: Clarify documentation for format_plural() for the underlying core problem.

Patch postponed until we get a better idea what the actual solution is.