WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (6 weeks ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r45926 r45932  
    610610                selected( $m, $year . $month, false ),
    611611                esc_attr( $arc_row->year . $month ),
    612                 /* translators: 1: month name, 2: 4-digit year */
     612                /* translators: 1: Month name, 2: 4-digit year. */
    613613                sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year )
    614614            );
     
    663663
    664664        $approved_only_phrase = sprintf(
    665             /* translators: %s: number of comments */
     665            /* translators: %s: Number of comments. */
    666666            _n( '%s comment', '%s comments', $approved_comments ),
    667667            $approved_comments_number
     
    669669
    670670        $approved_phrase = sprintf(
    671             /* translators: %s: number of comments */
     671            /* translators: %s: Number of comments. */
    672672            _n( '%s approved comment', '%s approved comments', $approved_comments ),
    673673            $approved_comments_number
     
    675675
    676676        $pending_phrase = sprintf(
    677             /* translators: %s: number of comments */
     677            /* translators: %s: Number of comments. */
    678678            _n( '%s pending comment', '%s pending comments', $pending_comments ),
    679679            $pending_comments_number
     
    806806
    807807        $output = '<span class="displaying-num">' . sprintf(
    808             /* translators: %s: number of items */
     808            /* translators: %s: Number of items. */
    809809            _n( '%s item', '%s items', $total_items ),
    810810            number_format_i18n( $total_items )
     
    878878        $html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) );
    879879        $page_links[]     = $total_pages_before . sprintf(
    880             /* translators: 1: current page, 2: total pages */
     880            /* translators: 1: Current page, 2: Total pages. */
    881881            _x( '%1$s of %2$s', 'paging' ),
    882882            $html_current_page,
     
    13981398        if ( isset( $this->_pagination_args['total_items'] ) ) {
    13991399            $response['total_items_i18n'] = sprintf(
    1400                 /* translators: number of items */
     1400                /* translators: Number of items. */
    14011401                _n( '%s item', '%s items', $this->_pagination_args['total_items'] ),
    14021402                number_format_i18n( $this->_pagination_args['total_items'] )
Note: See TracChangeset for help on using the changeset viewer.