WordPress.org

Make WordPress Core


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

    r44496 r45609  
    3030
    3131            <header class="archive-header">
    32                 <h1 class="archive-title"><?php printf( __( 'Author Archives: %s', 'twentytwelve' ), '<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>
     32                <h1 class="archive-title">
     33                <?php
     34                /* translators: author display name */
     35                printf( __( 'Author Archives: %s', 'twentytwelve' ), '<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>' );
     36                ?>
     37                </h1>
    3338            </header><!-- .archive-header -->
    3439
     
    6267                </div><!-- .author-avatar -->
    6368                <div class="author-description">
    64                     <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
     69                    <h2>
     70                    <?php
     71                    /* translators: author display name */
     72                    printf( __( 'About %s', 'twentytwelve' ), get_the_author() );
     73                    ?>
     74                    </h2>
    6575                    <p><?php the_author_meta( 'description' ); ?></p>
    6676                </div><!-- .author-description  -->
Note: See TracChangeset for help on using the changeset viewer.