diff --git a/comments.php b/comments.php index bb99d5d..08ff232 100644 --- a/comments.php +++ b/comments.php @@ -25,11 +25,27 @@ if ( post_password_required() ) {

' . get_the_title() . '' - ); + $comments_number = get_comments_number(); + if ( 1 === $comments_number ) { + printf( + /* translators: %s: post title */ + esc_html_x( 'One thought on “%s”', 'comments title', 'understrap' ), + '' . get_the_title() . '' + ); + } else { + printf( // WPCS: XSS OK. + /* translators: 1: number of comments, 2: post title */ + esc_html( _nx( + '%1$s thought on “%2$s”', + '%1$s thoughts on “%2$s”', + $comments_number, + 'comments title', + 'understrap' + ) ), + number_format_i18n( $comments_number ), + '' . get_the_title() . '' + ); + } ?>