WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/11/2019 06:03:46 AM (3 years ago)
Author:
pento
Message:

Coding Standards: Fix the minor WordPress.WP.I18n violations.

WordPress.WP.I18n.MissingTranslatorsComment is in progress in #44360.

See #45934.

File:
1 edited

Legend:

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

    r43571 r44562  
    3535            <h3 id="comments-title">
    3636            <?php
    37             printf(
    38                 _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
    39                 number_format_i18n( get_comments_number() ),
    40                 '<em>' . get_the_title() . '</em>'
    41             );
     37            if ( 1 === get_comments_number() ) {
     38                printf(
     39                    /* translators: %s: The post title. */
     40                    __( 'One Response to %s', 'twentyten' ),
     41                    '<em>' . get_the_title() . '</em>'
     42                );
     43            } else {
     44                /* translators: %1$s: The number of comments. %2$s: The post title. */
     45                printf(
     46                    _n( '%1$s Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
     47                    number_format_i18n( get_comments_number() ),
     48                    '<em>' . get_the_title() . '</em>'
     49                );
     50            }
    4251            ?>
    4352            </h3>
Note: See TracChangeset for help on using the changeset viewer.