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-content/themes/twentyseventeen/inc/template-tags.php

    r45604 r45932  
    1818        // Get the author name; wrap it in a link.
    1919        $byline = sprintf(
    20             /* translators: %s: post author */
     20            /* translators: %s: Post author. */
    2121            __( 'by %s', 'twentyseventeen' ),
    2222            '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . get_the_author() . '</a></span>'
     
    4949        // Wrap the time string in a link, and preface it with 'Posted on'.
    5050        return sprintf(
    51             /* translators: %s: post date */
     51            /* translators: %s: Post date. */
    5252            __( '<span class="screen-reader-text">Posted on</span> %s', 'twentyseventeen' ),
    5353            '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
     
    6363    function twentyseventeen_entry_footer() {
    6464
    65         /* translators: used between list items, there is a space after the comma */
     65        /* translators: Used between list items, there is a space after the comma. */
    6666        $separate_meta = __( ', ', 'twentyseventeen' );
    6767
     
    114114        edit_post_link(
    115115            sprintf(
    116                 /* translators: %s: Name of current post */
     116                /* translators: %s: Post title. */
    117117                __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
    118118                get_the_title()
     
    149149    } elseif ( is_customize_preview() ) {
    150150        // The output placeholder anchor.
    151         /* translators: %s: The section id */
     151        /* translators: %s: The section ID. */
    152152        echo '<article class="panel-placeholder panel twentyseventeen-panel twentyseventeen-panel' . $id . '" id="panel' . $id . '"><span class="twentyseventeen-panel-title">' . sprintf( __( 'Front Page Section %s Placeholder', 'twentyseventeen' ), $id ) . '</span></article>';
    153153    }
Note: See TracChangeset for help on using the changeset viewer.