Twenty Fourteen: Add missing singular placeholder in comments.php
.
Uses the recommended pattern for better compatibility with languages that use the singular form for other numbers. Also adds translator comments. Props bplv, xkon. See #39660. git-svn-id: https://develop.svn.wordpress.org/trunk@41762 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ae64e992b
commit
9550cd43c9
@ -24,8 +24,24 @@ if ( post_password_required() ) {
|
|||||||
|
|
||||||
<h2 class="comments-title">
|
<h2 class="comments-title">
|
||||||
<?php
|
<?php
|
||||||
printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyfourteen' ),
|
$comments_number = get_comments_number();
|
||||||
number_format_i18n( get_comments_number() ), get_the_title() );
|
if ( '1' === $comments_number ) {
|
||||||
|
/* translators: %s: post title */
|
||||||
|
printf( _x( 'One thought on “%s”', 'comments title', 'twentyfourteen' ), get_the_title() );
|
||||||
|
} else {
|
||||||
|
printf(
|
||||||
|
/* translators: 1: number of comments, 2: post title */
|
||||||
|
_nx(
|
||||||
|
'%1$s thought on “%2$s”',
|
||||||
|
'%1$s thoughts on “%2$s”',
|
||||||
|
$comments_number,
|
||||||
|
'comments title',
|
||||||
|
'twentyfourteen'
|
||||||
|
),
|
||||||
|
number_format_i18n( $comments_number ),
|
||||||
|
get_the_title()
|
||||||
|
);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user