From 74ad70419eaf0e30a266ea6d984f8e1062dd6851 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 10 Feb 2015 02:50:58 +0000 Subject: [PATCH] Use `_n()` in `comments_popup_link()` when setting the default string to display if there are more than one comment. see #26553. git-svn-id: https://develop.svn.wordpress.org/trunk@31401 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index dee3c9da26..355288834f 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1290,7 +1290,9 @@ function comments_popup_link( $zero = false, $one = false, $more = false, $css_c } if ( false === $more ) { /* translators: 1: Opening span tag with a class, 2: post title, 3: closing span tag, 4: number of comments */ - $more = sprintf( __( '%4$d Comments%1$s on %2$s%3$s' ), $span, $title, $span_close, $number ); + $more = sprintf( _n( '%4$d Comment%1$s on %2$s%3$s', '%4$d Comments%1$s on %2$s%3$s', $number ), + $span, $title, $span_close, number_format_i18n( $number ) + ); } if ( false === $none ) { /* translators: 1: Opening span tag with a class, 2: post title, 3: closing span tag */