Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 years 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-posts-list-table.php

    r45930 r45932  
    306306
    307307                        $mine_inner_html = sprintf(
    308                                 /* translators: %s: number of posts */
     308                                /* translators: %s: Number of posts. */
    309309                                _nx(
    310310                                        'Mine <span class="count">(%s)</span>',
    … …  
    327327
    328328                $all_inner_html = sprintf(
    329                         /* translators: %s: number of posts */
     329                        /* translators: %s: Number of posts. */
    330330                        _nx(
    331331                                'All <span class="count">(%s)</span>',
    … …  
    377377
    378378                        $sticky_inner_html = sprintf(
    379                                 /* translators: %s: number of posts */
     379                                /* translators: %s: Number of posts. */
    380380                                _nx(
    381381                                        'Sticky <span class="count">(%s)</span>',
    … …  
    608608                $posts_columns['cb'] = '<input type="checkbox" />';
    609609
    610                 /* translators: manage posts column name */
     610                /* translators: Posts screen column name. */
    611611                $posts_columns['title'] = _x( 'Title', 'column name' );
    612612
    … …  
    922922                        <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>">
    923923                                <?php
    924                                         /* translators: %s: post title */
     924                                        /* translators: %s: Post title. */
    925925                                        printf( __( 'Select %s' ), _draft_or_post_title() );
    926926                                ?>
    … …  
    932932                                <?php
    933933                                printf(
    934                                         /* translators: %s: post title */
     934                                        /* translators: %s: Post title. */
    935935                                        __( '&#8220;%s&#8221; is locked' ),
    936936                                        _draft_or_post_title()
    … …  
    10001000                                $lock_holder   = get_userdata( $lock_holder );
    10011001                                $locked_avatar = get_avatar( $lock_holder->ID, 18 );
    1002                                 /* translators: %s: user's display name */
     1002                                /* translators: %s: User's display name. */
    10031003                                $locked_text = esc_html( sprintf( __( '%s is currently editing' ), $lock_holder->display_name ) );
    10041004                        } else {
    … …  
    10191019                                '<a class="row-title" href="%s" aria-label="%s">%s%s</a>',
    10201020                                get_edit_post_link( $post->ID ),
    1021                                 /* translators: %s: post title */
     1021                                /* translators: %s: Post title. */
    10221022                                esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) ),
    10231023                                $pad,
    … …  
    10741074
    10751075                        if ( $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) {
    1076                                 /* translators: %s: Human-readable time difference */
     1076                                /* translators: %s: Human-readable time difference. */
    10771077                                $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
    10781078                        } else {
    … …  
    12171217                                $term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );
    12181218
    1219                                 /* translators: used between list items, there is a space after the comma */
     1219                                /* translators: Used between list items, there is a space after the comma. */
    12201220                                echo join( __( ', ' ), $term_links );
    12211221                        } else {
    … …  
    13391339                                '<a href="%s" aria-label="%s">%s</a>',
    13401340                                get_edit_post_link( $post->ID ),
    1341                                 /* translators: %s: post title */
     1341                                /* translators: %s: Post title. */
    13421342                                esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ),
    13431343                                __( 'Edit' )
    … …  
    13471347                                $actions['inline hide-if-no-js'] = sprintf(
    13481348                                        '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>',
    1349                                         /* translators: %s: post title */
     1349                                        /* translators: %s: Post title. */
    13501350                                        esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $title ) ),
    13511351                                        __( 'Quick&nbsp;Edit' )
    … …  
    13591359                                        '<a href="%s" aria-label="%s">%s</a>',
    13601360                                        wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ),
    1361                                         /* translators: %s: post title */
     1361                                        /* translators: %s: Post title. */
    13621362                                        esc_attr( sprintf( __( 'Restore &#8220;%s&#8221; from the Trash' ), $title ) ),
    13631363                                        __( 'Restore' )
    … …  
    13671367                                        '<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
    13681368                                        get_delete_post_link( $post->ID ),
    1369                                         /* translators: %s: post title */
     1369                                        /* translators: %s: Post title. */
    13701370                                        esc_attr( sprintf( __( 'Move &#8220;%s&#8221; to the Trash' ), $title ) ),
    13711371                                        _x( 'Trash', 'verb' )
    … …  
    13761376                                        '<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
    13771377                                        get_delete_post_link( $post->ID, '', true ),
    1378                                         /* translators: %s: post title */
     1378                                        /* translators: %s: Post title. */
    13791379                                        esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently' ), $title ) ),
    13801380                                        __( 'Delete Permanently' )
    … …  
    13901390                                                '<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
    13911391                                                esc_url( $preview_link ),
    1392                                                 /* translators: %s: post title */
     1392                                                /* translators: %s: Post title. */
    13931393                                                esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ),
    13941394                                                __( 'Preview' )
    … …  
    13991399                                        '<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
    14001400                                        get_permalink( $post->ID ),
    1401                                         /* translators: %s: post title */
     1401                                        /* translators: %s: Post title. */
    14021402                                        esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ),
    14031403                                        __( 'View' )
    … …  
    14101410                                '<button type="button" class="wp-list-reusable-blocks__export button-link" data-id="%s" aria-label="%s">%s</button>',
    14111411                                $post->ID,
    1412                                 /* translators: %s: post title */
     1412                                /* translators: %s: Post title. */
    14131413                                esc_attr( sprintf( __( 'Export &#8220;%s&#8221; as JSON' ), $title ) ),
    14141414                                __( 'Export as JSON' )
    … …  
    16111611                        <em class="alignleft inline-edit-or">
    16121612                                <?php
    1613                                 /* translators: Between password field and private checkbox on post quick edit interface */
     1613                                /* translators: Between password field and private checkbox on post quick edit interface. */
    16141614                                _e( '&ndash;OR&ndash;' );
    16151615                                ?>
Note: See TracChangeset for help on using the changeset viewer.