Skip to content

Commit

Permalink
Clarify explanation of how 'Convert to Links' works in Page List block (
Browse files Browse the repository at this point in the history
#45394)

* Clarify explanation of how 'Convert to Links' works

* Remove splitting of translated string

* Update string to use createInterpolateElement to ensure proper translation

* Simplify and clarify language in Page List edit modal

* Remove tip from modal copy
  • Loading branch information
artemiomorales authored Nov 22, 2022
1 parent 4c21122 commit 516d05c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/block-library/src/page-list/convert-to-links-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,13 @@ export default function ConvertToLinksModal( { onClose, clientId } ) {
<Modal
closeLabel={ __( 'Close' ) }
onRequestClose={ onClose }
title={ __( 'Convert to links' ) }
title={ __( 'Customize this menu' ) }
className={ 'wp-block-page-list-modal' }
aria={ { describedby: 'wp-block-page-list-modal__description' } }
>
<p id={ 'wp-block-page-list-modal__description' }>
{ __(
'To edit this navigation menu, convert it to single page links. This allows you to add, re-order, remove items, or edit their labels.'
) }
</p>
<p>
{ __(
"Note: if you add new pages to your site, you'll need to add them to your navigation menu."
'This menu is automatically kept in sync with pages on your site. You can manage the menu yourself by clicking customize below.'
) }
</p>
<div className="wp-block-page-list-modal-buttons">
Expand All @@ -119,7 +114,7 @@ export default function ConvertToLinksModal( { onClose, clientId } ) {
createBlock: create,
} ) }
>
{ __( 'Convert' ) }
{ __( 'Customize' ) }
</Button>
</div>
</Modal>
Expand Down

0 comments on commit 516d05c

Please sign in to comment.