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

    r45602 r45604  
    727727                        echo get_avatar( $comment, $avatar_size );
    728728
    729                         /* translators: 1: comment author, 2: date and time */
    730729                        printf(
     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() ),
     
    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  */
    787788            __( '<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' ),
    788789            esc_url( get_permalink() ),
     
    791792            esc_html( get_the_date() ),
    792793            esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     794            /* translators: %s: Author display name */
    793795            esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
    794796            get_the_author()
Note: See TracChangeset for help on using the changeset viewer.