diff --git a/packages/block-library/src/navigation/edit/accessible-menu-description.js b/packages/block-library/src/navigation/edit/accessible-menu-description.js index c2c0d1ce764a6..d2912cc151eef 100644 --- a/packages/block-library/src/navigation/edit/accessible-menu-description.js +++ b/packages/block-library/src/navigation/edit/accessible-menu-description.js @@ -12,7 +12,7 @@ import AccessibleDescription from './accessible-description'; export default function AccessibleMenuDescription( { id } ) { const [ menuTitle ] = useEntityProp( 'postType', 'wp_navigation', 'title' ); /* translators: %s: Title of a Navigation Menu post. */ - const description = sprintf( __( `Navigation menu: "%s"` ), menuTitle ); + const description = sprintf( __( `Navigation Menu: "%s"` ), menuTitle ); return ( { description } diff --git a/packages/block-library/src/navigation/edit/deleted-navigation-warning.js b/packages/block-library/src/navigation/edit/deleted-navigation-warning.js index 6386cee71431e..143bf8a3a2ce3 100644 --- a/packages/block-library/src/navigation/edit/deleted-navigation-warning.js +++ b/packages/block-library/src/navigation/edit/deleted-navigation-warning.js @@ -11,7 +11,7 @@ function DeletedNavigationWarning( { onCreateNew } ) { { createInterpolateElement( __( - 'Navigation menu has been deleted or is unavailable. Create a new menu?' + 'Navigation Menu has been deleted or is unavailable. Create a new menu?' ), { button: , diff --git a/packages/block-library/src/navigation/edit/index.js b/packages/block-library/src/navigation/edit/index.js index 3069bee213114..7d79e0f49880c 100644 --- a/packages/block-library/src/navigation/edit/index.js +++ b/packages/block-library/src/navigation/edit/index.js @@ -847,7 +847,7 @@ function Navigation( { replaceInnerBlocks( clientId, [] ); showNavigationMenuStatusNotice( __( - 'Navigation menu successfully deleted.' + 'Navigation Menu successfully deleted.' ) ); } } diff --git a/packages/block-library/src/navigation/edit/menu-inspector-controls.js b/packages/block-library/src/navigation/edit/menu-inspector-controls.js index 4c450b1dda74c..29e5e0c8c7966 100644 --- a/packages/block-library/src/navigation/edit/menu-inspector-controls.js +++ b/packages/block-library/src/navigation/edit/menu-inspector-controls.js @@ -102,7 +102,7 @@ const MainContent = ( { const description = navigationMenu ? sprintf( /* translators: %s: The name of a menu. */ - __( 'Structure for navigation menu: %s' ), + __( 'Structure for Navigation Menu: %s' ), navigationMenu?.title || __( 'Untitled menu' ) ) : __( @@ -113,7 +113,7 @@ const MainContent = ( { { ! hasChildren && ( - { __( 'This navigation menu is empty.' ) } + { __( 'This Navigation Menu is empty.' ) } ) } { __( - 'Are you sure you want to delete this Navigation menu?' + 'Are you sure you want to delete this Navigation Menu?' ) } ) } diff --git a/packages/block-library/src/navigation/edit/navigation-menu-selector.js b/packages/block-library/src/navigation/edit/navigation-menu-selector.js index e232cb089a00b..47d81172c1853 100644 --- a/packages/block-library/src/navigation/edit/navigation-menu-selector.js +++ b/packages/block-library/src/navigation/edit/navigation-menu-selector.js @@ -113,7 +113,7 @@ function NavigationMenuSelector( { selectorLabel = __( 'Loading…' ); } else if ( noMenuSelected || noBlockMenus || menuUnavailable ) { // Note: classic Menus may be available. - selectorLabel = __( 'Choose or create a Navigation menu' ); + selectorLabel = __( 'Choose or create a Navigation Menu' ); } else { // Current Menu's title. selectorLabel = currentTitle; diff --git a/packages/block-library/src/navigation/edit/test/navigation-menu-selector.js b/packages/block-library/src/navigation/edit/test/navigation-menu-selector.js index 6ed21c82ed07b..3d2066efaaa14 100644 --- a/packages/block-library/src/navigation/edit/test/navigation-menu-selector.js +++ b/packages/block-library/src/navigation/edit/test/navigation-menu-selector.js @@ -89,7 +89,7 @@ describe( 'NavigationMenuSelector', () => { ).toBeInTheDocument(); } ); - it( 'should show correct dropdown toggle prompt to choose a menu when navigation menus have resolved', async () => { + it( 'should show correct dropdown toggle prompt to choose a menu when Navigation Menus have resolved', async () => { useNavigationMenu.mockReturnValue( { navigationMenus: [], hasResolvedNavigationMenus: true, @@ -101,7 +101,7 @@ describe( 'NavigationMenuSelector', () => { expect( screen.getByRole( 'button', { - name: 'Choose or create a Navigation menu', + name: 'Choose or create a Navigation Menu', } ) ).toBeInTheDocument(); } ); @@ -159,7 +159,7 @@ describe( 'NavigationMenuSelector', () => { render( ); const toggleButton = screen.getByRole( 'button', { - name: 'Choose or create a Navigation menu', + name: 'Choose or create a Navigation Menu', } ); await user.click( toggleButton ); @@ -169,7 +169,7 @@ describe( 'NavigationMenuSelector', () => { expect( menuPopover ).toHaveAttribute( 'aria-label', expect.stringContaining( - 'Choose or create a Navigation menu' + 'Choose or create a Navigation Menu' ) ); @@ -324,7 +324,7 @@ describe( 'NavigationMenuSelector', () => { } ); } ); - describe( 'Navigation menus', () => { + describe( 'Navigation Menus', () => { it( 'should not show a list of menus when menus exist but user does not have permission to switch menus', async () => { const user = userEvent.setup(); @@ -445,7 +445,7 @@ describe( 'NavigationMenuSelector', () => { expect( menuItem ).toBeChecked(); } ); - it( 'should call the handler when the navigation menu is selected', async () => { + it( 'should call the handler when the Navigation Menu is selected', async () => { const user = userEvent.setup(); const handler = jest.fn();
- { __( 'This navigation menu is empty.' ) } + { __( 'This Navigation Menu is empty.' ) }