diff --git a/packages/block-library/src/navigation/edit/use-convert-classic-menu-to-block-menu.js b/packages/block-library/src/navigation/edit/use-convert-classic-menu-to-block-menu.js index 300672fa91e8ad..0984f601959a05 100644 --- a/packages/block-library/src/navigation/edit/use-convert-classic-menu-to-block-menu.js +++ b/packages/block-library/src/navigation/edit/use-convert-classic-menu-to-block-menu.js @@ -47,7 +47,7 @@ function useConvertClassicToBlockMenu( } catch ( err ) { throw new Error( sprintf( - // translators: %s: the name of a menu (e.g. Header navigation). + // translators: %s: The name of a menu (e.g. Header menu). __( `Unable to fetch classic menu "%s" from API.` ), menuName ), @@ -61,7 +61,7 @@ function useConvertClassicToBlockMenu( if ( classicMenuItems === null ) { throw new Error( sprintf( - // translators: %s: the name of a menu (e.g. Header navigation). + // translators: %s: The name of a menu (e.g. Header menu). __( `Unable to fetch classic menu "%s" from API.` ), menuName ) @@ -98,7 +98,7 @@ function useConvertClassicToBlockMenu( } catch ( err ) { throw new Error( sprintf( - // translators: %s: the name of a menu (e.g. Header navigation). + // translators: %s: The name of a menu (e.g. Header menu). __( `Unable to create Navigation Menu "%s".` ), menuName ), @@ -155,7 +155,7 @@ function useConvertClassicToBlockMenu( if ( throwOnError ) { throw new Error( sprintf( - // translators: %s: the name of a menu (e.g. Header navigation). + // translators: %s: The name of a menu (e.g. Header menu). __( `Unable to create Navigation Menu "%s".` ), menuName ), diff --git a/packages/block-library/src/navigation/edit/use-generate-default-navigation-title.js b/packages/block-library/src/navigation/edit/use-generate-default-navigation-title.js index 0a134a256e6646..9784a5fd75a6b4 100644 --- a/packages/block-library/src/navigation/edit/use-generate-default-navigation-title.js +++ b/packages/block-library/src/navigation/edit/use-generate-default-navigation-title.js @@ -50,12 +50,12 @@ export default function useGenerateDefaultNavigationTitle( clientId ) { const title = area ? sprintf( - // translators: %s: the name of a menu (e.g. Header navigation). - __( '%s navigation' ), + // translators: %s: the name of a menu (e.g. Header menu). + __( '%s menu' ), area ) - : // translators: 'navigation' as in website navigation. - __( 'Navigation' ); + : // translators: 'menu' as in website navigation menu. + __( 'Menu' ); // Determine how many menus start with the automatic title. const matchingMenuTitleCount = [ diff --git a/packages/edit-site/src/components/global-styles/screen-revisions/index.js b/packages/edit-site/src/components/global-styles/screen-revisions/index.js index a50b8f13d55cc2..7c5b0f54c8e6d6 100644 --- a/packages/edit-site/src/components/global-styles/screen-revisions/index.js +++ b/packages/edit-site/src/components/global-styles/screen-revisions/index.js @@ -174,7 +174,7 @@ function ScreenRevisions() { changePage={ setCurrentPage } totalItems={ revisionsCount } disabled={ isLoading } - label={ __( 'Global Styles pagination navigation' ) } + label={ __( 'Global Styles pagination' ) } /> ) } diff --git a/packages/edit-site/src/components/pagination/index.js b/packages/edit-site/src/components/pagination/index.js index 5d6ce852d5a4c4..c49182d7b0c714 100644 --- a/packages/edit-site/src/components/pagination/index.js +++ b/packages/edit-site/src/components/pagination/index.js @@ -22,7 +22,7 @@ export default function Pagination( { className, disabled = false, buttonVariant = 'tertiary', - label = __( 'Pagination Navigation' ), + label = __( 'Pagination' ), } ) { return ( { } await userGlobalStylesRevisions.openStylesPanel(); await page.getByRole( 'button', { name: 'Revisions' } ).click(); - const pagination = page.getByLabel( - 'Global Styles pagination navigation' - ); + const pagination = page.getByLabel( 'Global Styles pagination' ); await expect( pagination ).toContainText( '1 of 2' ); await pagination.getByRole( 'button', { name: 'Next page' } ).click(); await expect( pagination ).toContainText( '2 of 2' );