WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/05/2019 08:03:40 AM (2 years ago)
Author:
pento
Message:

Coding Standards: Add missing translator comments.

Twentys Eleven, Sixteen, and Seventeen now have translator comments for all their strings.

Also, WPCS now doesn't show missing translator comment warnings for test files.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/content-single.php

    r43571 r45604  
    4040            $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
    4141        if ( '' != $tag_list ) {
     42            /* translators: 1: categories list, 2: tag list, 3: permalink, 4: post title, 5: author name, 6: author URL */
    4243            $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    4344        } elseif ( '' != $categories_list ) {
     45            /* translators: 1: categories list, 2: tag list, 3: permalink, 4: post title, 5: author name, 6: author URL */
    4446            $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    4547        } else {
     48            /* translators: 1: categories list, 2: tag list, 3: permalink, 4: post title, 5: author name, 6: author URL */
    4649            $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
    4750        }
     
    6871            </div><!-- #author-avatar -->
    6972            <div id="author-description">
    70                 <h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
     73                <h2>
     74                <?php
     75                /* translators: %s: author name */
     76                printf( __( 'About %s', 'twentyeleven' ), get_the_author() );
     77                ?>
     78                </h2>
    7179                <?php the_author_meta( 'description' ); ?>
    7280                <div id="author-link">
    7381                    <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
    74                         <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() ); ?>
     82                        <?php
     83                        /* translators: %s: author name */
     84                        printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() );
     85                        ?>
    7586                    </a>
    7687                </div><!-- #author-link -->
Note: See TracChangeset for help on using the changeset viewer.