Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (5 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/twentyten/loop-attachment.php

    r45209 r45609  
    2222        ?>
    2323
    24                 <?php if ( ! empty( $post->post_parent ) ) : ?>
    25                     <p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) ) ); ?>" rel="gallery">
     24                <?php
     25                if ( ! empty( $post->post_parent ) ) :
     26                    /* translators: %s: post title */
     27                    $post_tile = sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) );
     28                    ?>
     29                    <p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="gallery">
    2630                                                                <?php
    27                                                                 /* translators: %s - title of parent post */
     31                                                                /* translators: %s: title of parent post */
    2832                                                                printf( __( '<span class="meta-nav">&larr;</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) );
    2933                                                                ?>
     
    3741                        <?php
    3842                            printf(
     43                                /* translators: %s: author display name */
    3944                                __( '<span class="%1$s">By</span> %2$s', 'twentyten' ),
    4045                                'meta-prep meta-prep-author',
     
    4247                                    '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    4348                                    get_author_posts_url( get_the_author_meta( 'ID' ) ),
     49                                    /* translators: %s: author display name */
    4450                                    esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
    4551                                    get_the_author()
     
    5056                            <?php
    5157                            printf(
     58                                /* translators: 1: CSS classes: 2: date */
    5259                                __( '<span class="%1$s">Published</span> %2$s', 'twentyten' ),
    5360                                'meta-prep meta-prep-entry-date',
     
    6269                                $metadata = wp_get_attachment_metadata();
    6370                                printf(
     71                                    /* translators: %s: image dimensions */
    6472                                    __( 'Full size is %s pixels', 'twentyten' ),
    6573                                    sprintf(
Note: See TracChangeset for help on using the changeset viewer.