From a551ef4f3c5b828c78744d3fe7b9d47dd58e8915 Mon Sep 17 00:00:00 2001 From: Erik <11491369+kebbet@users.noreply.github.com> Date: Wed, 8 Dec 2021 16:59:27 +0100 Subject: [PATCH 1/4] Remove text domain, set string once. Use sprintf() to combine the string with the $label. --- .../block-library/src/navigation-submenu/index.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/navigation-submenu/index.php b/packages/block-library/src/navigation-submenu/index.php index c0fdbfa271cfa..bbcc1f576dbc0 100644 --- a/packages/block-library/src/navigation-submenu/index.php +++ b/packages/block-library/src/navigation-submenu/index.php @@ -188,6 +188,12 @@ function render_block_core_navigation_submenu( $attributes, $content, $block ) { ); } + $arialabel = sprintf( + /* translators: button label name */ + __( '%s submenu' ), + $label + ); + $html = '