#5015 closed defect (bug) (fixed)
Make year/month/week/day/... proper plurals and not individual strings
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 1.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-patch |
Cc: | vanillalounge |
Description
In http://buddypress.trac.wordpress.org/browser/trunk/bp-core/bp-core-functions.php#L594, the duration strings are being called individually with __()
gettext functions when they should be called as a group with _n()
.
The code currently assumes that there is only one plural form (i.e. 'one' and 'many') when many languages have way more complex plural forms. Polish, for instance has an expression for 1, another for 2--4, 22--24, 32--34, 42--44, ... and yet another for 0, 5--21, 25--31, 35--41, ...
_n()
handles these properly, for all languages supported by GlotPress.
Attachments (1)
Change History (9)
Note: See
TracTickets for help on using
tickets.
Introduced in [624] as a fix for #154. Also mentioned in ticket:190:4.
Related: #3056