[buddypress-trac] [BuddyPress Trac] #6773: Translation: wrong key given for plural form

buddypress-trac noreply at wordpress.org
Mon Dec 14 09:37:00 UTC 2015


#6773: Translation: wrong key given for plural form
--------------------------------+-----------------------------
 Reporter:  KristianJI          |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  lowest              |  Milestone:  Awaiting Review
Component:  Component - Groups  |    Version:  2.3.2
 Severity:  normal              |   Keywords:
--------------------------------+-----------------------------
 Hello

 In buddypress/bp-groups/bp-groups-template.php around line 1842:
 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s group', 'Viewing %1$s
 - %2$s of %3$s groups', $groups_template->total_group_count, 'buddypress'
 ), $from_num, $to_num, $total );

 The _n() function is looking up the translation by the key in the .po
 file. The key in the .po file i "Viewing 1 group" - not "Viewing %1$s -
 %2$s of %3$s group".

 Either the key in the .po file should be changed, or the line should be
 changed to:
 $message = sprintf( _n( 'Viewing 1 group', 'Viewing %1$s - %2$s of %3$s
 groups', $groups_template->total_group_count, 'buddypress' ), $from_num,
 $to_num, $total );

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


More information about the buddypress-trac mailing list