Changeset 45926 for trunk/src/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r45737 r45926 662 662 $pending_comments_number = number_format_i18n( $pending_comments ); 663 663 664 $approved_only_phrase = sprintf( _n( '%s comment', '%s comments', $approved_comments ), $approved_comments_number ); 665 $approved_phrase = sprintf( _n( '%s approved comment', '%s approved comments', $approved_comments ), $approved_comments_number ); 666 $pending_phrase = sprintf( _n( '%s pending comment', '%s pending comments', $pending_comments ), $pending_comments_number ); 664 $approved_only_phrase = sprintf( 665 /* translators: %s: number of comments */ 666 _n( '%s comment', '%s comments', $approved_comments ), 667 $approved_comments_number 668 ); 669 670 $approved_phrase = sprintf( 671 /* translators: %s: number of comments */ 672 _n( '%s approved comment', '%s approved comments', $approved_comments ), 673 $approved_comments_number 674 ); 675 676 $pending_phrase = sprintf( 677 /* translators: %s: number of comments */ 678 _n( '%s pending comment', '%s pending comments', $pending_comments ), 679 $pending_comments_number 680 ); 667 681 668 682 // No comments at all. … … 791 805 } 792 806 793 $output = '<span class="displaying-num">' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>'; 807 $output = '<span class="displaying-num">' . sprintf( 808 /* translators: %s: number of items */ 809 _n( '%s item', '%s items', $total_items ), 810 number_format_i18n( $total_items ) 811 ) . '</span>'; 794 812 795 813 $current = $this->get_pagenum(); … … 859 877 } 860 878 $html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) ); 861 $page_links[] = $total_pages_before . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . $total_pages_after; 879 $page_links[] = $total_pages_before . sprintf( 880 /* translators: 1: current page, 2: total pages */ 881 _x( '%1$s of %2$s', 'paging' ), 882 $html_current_page, 883 $html_total_pages 884 ) . $total_pages_after; 862 885 863 886 if ( $disable_next ) { … … 1375 1398 if ( isset( $this->_pagination_args['total_items'] ) ) { 1376 1399 $response['total_items_i18n'] = sprintf( 1400 /* translators: number of items */ 1377 1401 _n( '%s item', '%s items', $this->_pagination_args['total_items'] ), 1378 1402 number_format_i18n( $this->_pagination_args['total_items'] )
Note: See TracChangeset
for help on using the changeset viewer.