Add translator comments as the strings contain variables.

This commit is contained in:
jrfnl 2016-12-23 15:59:15 +01:00
parent 8dbca77003
commit fd701834ff
1 changed files with 2 additions and 0 deletions

View File

@ -30,11 +30,13 @@ if ( post_password_required() ) {
$comment_count = get_comments_number();
if ( 1 === $comment_count ) {
printf(
/* translators: 1: title. */
esc_html_e( 'One thought on “%1$s”', '_s' ),
'<span>' . get_the_title() . '</span>'
);
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', '_s' ) ),
number_format_i18n( $comment_count ),
'<span>' . get_the_title() . '</span>'