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:
parent
cd2e6d2523
commit
10adb1813d
11
comments.php
11
comments.php
|
@ -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 “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ),
|
||||
/* translators: %s: The post title. */
|
||||
__( 'One thought on “%s”', '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 “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ),
|
||||
number_format_i18n( get_comments_number() ),
|
||||
'<span>' . get_the_title() . '</span>'
|
||||
);
|
||||
}
|
||||
?>
|
||||
</h2>
|
||||
|
||||
|
|
Loading…
Reference in New Issue