Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (5 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-includes/post-template.php

    r45926 r45932  
    124124        if ( ! empty( $post->post_password ) ) {
    125125
    126             /* translators: %s: protected post title */
     126            /* translators: %s: Protected post title. */
    127127            $prepend = __( 'Protected: %s' );
    128128
     
    142142        } elseif ( isset( $post->post_status ) && 'private' == $post->post_status ) {
    143143
    144             /* translators: %s: private post title */
     144            /* translators: %s: Private post title. */
    145145            $prepend = __( 'Private: %s' );
    146146
     
    293293            '<span aria-label="%1$s">%2$s</span>',
    294294            sprintf(
    295                 /* translators: %s: Name of current post */
     295                /* translators: %s: Post title. */
    296296                __( 'Continue reading %s' ),
    297297                the_title_attribute(
     
    11161116            $html = sprintf(
    11171117                "<li><span class='post-meta-key'>%s</span> %s</li>\n",
    1118                 /* translators: %s: Post custom field name */
     1118                /* translators: %s: Post custom field name. */
    11191119                sprintf( _x( '%s:', 'Post custom field name' ), $key ),
    11201120                $value
     
    18261826    }
    18271827
    1828     /* translators: revision date format, see https://secure.php.net/date */
     1828    /* translators: Revision date format, see https://secure.php.net/date */
    18291829    $datef = _x( 'F j, Y @ H:i:s', 'revision date format' );
    1830     /* translators: %s: revision date */
     1830    /* translators: %s: Revision date. */
    18311831    $autosavef = __( '%s [Autosave]' );
    1832     /* translators: %s: revision date */
     1832    /* translators: %s: Revision date. */
    18331833    $currentf = __( '%s [Current Revision]' );
    18341834
     
    18681868
    18691869    $author = get_the_author_meta( 'display_name', $revision->post_author );
    1870     /* translators: revision date format, see https://secure.php.net/date */
     1870    /* translators: Revision date format, see https://secure.php.net/date */
    18711871    $datef = _x( 'F j, Y @ H:i:s', 'revision date format' );
    18721872
     
    18801880
    18811881    $revision_date_author = sprintf(
    1882         /* translators: post revision title: 1: author avatar, 2: author name, 3: time ago, 4: date */
     1882        /* translators: Post revision title. 1: Author avatar, 2: Author name, 3: Time ago, 4: Date. */
    18831883        __( '%1$s %2$s, %3$s ago (%4$s)' ),
    18841884        $gravatar,
     
    18881888    );
    18891889
    1890     /* translators: %s: revision date with author avatar */
     1890    /* translators: %s: Revision date with author avatar. */
    18911891    $autosavef = __( '%s [Autosave]' );
    1892     /* translators: %s: revision date with author avatar */
     1892    /* translators: %s: Revision date with author avatar. */
    18931893    $currentf = __( '%s [Current Revision]' );
    18941894
Note: See TracChangeset for help on using the changeset viewer.