Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not assume that singular form in _n() is used just for single item #9711
As explained in this comment (and linked pages), in languages other than English, singular form in
In two cases, we use placeholder in plural form in
This PR splits those strings so that we have separate strings when there is just one item and for more than one item, and always include placeholder in
How has this been tested?
By selecting different number of blocks after running
Related: Calypso has adopted its own linting rules to capture these sorts of issues, based on a mismatch of the number of placeholders in the plural forms string:
Might be worth exploring a port here.