Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments Block (Legacy): Update missing translation #48820

Merged
merged 1 commit into from
Mar 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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