forked from mirror/_s
Add translator comments as the strings contain variables.
This commit is contained in:
parent
8dbca77003
commit
fd701834ff
|
@ -30,11 +30,13 @@ if ( post_password_required() ) {
|
||||||
$comment_count = get_comments_number();
|
$comment_count = get_comments_number();
|
||||||
if ( 1 === $comment_count ) {
|
if ( 1 === $comment_count ) {
|
||||||
printf(
|
printf(
|
||||||
|
/* translators: 1: title. */
|
||||||
esc_html_e( 'One thought on “%1$s”', '_s' ),
|
esc_html_e( 'One thought on “%1$s”', '_s' ),
|
||||||
'<span>' . get_the_title() . '</span>'
|
'<span>' . get_the_title() . '</span>'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
printf( // WPCS: XSS OK.
|
printf( // WPCS: XSS OK.
|
||||||
|
/* translators: 1: comment count number, 2: title. */
|
||||||
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', '_s' ) ),
|
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', '_s' ) ),
|
||||||
number_format_i18n( $comment_count ),
|
number_format_i18n( $comment_count ),
|
||||||
'<span>' . get_the_title() . '</span>'
|
'<span>' . get_the_title() . '</span>'
|
||||||
|
|
Reference in New Issue