这个comments_number
函数正在调用get_comments_number_text
功能:https://developer.wordpress.org/reference/functions/get_comments_number_text/
在该函数中有要翻译的字符串
function get_comments_number_text( $zero = false, $one = false, $more = false ) {
$number = get_comments_number();
if ( $number > 1 ) {
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
$output = ( false === $one ) ? __( \'1 Comment\' ) : $one;
}
/**
* Filter the comments count for display.
*
* @since 1.5.0
*
* @see _n()
*
* @param string $output A translatable string formatted based on whether the count
* is equal to 0, 1, or 1+.
* @param int $number The number of post comments.
*/
return apply_filters( \'comments_number\', $output, $number );
}