Problem/Motivation
During today's usability meeting (#3436905: Drupal Usability Meeting 2024-04-05) we've noticed the following potential issue with navigation block titles in the context of multilingual - basically english original strings get populated with spanish strings (see steps to reproduce for more details).
For the record, the attendees at the usability meeting were @AaronMcHale, @benjifisher, @rkoller, @shaal, @simohell, @skaught, and @worldlinemine.
Steps to reproduce
- Install a new site with
demo_umami - take a look at
/admin/config/user-interface/navigation-block - Go to
/admin/config/regional/languageand activateaccount administration pages - Now go to the edit user page on
/en/user/1/edit - Switch the admin language to spanish
- Go again to
/admin/config/user-interface/navigation-block - Press the
place navigation blockbutton - Place the
contenidonavigation block - returning on the overview page after placing the navigation block you now have two
contenidonavigation blocks in the sidebar, while in the list on the overview page (/admin/config/user-interface/navigation-block) you have onecontenidoand onecontentnavigation block listed. if you save the page both blocks are calledcontenidonow - switch the account administration pages back to english on
/user/1/edit - return another time to
/en/admin/config/user-interface/navigation-block
the sidebar shows two content blocks (correctly displayed in english). but all the titles on the navigation block overview page are shown in spanish now. if you click "translate" for each of the contenido blocks you notice the newly added block shows spanish as the original, but the one added per default has english as the original language. if you click the edit button for the english original it has contenido as its english title as well.