Skip to content

Commit

Permalink
Add translatable defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Apr 19, 2022
1 parent 43e19ba commit b074bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/comments-title/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ function render_block_core_comments_title( $attributes ) {
return;
}

$single_default_comment_label = $show_post_title ? 'One response to' : 'One response';
$single_default_comment_label = $show_post_title ? __( 'One response to' ) : __( 'One response' );
$single_comment_label = ! empty( $attributes['singleCommentLabel'] ) ? $attributes['singleCommentLabel'] : $single_default_comment_label;

$multiple_default_comment_label = $show_post_title ? 'Responses to' : 'Responses';
$multiple_default_comment_label = $show_post_title ? __( 'Responses to' ) : __( 'Responses' );
$multiple_comment_label = ! empty( $attributes['multipleCommentsLabel'] ) ? $attributes['multipleCommentsLabel'] : $multiple_default_comment_label;

$comments_title = '%1$s %2$s %3$s';
Expand Down

0 comments on commit b074bac

Please sign in to comment.