Skip to content

Commit

Permalink
Add translator note for update to embedded content np preview message
Browse files Browse the repository at this point in the history
  • Loading branch information
brentswisher committed Feb 25, 2019
1 parent d2fd1e4 commit f55c7b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/block-library/src/embed/embed-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ class EmbedPreview extends Component {
{ ( cannotPreview ) ? (
<Placeholder icon={ <BlockIcon icon={ icon } showColors /> } label={ label }>
<p className="components-placeholder__error"><a href={ url }>{ url }</a></p>
<p className="components-placeholder__error">{ sprintf( __( "Embedded content from %s can't be previewed in the editor." ), parsedHostBaseUrl ) }</p>
<p className="components-placeholder__error">
{
/* translators: %s: host providing embed content e.g: www.youtube.com */
sprintf( __( "Embedded content from %s can't be previewed in the editor." ), parsedHostBaseUrl )
}
</p>
</Placeholder>
) : embedWrapper }
{ ( ! RichText.isEmpty( caption ) || isSelected ) && (
Expand Down

0 comments on commit f55c7b8

Please sign in to comment.