diff options
Diffstat (limited to 'themes/twentyfourteen/comments.php')
-rw-r--r-- | themes/twentyfourteen/comments.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/themes/twentyfourteen/comments.php b/themes/twentyfourteen/comments.php index 781c06d4..d62e91a7 100644 --- a/themes/twentyfourteen/comments.php +++ b/themes/twentyfourteen/comments.php @@ -24,8 +24,24 @@ if ( post_password_required() ) { <h2 class="comments-title"> <?php - printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyfourteen' ), - number_format_i18n( get_comments_number() ), get_the_title() ); + $comments_number = get_comments_number(); + 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> |