WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (8 months ago)
Author:
pento
Message:

Coding Standards: Add missing translator comments to the default themes.

All default themes now have translator comments for all strings with placeholders!

See #46732.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyten/functions.php

    r45602 r45609  
    424424            <div class="comment-author vcard">
    425425                <?php echo get_avatar( $comment, 40 ); ?>
    426                 <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
     426                <?php
     427                /* translators: %s: author display name */
     428                printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) );
     429                ?>
    427430            </div><!-- .comment-author .vcard -->
    428431                <?php if ( $comment->comment_approved == '0' ) : ?>
     
    589592    function twentyten_posted_on() {
    590593        printf(
     594            /* translators: 1: CSS classes, 2: date, 3: author display name */
    591595            __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
    592596            'meta-prep meta-prep-author',
     
    600604                '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    601605                get_author_posts_url( get_the_author_meta( 'ID' ) ),
     606                /* translators: %s: author display name */
    602607                esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
    603608                get_the_author()
     
    617622        $tag_list = get_the_tag_list( '', ', ' );
    618623        if ( $tag_list && ! is_wp_error( $tag_list ) ) {
     624            /* translators: 1: category name, 2: tag name, 3: post permalink, 4: post title */
    619625            $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' );
    620626        } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
     627            /* translators: 1: category name, 3: post permalink, 4: post title */
    621628            $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' );
    622629        } else {
     630            /* translators: 3: post permalink, 4: post title */
    623631            $posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    624632        }
Note: See TracChangeset for help on using the changeset viewer.