WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 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/twentyten/functions.php

    r45767 r45932  
    209209                    'url'           => '%s/images/headers/berries.jpg',
    210210                    'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg',
    211                     /* translators: header image description */
     211                    /* translators: Header image description. */
    212212                    'description'   => __( 'Berries', 'twentyten' ),
    213213                ),
     
    215215                    'url'           => '%s/images/headers/cherryblossoms.jpg',
    216216                    'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg',
    217                     /* translators: header image description */
     217                    /* translators: Header image description. */
    218218                    'description'   => __( 'Cherry Blossoms', 'twentyten' ),
    219219                ),
     
    221221                    'url'           => '%s/images/headers/concave.jpg',
    222222                    'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg',
    223                     /* translators: header image description */
     223                    /* translators: Header image description. */
    224224                    'description'   => __( 'Concave', 'twentyten' ),
    225225                ),
     
    227227                    'url'           => '%s/images/headers/fern.jpg',
    228228                    'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg',
    229                     /* translators: header image description */
     229                    /* translators: Header image description. */
    230230                    'description'   => __( 'Fern', 'twentyten' ),
    231231                ),
     
    233233                    'url'           => '%s/images/headers/forestfloor.jpg',
    234234                    'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg',
    235                     /* translators: header image description */
     235                    /* translators: Header image description. */
    236236                    'description'   => __( 'Forest Floor', 'twentyten' ),
    237237                ),
     
    239239                    'url'           => '%s/images/headers/inkwell.jpg',
    240240                    'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg',
    241                     /* translators: header image description */
     241                    /* translators: Header image description. */
    242242                    'description'   => __( 'Inkwell', 'twentyten' ),
    243243                ),
     
    245245                    'url'           => '%s/images/headers/path.jpg',
    246246                    'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg',
    247                     /* translators: header image description */
     247                    /* translators: Header image description. */
    248248                    'description'   => __( 'Path', 'twentyten' ),
    249249                ),
     
    251251                    'url'           => '%s/images/headers/sunset.jpg',
    252252                    'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg',
    253                     /* translators: header image description */
     253                    /* translators: Header image description. */
    254254                    'description'   => __( 'Sunset', 'twentyten' ),
    255255                ),
     
    425425                <?php echo get_avatar( $comment, 40 ); ?>
    426426                <?php
    427                 /* translators: %s: author display name */
     427                /* translators: %s: Author display name. */
    428428                printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) );
    429429                ?>
     
    436436            <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
    437437                <?php
    438                     /* translators: 1: date, 2: time */
     438                    /* translators: 1: Date, 2: Time. */
    439439                    printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(), get_comment_time() );
    440440                ?>
     
    592592    function twentyten_posted_on() {
    593593        printf(
    594             /* translators: 1: CSS classes, 2: date, 3: author display name */
     594            /* translators: 1: CSS classes, 2: Date, 3: Author display name. */
    595595            __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
    596596            'meta-prep meta-prep-author',
     
    604604                '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    605605                get_author_posts_url( get_the_author_meta( 'ID' ) ),
    606                 /* translators: %s: author display name */
     606                /* translators: %s: Author display name. */
    607607                esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
    608608                get_the_author()
     
    622622        $tag_list = get_the_tag_list( '', ', ' );
    623623        if ( $tag_list && ! is_wp_error( $tag_list ) ) {
    624             /* translators: 1: category name, 2: tag name, 3: post permalink, 4: post title */
     624            /* translators: 1: Category name, 2: Tag name, 3: Post permalink, 4: Post title. */
    625625            $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    626626        } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
    627             /* translators: 1: category name, 3: post permalink, 4: post title */
     627            /* translators: 1: Category name, 3: Post permalink, 4: Post title. */
    628628            $posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    629629        } else {
    630             /* translators: 3: post permalink, 4: post title */
     630            /* translators: 3: Post permalink, 4: Post title. */
    631631            $posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    632632        }
Note: See TracChangeset for help on using the changeset viewer.