Skip to content

Commit

Permalink
Update text displayed when an embed can't be previewed (#13715)
Browse files Browse the repository at this point in the history
* Update text displayed when an embed can't be previewed

* Add translator note for update to embedded content np preview message
  • Loading branch information
brentswisher authored and youknowriad committed Mar 6, 2019
1 parent c152b7c commit 7cb0ad6
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">{ __( 'Sorry, this embedded content cannot be previewed in the editor.' ) }</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 7cb0ad6

Please sign in to comment.