Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyten/loop-attachment.php

    r45675 r45932  
    2424                                <?php
    2525                                if ( ! empty( $post->post_parent ) ) :
    26                                         /* translators: %s: post title */
     26                                        /* translators: %s: Post title. */
    2727                                        $post_tile = sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) );
    2828                                        ?>
    2929                                        <p class="page-title"><a href="<?php echo esc_url( get_permalink( $post->post_parent ) ); ?>" title="<?php echo esc_attr( $post_title ); ?>" rel="gallery">
    30                                                                                                                                 <?php
    31                                                                                                                                 /* translators: %s: title of parent post */
    32                                                                                                                                 printf( __( '<span class="meta-nav">&larr;</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) );
    33                                                                                                                                 ?>
     30                                                <?php
     31                                                /* translators: %s: Title of parent post. */
     32                                                printf( __( '<span class="meta-nav">&larr;</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) );
     33                                                ?>
    3434                                        </a></p>
    3535                                <?php endif; ?>
    … …  
    4141                                                <?php
    4242                                                        printf(
    43                                                                 /* translators: %s: author display name */
     43                                                                /* translators: %s: Author display name. */
    4444                                                                __( '<span class="%1$s">By</span> %2$s', 'twentyten' ),
    4545                                                                'meta-prep meta-prep-author',
    … …  
    4747                                                                        '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    4848                                                                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
    49                                                                         /* translators: %s: author display name */
     49                                                                        /* translators: %s: Author display name. */
    5050                                                                        esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
    5151                                                                        get_the_author()
    … …  
    5656                                                        <?php
    5757                                                        printf(
    58                                                                 /* translators: 1: CSS classes: 2: date */
     58                                                                /* translators: 1: CSS classes, 2: Date. */
    5959                                                                __( '<span class="%1$s">Published</span> %2$s', 'twentyten' ),
    6060                                                                'meta-prep meta-prep-entry-date',
    … …  
    6969                                                                $metadata = wp_get_attachment_metadata();
    7070                                                                printf(
    71                                                                         /* translators: %s: image dimensions */
     71                                                                        /* translators: %s: Image dimensions. */
    7272                                                                        __( 'Full size is %s pixels', 'twentyten' ),
    7373                                                                        sprintf(
Note: See TracChangeset for help on using the changeset viewer.