Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
i18n fix for sandboxed iframe titles
  • Loading branch information
notnownikki committed May 11, 2017
commit 5ce13f6fe8c8b545d100e29b8436f19848cbcc2c
5 changes: 2 additions & 3 deletions blocks/library/tweet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ registerBlock( 'core/tweet', {

if ( html ) {
const author = this.state.url.split( '/' )[ 3 ];
/* translators: {AUTHOR}: username of the tweet's author */
const __title = wp.i18n.__( 'Tweet from {AUTHOR}' );
const title = __title.replace( '{AUTHOR}', author );
/* translators: %s: username of the tweet's author */
const title = wp.i18n.sprintf( wp.i18n.__( 'Tweet from %s' ), author );
return (
<Sandbox
html={ html }
Expand Down