WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/09/2019 01:08:47 AM (2 years ago)
Author:
pento
Message:

Coding Standards: Add missing translator comments to the default themes.

All default themes now have translator comments for all strings with placeholders!

See #46732.

File:
1 edited

Legend:

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

    r45581 r45609  
    8787                    <?php
    8888                        printf(
     89                            /* translators: 1: HTML tag attributes, 2: image count */
    8990                            _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyten' ),
     91                            /* translators: %s: post title */
    9092                            'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
    9193                            number_format_i18n( $total_images )
     
    168170                <?php if ( count( get_the_category() ) ) : ?>
    169171                    <span class="cat-links">
    170                         <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
     172                        <?php
     173                        /* translators: 1: CSS classes, 2: catgory list */
     174                        printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) );
     175                        ?>
    171176                    </span>
    172177                    <span class="meta-sep">|</span>
     
    177182                    ?>
    178183                <span class="tag-links">
    179                     <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
     184                    <?php
     185                    /* translators: 1: CSS classes, 2: catgory list */
     186                    printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
     187                    ?>
    180188                </span>
    181189                <span class="meta-sep">|</span>
Note: See TracChangeset for help on using the changeset viewer.