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

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

See #45934.


Built from https://develop.svn.wordpress.org/trunk@44562


git-svn-id: http://core.svn.wordpress.org/trunk@44393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2019-01-11 06:04:49 +00:00
parent cd2e6d2523
commit 10adb1813d
1 changed files with 10 additions and 1 deletions

View File

@ -29,11 +29,20 @@ if ( post_password_required() ) {
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
if ( 1 === get_comments_number() ) {
printf(
_n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve' ),
/* translators: %s: The post title. */
__( 'One thought on &ldquo;%s&rdquo;', 'twentytwelve' ),
'<span>' . get_the_title() . '</span>'
);
} else {
printf(
/* translators: %1$s: The number of comments. %2$s: The post title. */
_n( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'twentytwelve' ),
number_format_i18n( get_comments_number() ),
'<span>' . get_the_title() . '</span>'
);
}
?>
</h2>