The problem
The English plural pattern is
Code: Select all
nplurals=2; plural=(n != 1)
Here's an example of the working plural implementation in Scottish Gaelic:
Code: Select all
'NUM_POSTS_IN_QUEUE' => array(
'0' => '%d post sa chiudha',
'1' => '%d phost sa chiudha',
'3' => '%d postaichean sa chiudha',
'11' => '%d phost sa chiudha',
'13' => '%d postaichean sa chiudha',
'20' => '%d post sa chiudha',
),
I have suggested this bugfix before but was shot down with the argument that fixing it would break existing translations, but the way it stands, it breaks existing translations as well, and in an unfixable manner to boot.
Pros
- All languages will have correct plural forms.
- We won't be stuck forever with a choice between grammar errors (e.g. in my translation "%d postaichean" for "%d posts" which is wrong for all numbers except 3-9, 13-19) or something both unreadable and illegible (e.g. "%d p(h)ost(aichean)" in my translation) which can't be fixed
- Some translation teams will have to fix some strings