这取决于主题,但一般来说,评论是由模板生成的:comments.php
, 您发现了类似的情况(示例):
<?php
$dro_pizza_comment_count = get_comments_number();
if ( \'1\' === $dro_pizza_comment_count ) {
printf(
/* translators: 1: title. */
esc_html__( \'One thought on “%1$s”\', \'dro-pizza\' ),\'<span>\' . esc_html( get_the_title() ) . \'</span>\'
);
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( \'%1$s thoughts on “%2$s”\', \'%1$s thoughts on “%2$s”\', $dro_pizza_comment_count, \'comments title\', \'dro-pizza\' ) ),
number_format_i18n( $dro_pizza_comment_count ),
\'<span>\' . esc_html( get_the_title() ) . \'</span>\'
);
}
?>
所以我们可以更改单词:
thought
不管我们想要什么