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/twentyeleven/functions.php

    r45767 r45932  
    235235                                        'url'           => '%s/images/headers/wheel.jpg',
    236236                                        'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg',
    237                                         /* translators: header image description */
     237                                        /* translators: Header image description. */
    238238                                        'description'   => __( 'Wheel', 'twentyeleven' ),
    239239                                ),
    … …  
    241241                                        'url'           => '%s/images/headers/shore.jpg',
    242242                                        'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg',
    243                                         /* translators: header image description */
     243                                        /* translators: Header image description. */
    244244                                        'description'   => __( 'Shore', 'twentyeleven' ),
    245245                                ),
    … …  
    247247                                        'url'           => '%s/images/headers/trolley.jpg',
    248248                                        'thumbnail_url' => '%s/images/headers/trolley-thumbnail.jpg',
    249                                         /* translators: header image description */
     249                                        /* translators: Header image description. */
    250250                                        'description'   => __( 'Trolley', 'twentyeleven' ),
    251251                                ),
    … …  
    253253                                        'url'           => '%s/images/headers/pine-cone.jpg',
    254254                                        'thumbnail_url' => '%s/images/headers/pine-cone-thumbnail.jpg',
    255                                         /* translators: header image description */
     255                                        /* translators: Header image description. */
    256256                                        'description'   => __( 'Pine Cone', 'twentyeleven' ),
    257257                                ),
    … …  
    259259                                        'url'           => '%s/images/headers/chessboard.jpg',
    260260                                        'thumbnail_url' => '%s/images/headers/chessboard-thumbnail.jpg',
    261                                         /* translators: header image description */
     261                                        /* translators: Header image description. */
    262262                                        'description'   => __( 'Chessboard', 'twentyeleven' ),
    263263                                ),
    … …  
    265265                                        'url'           => '%s/images/headers/lanterns.jpg',
    266266                                        'thumbnail_url' => '%s/images/headers/lanterns-thumbnail.jpg',
    267                                         /* translators: header image description */
     267                                        /* translators: Header image description. */
    268268                                        'description'   => __( 'Lanterns', 'twentyeleven' ),
    269269                                ),
    … …  
    271271                                        'url'           => '%s/images/headers/willow.jpg',
    272272                                        'thumbnail_url' => '%s/images/headers/willow-thumbnail.jpg',
    273                                         /* translators: header image description */
     273                                        /* translators: Header image description. */
    274274                                        'description'   => __( 'Willow', 'twentyeleven' ),
    275275                                ),
    … …  
    277277                                        'url'           => '%s/images/headers/hanoi.jpg',
    278278                                        'thumbnail_url' => '%s/images/headers/hanoi-thumbnail.jpg',
    279                                         /* translators: header image description */
     279                                        /* translators: Header image description. */
    280280                                        'description'   => __( 'Hanoi Plant', 'twentyeleven' ),
    281281                                ),
    … …  
    728728
    729729                                                printf(
    730                                                         /* translators: 1: comment author, 2: date and time */
     730                                                        /* translators: 1: Comment author, 2: Date and time. */
    731731                                                        __( '%1$s on %2$s <span class="says">said:</span>', 'twentyeleven' ),
    732732                                                        sprintf( '<span class="fn">%s</span>', get_comment_author_link() ),
    … …  
    735735                                                                esc_url( get_comment_link( $comment->comment_ID ) ),
    736736                                                                get_comment_time( 'c' ),
    737                                                                 /* translators: 1: date, 2: time */
     737                                                                /* translators: 1: Date, 2: Time. */
    738738                                                                sprintf( __( '%1$s at %2$s', 'twentyeleven' ), get_comment_date(), get_comment_time() )
    739739                                                        )
    … …  
    785785        function twentyeleven_posted_on() {
    786786                printf(
    787                         /* translators: 1: The permalink, 2: time, 3: date and time, 4: date and time, 5: Author posts, 6: Author post link text, 7: Author display name */
     787                        /* translators: 1: The permalink, 2: Time, 3: Date and time, 4: Date and time, 5: Author posts, 6: Author post link text, 7: Author display name. */
    788788                        __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ),
    789789                        esc_url( get_permalink() ),
    … …  
    792792                        esc_html( get_the_date() ),
    793793                        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    794                         /* translators: %s: Author display name */
     794                        /* translators: %s: Author display name. */
    795795                        esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
    796796                        get_the_author()
Note: See TracChangeset for help on using the changeset viewer.