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/twentytwelve/functions.php

    r45768 r45932  
    146146    $font_url = '';
    147147
    148     /* translators: If there are characters in your language that are not supported
     148    /*
     149     * translators: If there are characters in your language that are not supported
    149150     * by Open Sans, translate this to 'off'. Do not translate into your own language.
    150151     */
     
    152153        $subsets = 'latin,latin-ext';
    153154
    154         /* translators: To add an additional Open Sans character subset specific to your language,
     155        /*
     156         * translators: To add an additional Open Sans character subset specific to your language,
    155157         * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
    156158         */
     
    309311    // Add a page number if necessary.
    310312    if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
    311         /* translators: %s: page number */
     313        /* translators: %s: Page number. */
    312314        $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );
    313315    }
     
    439441                        esc_url( get_comment_link( $comment->comment_ID ) ),
    440442                        get_comment_time( 'c' ),
    441                         /* translators: 1: date, 2: time */
     443                        /* translators: 1: Date, 2: Time. */
    442444                        sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )
    443445                    );
     
    487489     */
    488490    function twentytwelve_entry_meta() {
    489         // Translators: used between list items, there is a space after the comma.
     491        /* translators: Used between list items, there is a space after the comma. */
    490492        $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );
    491493
    492         // Translators: used between list items, there is a space after the comma.
     494        /* translators: Used between list items, there is a space after the comma. */
    493495        $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );
    494496
     
    504506            '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    505507            esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    506             /* translators: %s: author display name */
     508            /* translators: %s: Author display name. */
    507509            esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),
    508510            get_the_author()
     
    510512
    511513        if ( $tag_list ) {
    512             /* translators: 1: category name, 2: tag name, 3: date, 4: author display name */
     514            /* translators: 1: Category name, 2: Tag name, 3: Date, 4: Author display name. */
    513515            $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
    514516        } elseif ( $categories_list ) {
    515             /* translators: 1: category name, 3: date, 4: author display name */
     517            /* translators: 1: Category name, 3: Date, 4: Author display name. */
    516518            $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
    517519        } else {
    518             /* translators: 3: date, 4: author display name */
     520            /* translators: 3: Date, 4: Author display name. */
    519521            $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' );
    520522        }
Note: See TracChangeset for help on using the changeset viewer.