Active
Project:
modr8
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2010 at 15:53 UTC
Updated:
2 Jun 2010 at 19:43 UTC
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
Comment #1
fgmErr, 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.
Comment #2
fgmMore 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.