Make WordPress Core


Ignore:
Timestamp:
01/11/2019 06:03:46 AM (6 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/twentyeleven/comments.php

    r43571 r44562  
    3232        <h2 id="comments-title">
    3333            <?php
     34            if ( 1 === get_comments_number() ) {
    3435                printf(
    35                     _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyeleven' ),
     36                    /* translators: %s: The post title. */
     37                    __( 'One thought on &ldquo;%1$s&rdquo;', 'twentyeleven' ),
     38                    '<span>' . get_the_title() . '</span>'
     39                );
     40            } else {
     41                printf(
     42                    /* translators: %1$s: The number of comments. %2$s: The post title. */
     43                    _n( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentyeleven' ),
    3644                    number_format_i18n( get_comments_number() ),
    3745                    '<span>' . get_the_title() . '</span>'
    3846                );
     47            }
    3948            ?>
    4049        </h2>
Note: See TracChangeset for help on using the changeset viewer.