[buddypress-trac] [BuddyPress] #5015: Make year/month/week/day/... proper plurals and not individual strings

buddypress-trac noreply at wordpress.org
Thu May 23 22:37:00 UTC 2013


#5015: Make year/month/week/day/... proper plurals and not individual strings
---------------------------+-----------------------------
 Reporter:  vanillalounge  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  i18n           |    Version:
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 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.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5015>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list