diff --git a/packages/block-library/src/post-comments/edit.js b/packages/block-library/src/post-comments/edit.js
index 723280d6416cf..56571109f8833 100644
--- a/packages/block-library/src/post-comments/edit.js
+++ b/packages/block-library/src/post-comments/edit.js
@@ -17,6 +17,7 @@ import { __, sprintf } from '@wordpress/i18n';
import { useSelect } from '@wordpress/data';
import { useEntityProp, store as coreStore } from '@wordpress/core-data';
import { __experimentalUseDisabled as useDisabled } from '@wordpress/compose';
+import { createInterpolateElement } from '@wordpress/element';
/**
* Internal dependencies
@@ -110,7 +111,10 @@ export default function PostCommentsEdit( {
ref={ disabledRef }
>
- { __( 'One response to' ) } “{ postTitle }”
+ {
+ /* translators: %s: Post title. */
+ sprintf( __( 'One response to %s' ), postTitle )
+ }
@@ -135,16 +139,36 @@ export default function PostCommentsEdit( {
width="32"
loading="lazy"
/>
-
-
- { __(
- 'A WordPress Commenter'
- ) }
-
- { ' ' }
-
- { __( 'says' ) }:
-
+ { createInterpolateElement(
+ sprintf(
+ /* translators: %s: Comment author link. */
+ __(
+ '%s
says:'
+ ),
+ sprintf(
+ '
%s',
+ __(
+ 'A WordPress Commenter'
+ )
+ )
+ ),
+ {
+ span: (
+
+ ),
+ a: (
+ /* eslint-disable jsx-a11y/anchor-has-content */
+
+ /* eslint-enable jsx-a11y/anchor-has-content */
+ ),
+ cite: (
+
+ ),
+ }
+ ) }
@@ -174,13 +198,17 @@ export default function PostCommentsEdit( {
'To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.'
) }
- { __(
- 'Commenter avatars come from'
- ) }{ ' ' }
-
- Gravatar
-
- .
+ { createInterpolateElement(
+ __(
+ 'Commenter avatars come from
Gravatar'
+ ),
+ {
+ a: (
+ /* eslint-disable-next-line jsx-a11y/anchor-has-content */
+
+ ),
+ }
+ ) }
@@ -188,7 +216,11 @@ export default function PostCommentsEdit( {
{ __( 'Reply' ) }