Add missing text domains to translations

[MAILPOET-6438]
This commit is contained in:
Rostislav Wolny
2025-01-16 11:22:50 +01:00
committed by Oluwaseun Olorunsola
parent eb03fc9bac
commit 99d7191a23
7 changed files with 16 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ export default function EditTemplateBlocksNotification( { contentRef } ) {
return ( return (
<ConfirmDialog <ConfirmDialog
isOpen={ isDialogOpen } isOpen={ isDialogOpen }
confirmButtonText={ __( 'Edit template' ) } confirmButtonText={ __( 'Edit template', 'mailpoet' ) }
onConfirm={ () => { onConfirm={ () => {
setIsDialogOpen( false ); setIsDialogOpen( false );
onNavigateToEntityRecord( { onNavigateToEntityRecord( {

View File

@@ -67,7 +67,7 @@ export function KeyboardShortcuts(): null {
void registerShortcut( { void registerShortcut( {
name: 'mailpoet/email-editor/undo', name: 'mailpoet/email-editor/undo',
category: 'block', category: 'block',
description: __( 'Undo your last changes.' ), description: __( 'Undo your last changes.', 'mailpoet' ),
keyCombination: { keyCombination: {
modifier: 'primary', modifier: 'primary',
character: 'z', character: 'z',
@@ -77,7 +77,7 @@ export function KeyboardShortcuts(): null {
void registerShortcut( { void registerShortcut( {
name: 'mailpoet/email-editor/redo', name: 'mailpoet/email-editor/redo',
category: 'block', category: 'block',
description: __( 'Redo your last undo.' ), description: __( 'Redo your last undo.', 'mailpoet' ),
keyCombination: { keyCombination: {
modifier: 'primaryShift', modifier: 'primaryShift',
character: 'z', character: 'z',

View File

@@ -25,7 +25,7 @@ const CategoryMenu = ( {
onClick={ () => onCategorySelect( null ) } onClick={ () => onCategorySelect( null ) }
className={ getMenuItemClass( null ) } className={ getMenuItemClass( null ) }
> >
{ __( 'All' ) } { __( 'All', 'mailpoet' ) }
</MenuItem> </MenuItem>
<div <div
className="mailpoet-personalization-tags-modal__menu-separator" className="mailpoet-personalization-tags-modal__menu-separator"

View File

@@ -65,9 +65,10 @@ const CategorySection = ( {
} }
} } } }
> >
{ __( 'Insert' ) } { __( 'Insert', 'mailpoet' ) }
</Button> </Button>
{ category === __( 'Link' ) && { category ===
__( 'Link', 'mailpoet' ) &&
canInsertLink && ( canInsertLink && (
<> <>
<Button <Button
@@ -80,7 +81,8 @@ const CategorySection = ( {
} } } }
> >
{ __( { __(
'Insert as link' 'Insert as link',
'mailpoet'
) } ) }
</Button> </Button>
</> </>

View File

@@ -36,7 +36,7 @@ const LinkModal = ( { onInsert, isOpened, closeCallback, tag } ) => {
} }
} } } }
> >
{ __( 'Insert' ) } { __( 'Insert', 'mailpoet' ) }
</Button> </Button>
</Modal> </Modal>
); );

View File

@@ -20,7 +20,9 @@ export function HeaderTabs( _, ref ) {
? __( 'Template', 'mailpoet' ) ? __( 'Template', 'mailpoet' )
: __( 'Email', 'mailpoet' ) } : __( 'Email', 'mailpoet' ) }
</Tabs.Tab> </Tabs.Tab>
<Tabs.Tab tabId={ mainSidebarBlockTab }>{ __( 'Block' ) }</Tabs.Tab> <Tabs.Tab tabId={ mainSidebarBlockTab }>
{ __( 'Block', 'mailpoet' ) }
</Tabs.Tab>
</Tabs.TabList> </Tabs.TabList>
); );
} }

View File

@@ -33,10 +33,11 @@ function TemplateNoResults() {
className="block-editor-inserter__no-results-icon" className="block-editor-inserter__no-results-icon"
icon={ blockDefault } icon={ blockDefault }
/> />
<p>{ __( 'No recent templates.' ) }</p> <p>{ __( 'No recent templates.', 'mailpoet' ) }</p>
<p> <p>
{ __( { __(
'Your recent creations will appear here as soon as you begin.' 'Your recent creations will appear here as soon as you begin.',
'mailpoet'
) } ) }
</p> </p>
</div> </div>