Make WordPress Core


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

    r43571 r44562  
    2424        <h2 class="comments-title">
    2525            <?php
     26            if ( 1 === get_comments_number() ) {
    2627                printf(
    27                     _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'twentythirteen' ),
     28                    /* translators: %s: The post title. */
     29                    _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentythirteen' ),
     30                    '<span>' . get_the_title() . '</span>'
     31                );
     32            } else {
     33                printf(
     34                    /* translators: %1$s: The number of comments. %2$s: The post title. */
     35                    _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'twentythirteen' ),
    2836                    number_format_i18n( get_comments_number() ),
    2937                    '<span>' . get_the_title() . '</span>'
    3038                );
     39            }
    3140            ?>
    3241        </h2>
Note: See TracChangeset for help on using the changeset viewer.