--- a/wp/wp-content/themes/twentythirteen/comments.php Mon Oct 14 18:28:13 2019 +0200
+++ b/wp/wp-content/themes/twentythirteen/comments.php Mon Oct 14 18:30:03 2019 +0200
@@ -23,10 +23,20 @@
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
+ if ( 1 === get_comments_number() ) {
printf(
- _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'twentythirteen' ),
- number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>'
+ /* translators: %s: The post title. */
+ _x( 'One thought on “%s”', 'comments title', 'twentythirteen' ),
+ '<span>' . get_the_title() . '</span>'
);
+ } else {
+ printf(
+ /* translators: %1$s: The number of comments. %2$s: The post title. */
+ _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'twentythirteen' ),
+ number_format_i18n( get_comments_number() ),
+ '<span>' . get_the_title() . '</span>'
+ );
+ }
?>
</h2>
@@ -45,7 +55,7 @@
<?php
// Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
- ?>
+ ?>
<nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentythirteen' ) ); ?></div>