Skip to content

Commit

Permalink
Fix template part block untranslated strings (#35715)
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Oct 19, 2021
1 parent b1d8f7a commit bb0c047
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ export default function TemplatePartPlaceholder( {
enableSelection
? sprintf(
// Translators: %s as template part area title ("Header", "Footer", etc.).
'Choose an existing %s or create a new one.',
__(
'Choose an existing %s or create a new one.'
),
areaLabel.toLowerCase()
)
: sprintf(
// Translators: %s as template part area title ("Header", "Footer", etc.).
'Create a new %s.',
__( 'Create a new %s.' ),
areaLabel.toLowerCase()
)
}
Expand Down Expand Up @@ -136,7 +138,7 @@ export default function TemplatePartPlaceholder( {
>
{ sprintf(
// Translators: %s as template part area title ("Header", "Footer", etc.).
'New %s',
__( 'New %s' ),
areaLabel.toLowerCase()
) }
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export default function PatternsSetup( {
{ isTitleStep && (
<Modal
title={ sprintf(
'Name and create your new %s',
// Translators: %s as template part area title ("Header", "Footer", etc.).
__( 'Name and create your new %s' ),
areaLabel.toLowerCase()
) }
closeLabel={ __( 'Cancel' ) }
Expand Down Expand Up @@ -115,7 +116,7 @@ function StartBlankComponent( { setTitleStep, areaLabel, areaIcon } ) {
icon={ areaIcon }
instructions={ sprintf(
// Translators: %s as template part area title ("Header", "Footer", "Template Part", etc.).
'Creating your new %s...',
__( 'Creating your new %s…' ),
areaLabel.toLowerCase()
) }
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ function TemplatePartsByArea( {
>
{ sprintf(
// Translators: %s for the template part variation ("Header", "Footer", "Template Part").
'There is no other %s available. If you are looking for another type of template part, try searching for it using the input above.',
__(
'There is no other %s available. If you are looking for another type of template part, try searching for it using the input above.'
),
area && area !== 'uncategorized'
? labelsByArea[ area ] || area
: __( 'Template Part' )
Expand Down

0 comments on commit bb0c047

Please sign in to comment.