[buddypress-trac] [BuddyPress Trac] #6368: Use proper plural forms in languages with more than two forms
buddypress-trac
noreply at wordpress.org
Wed May 20 11:31:26 UTC 2015
#6368: Use proper plural forms in languages with more than two forms
---------------------------+---------------------------
Reporter: netweb | Owner: boonebgorges
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.3
Component: Locale - i18n | Version:
Severity: normal | Resolution:
Keywords: has-patch |
---------------------------+---------------------------
Comment (by boonebgorges):
> Could use some feedback from a localization expert!
That's not me :) but I think netweb is right. The primary difference
between the bp-messages-star examples he lists, and the core examples you
point to, is that the former strings have `1` hardcoded into them. The
general rule is arising out of
https://core.trac.wordpress.org/ticket/28502#comment:23: string pairs in
`_n()` should be exactly the same, except for the plural status of the
noun (in English: `comment` vs `comments`). If a particular number, like
1, needs its own syntax ("Just a single comment left!"), it should be its
own string, outside of `_n()`. The bp-messages-star examples look like
cases where simply swapping `1` with `%s` would be enough.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6368#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list