From 07bb50288d1a2e47ee3cbd830db14b84356a0cfe Mon Sep 17 00:00:00 2001 From: John Watkins Date: Thu, 3 Dec 2020 12:41:04 -0600 Subject: [PATCH] Update format of translator comments Co-authored-by: Pascal Birchler --- assets/src/block-validation/error/error-content.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/src/block-validation/error/error-content.js b/assets/src/block-validation/error/error-content.js index 6f2f6af5d39..fbe0ff430a6 100644 --- a/assets/src/block-validation/error/error-content.js +++ b/assets/src/block-validation/error/error-content.js @@ -29,7 +29,7 @@ function ErrorSource( { clientId, blockTypeName, sources } ) { switch ( blockSource?.source ) { case 'plugin': source = sprintf( - // Translators: placeholder is the name of a plugin. + // Translators: %s: plugin name. __( `%s (plugin)`, 'amp' ), blockSource.title, ); @@ -37,7 +37,7 @@ function ErrorSource( { clientId, blockTypeName, sources } ) { case 'mu-plugin': source = sprintf( - // Translators: placeholder is the name of a plugin. + // Translators: %s: plugin name. __( `%s (must-use plugin)`, 'amp' ), blockSource.title, ); @@ -45,7 +45,7 @@ function ErrorSource( { clientId, blockTypeName, sources } ) { case 'theme': source = sprintf( - // Translators:placeholder is the name of a theme. + // Translators: %s: theme name. __( `%s (theme)`, 'amp' ), blockSource.title, ); @@ -180,4 +180,3 @@ ErrorContent.propTypes = { sources: PropTypes.arrayOf( PropTypes.object ), } ), }; -