WordPress.org

Make WordPress Core

Ticket #9190: edit-comments.diff

File edit-comments.diff, 2.5 KB (added by mrmist, 5 years ago)

edit comments

  • wp-admin/edit-comments.php

     
    109109                echo '<div id="moderated" class="updated fade"><p>'; 
    110110 
    111111                if ( $approved > 0 ) { 
    112                         printf( __ngettext( '%s comment approved', '%s comments approved', $approved ), $approved ); 
     112                        printf( _n( '%s comment approved', '%s comments approved', $approved ), $approved ); 
    113113                        echo '<br />'; 
    114114                } 
    115115 
    116116                if ( $deleted > 0 ) { 
    117                         printf( __ngettext( '%s comment deleted', '%s comments deleted', $deleted ), $deleted ); 
     117                        printf( _n( '%s comment deleted', '%s comments deleted', $deleted ), $deleted ); 
    118118                        echo '<br />'; 
    119119                } 
    120120 
    121121                if ( $spam > 0 ) { 
    122                         printf( __ngettext( '%s comment marked as spam', '%s comments marked as spam', $spam ), $spam ); 
     122                        printf( _n( '%s comment marked as spam', '%s comments marked as spam', $spam ), $spam ); 
    123123                        echo '<br />'; 
    124124                } 
    125125 
     
    136136//, number_format_i18n($num_comments->moderated) ), "<span class='comment-count'>" . number_format_i18n($num_comments->moderated) . "</span>"), 
    137137//, number_format_i18n($num_comments->spam) ), "<span class='spam-comment-count'>" . number_format_i18n($num_comments->spam) . "</span>") 
    138138$stati = array( 
    139                 'all' => __ngettext_noop('All', 'All'), // singular not used 
    140                 'moderated' => __ngettext_noop('Pending (<span class="pending-count">%s</span>)', 'Pending (<span class="pending-count">%s</span>)'), 
    141                 'approved' => __ngettext_noop('Approved', 'Approved'), // singular not used 
    142                 'spam' => __ngettext_noop('Spam (<span class="spam-count">%s</span>)', 'Spam (<span class="spam-count">%s</span>)') 
     139                'all' => _n_noop('All', 'All'), // singular not used 
     140                'moderated' => _n_noop('Pending (<span class="pending-count">%s</span>)', 'Pending (<span class="pending-count">%s</span>)'), 
     141                'approved' => _n_noop('Approved', 'Approved'), // singular not used 
     142                'spam' => _n_noop('Spam (<span class="spam-count">%s</span>)', 'Spam (<span class="spam-count">%s</span>)') 
    143143        ); 
    144144$class = ( '' === $comment_status ) ? ' class="current"' : ''; 
    145145// $status_links[] = "<li><a href='edit-comments.php'$class>" . __( 'All' ) . '</a>'; 
     
    163163                $link = add_query_arg( 's', attribute_escape( stripslashes( $_GET['s'] ) ), $link ); 
    164164        */ 
    165165        $status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf( 
    166                 __ngettext( $label[0], $label[1], $num_comments->$status ), 
     166                _n( $label[0], $label[1], $num_comments->$status ), 
    167167                number_format_i18n( $num_comments->$status ) 
    168168        ) . '</a>'; 
    169169}