--- a/wp/wp-content/themes/twentyfifteen/comments.php Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-content/themes/twentyfifteen/comments.php Mon Oct 14 17:39:30 2019 +0200
@@ -25,8 +25,24 @@
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
- printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'twentyfifteen' ),
- 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', 'twentyfifteen' ), 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',
+ 'twentyfifteen'
+ ),
+ number_format_i18n( $comments_number ),
+ get_the_title()
+ );
+ }
?>
</h2>