Make WordPress Core


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

    r43571 r45604  
    4242                <?php
    4343                    printf(
     44                        /* translators: 1: the permalink, 2: date and time, 3: date and time, 4: author link, 5: author link title, 6: author display name */
    4445                        __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ),
    4546                        esc_url( get_permalink() ),
     
    4748                        get_the_date(),
    4849                        esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     50                        /* translators: %s: author display name */
    4951                        esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
    5052                        get_the_author()
     
    5961                    ?>
    6062                <span class="cat-links">
    61                     <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?>
     63                    <?php
     64                    /* translators: 1: CSS classes, 2: category list */
     65                    printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
     66                    ?>
    6267                </span>
    6368                <?php endif; // End if categories ?>
     
    6873                    ?>
    6974                <span class="tag-links">
    70                     <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
     75                    <?php
     76                    /* translators: 1: CSS classes, 2: tag list */
     77                    printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
     78                    ?>
    7179                </span>
    7280                <?php endif; // End if $tags_list ?>
Note: See TracChangeset for help on using the changeset viewer.