Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (7 years 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/twentytwelve/content.php

    r43571 r45609  
    6969                                        </div><!-- .author-avatar -->
    7070                                        <div class="author-description">
    71                                                 <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
     71                                                <h2>
     72                                                <?php
     73                                                /* translators: %s: author display name */
     74                                                printf( __( 'About %s', 'twentytwelve' ), get_the_author() );
     75                                                ?>
     76                                                </h2>
    7277                                                <p><?php the_author_meta( 'description' ); ?></p>
    7378                                                <div class="author-link">
    7479                                                        <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
    75                                                                 <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve' ), get_the_author() ); ?>
     80                                                                <?php
     81                                                                /* translators: %s: author display name */
     82                                                                printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve' ), get_the_author() );
     83                                                                ?>
    7684                                                        </a>
    7785                                                </div><!-- .author-link -->
Note: See TracChangeset for help on using the changeset viewer.