[buddypress-trac] [BuddyPress Trac] #6275: Missing plural on activities for show all comments button
    buddypress-trac 
    noreply at wordpress.org
       
    Tue Mar  3 15:13:49 UTC 2015
    
    
  
#6275: Missing plural on activities for show all comments button
----------------------------------+-----------------------------
 Reporter:  danbp                 |      Owner:
     Type:  defect (bug)          |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  Component - Activity  |    Version:  2.2.1
 Severity:  minor                 |   Keywords:
----------------------------------+-----------------------------
 When modifying the default 5 comments
 {{{/* Hide long lists of activity comments, only show the latest five root
 comments. */}}} in buddypress.js:1898
 {{{
  if ( jq(this).children('ul').children('li').length < 0 )
 }}}
 and line 1913
 {{{
 if ( i < comment_lis.length - 0 )
 }}}
 to get '''show comments(x)''' button as soon as there is '''1''' comment,
 the button text brings ''Show all '''1''' comments''.
 the gettext plural is needed in buddypress-functions.php:252
 {{{
 'show_x_comments' => __( 'Show all %d comments', 'buddypress' )
 }}}
 something like
 {{{
 'show_x_comments' => _n( 'Show %d comment', 'Show all %d comments',
 'buddypress' )
 }}}
 Thank you. ;-)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6275>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
    
    
More information about the buddypress-trac
mailing list