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-content/themes/twentythirteen/functions.php

    r45768 r45932  
    220220    $fonts_url = '';
    221221
    222     /* Translators: If there are characters in your language that are not
    223      * supported by Source Sans Pro, translate this to 'off'. Do not translate
    224      * into your own language.
     222    /*
     223     * translators: If there are characters in your language that are not supported
     224     * by Source Sans Pro, translate this to 'off'. Do not translate into your own language.
    225225     */
    226226    $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' );
    227227
    228     /* Translators: If there are characters in your language that are not
    229      * supported by Bitter, translate this to 'off'. Do not translate into your
    230      * own language.
     228    /*
     229     * translators: If there are characters in your language that are not supported
     230     * by Bitter, translate this to 'off'. Do not translate into your own language.
    231231     */
    232232    $bitter = _x( 'on', 'Bitter font: on or off', 'twentythirteen' );
     
    362362    // Add a page number if necessary.
    363363    if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
    364         /* translators: %s: page number */
     364        /* translators: %s: Page number. */
    365365        $title = "$title $sep " . sprintf( __( 'Page %s', 'twentythirteen' ), max( $paged, $page ) );
    366366    }
     
    481481        }
    482482
    483         // Translators: used between list items, there is a space after the comma.
     483        /* translators: Used between list items, there is a space after the comma. */
    484484        $categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) );
    485485        if ( $categories_list ) {
     
    487487        }
    488488
    489         // Translators: used between list items, there is a space after the comma.
     489        /* translators: Used between list items, there is a space after the comma. */
    490490        $tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) );
    491491        if ( $tag_list ) {
     
    498498                '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    499499                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    500                 /* translators: %s: author display name */
     500                /* translators: %s: Author display name. */
    501501                esc_attr( sprintf( __( 'View all posts by %s', 'twentythirteen' ), get_the_author() ) ),
    502502                get_the_author()
     
    519519    function twentythirteen_entry_date( $echo = true ) {
    520520        if ( has_post_format( array( 'chat', 'status' ) ) ) {
    521             /* translators: 1: post format name, 2: date */
     521            /* translators: 1: Post format name, 2: Date. */
    522522            $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' );
    523523        } else {
     
    528528            '<span class="date"><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a></span>',
    529529            esc_url( get_permalink() ),
    530             /* translators: %s: post title */
     530            /* translators: %s: Post title. */
    531531            esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ),
    532532            esc_attr( get_the_date( 'c' ) ),
     
    642642            '<a href="%1$s" class="more-link">%2$s</a>',
    643643            esc_url( get_permalink( get_the_ID() ) ),
    644             /* translators: %s: Name of current post */
     644            /* translators: %s: Post title. */
    645645            sprintf( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
    646646        );
Note: See TracChangeset for help on using the changeset viewer.