Comments: Use `_n()` in `get_comments_number_text()` when setting the default string for multiple comments.

Fixes #34593.
Built from https://develop.svn.wordpress.org/trunk@35536


git-svn-id: http://core.svn.wordpress.org/trunk@35500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-11-05 15:36:28 +00:00
parent 1a55cbe59d
commit 3caaa702bf
2 changed files with 8 additions and 2 deletions

View File

@ -869,7 +869,13 @@ function get_comments_number_text( $zero = false, $one = false, $more = false )
$number = get_comments_number();
if ( $number > 1 ) {
$output = str_replace( '%', number_format_i18n( $number ), ( false === $more ) ? __( '% Comments' ) : $more );
if ( false === $more ) {
/* translators: %s: number of comments */
$output = sprintf( _n( '%s Comment', '%s Comments', $number ), number_format_i18n( $number ) );
} else {
// % Comments
$output = str_replace( '%', number_format_i18n( $number ), $more );
}
} elseif ( $number == 0 ) {
$output = ( false === $zero ) ? __( 'No Comments' ) : $zero;
} else { // must be one

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-beta3-35535';
$wp_version = '4.4-beta3-35536';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.