Make WordPress Core


Ignore:
Timestamp:
07/05/2019 08:03:40 AM (6 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/author.php

    r43571 r45604  
    2727
    2828                <header class="page-header">
    29                     <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
     29                    <h1 class="page-title author">
     30                    <?php
     31                    /* translators: %s: author display name */
     32                    printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
     33                    ?>
     34                    </h1>
    3035                </header>
    3136
     
    5964                    </div><!-- #author-avatar -->
    6065                    <div id="author-description">
    61                         <h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
     66                        <h2>
     67                        <?php
     68                            /* translators: author display name */
     69                            printf( __( 'About %s', 'twentyeleven' ), get_the_author() );
     70                        ?>
     71                        </h2>
    6272                        <?php the_author_meta( 'description' ); ?>
    6373                    </div><!-- #author-description  -->
Note: See TracChangeset for help on using the changeset viewer.