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-gallery.php

    r44574 r45604  
    4747                    <?php
    4848                    printf(
     49                        /* translators: 1: link attributes, 2: number of photos */
    4950                        _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ),
     51                        /* translators: %s: Post title */
    5052                        'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
    5153                        number_format_i18n( $total_images )
     
    7678        <span class="cat-links">
    7779            <?php
     80            /* translators: 1: CSS classes, 2: list of categories */
    7881            printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
    7982            $show_sep = true;
     
    9194        <span class="tag-links">
    9295            <?php
     96            /* translators: 1: CSS classes, 2: list of tags */
    9397            printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
    9498            $show_sep = true;
Note: See TracChangeset for help on using the changeset viewer.