Skip to content

Commit

Permalink
Update format of translator comments
Browse files Browse the repository at this point in the history
Co-authored-by: Pascal Birchler <[email protected]>
  • Loading branch information
johnwatkins0 and swissspidy authored Dec 3, 2020
1 parent 6ef589c commit 07bb502
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions assets/src/block-validation/error/error-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ 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,
);
break;

case 'mu-plugin':
source = sprintf(
// Translators: placeholder is the name of a plugin.
// Translators: %s: plugin name.
__( `%s (must-use plugin)`, 'amp' ),
blockSource.title,
);
break;

case 'theme':
source = sprintf(
// Translators:placeholder is the name of a theme.
// Translators: %s: theme name.
__( `%s (theme)`, 'amp' ),
blockSource.title,
);
Expand Down Expand Up @@ -180,4 +180,3 @@ ErrorContent.propTypes = {
sources: PropTypes.arrayOf( PropTypes.object ),
} ),
};

0 comments on commit 07bb502

Please sign in to comment.