Make WordPress Core


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

    r43571 r44562  
    3030                <h2 class="comments-title">
    3131                        <?php
     32                        if ( 1 === get_comments_number() ) {
    3233                                printf(
    33                                         _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve' ),
     34                                        /* translators: %s: The post title. */
     35                                        __( 'One thought on &ldquo;%s&rdquo;', 'twentytwelve' ),
     36                                        '<span>' . get_the_title() . '</span>'
     37                                );
     38                        } else {
     39                                printf(
     40                                        /* translators: %1$s: The number of comments. %2$s: The post title. */
     41                                        _n( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve' ),
    3442                                        number_format_i18n( get_comments_number() ),
    3543                                        '<span>' . get_the_title() . '</span>'
    3644                                );
     45                        }
    3746                        ?>
    3847                </h2>
Note: See TracChangeset for help on using the changeset viewer.