Skip to content

Commit

Permalink
Comments Block (Legacy): Update missing translation (#48820)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Mar 11, 2023
1 parent 605aeb0 commit 0d7bf7c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions packages/block-library/src/comments/edit/placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { store as blockEditorStore } from '@wordpress/block-editor';
import { __, sprintf } from '@wordpress/i18n';
import { useSelect } from '@wordpress/data';
import { useEntityProp } from '@wordpress/core-data';
import { createInterpolateElement } from '@wordpress/element';

/**
* Internal dependencies
Expand Down Expand Up @@ -45,7 +46,7 @@ export default function PostCommentsPlaceholder( { postType, postId } ) {
<footer className="comment-meta">
<div className="comment-author vcard">
<img
alt="Commenter Avatar"
alt={ __( 'Commenter Avatar' ) }
src={ avatarURL }
className="avatar avatar-32 photo"
height="32"
Expand Down Expand Up @@ -85,8 +86,17 @@ export default function PostCommentsPlaceholder( { postType, postId } ) {
'To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.'
) }
<br />
{ __( 'Commenter avatars come from' ) }{ ' ' }
<a href="https://gravatar.com/">Gravatar</a>.
{ createInterpolateElement(
__(
'Commenter avatars come from <a>Gravatar</a>.'
),
{
a: (
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a href="https://gravatar.com/" />
),
}
) }
</p>
</div>

Expand Down

0 comments on commit 0d7bf7c

Please sign in to comment.