HTML (all languages) appearing in error messages of multilingual sites

Created on 19 October 2023, over 1 year ago

Problem/Motivation

HTML of <span class="translation-entity-all-languages">(all languages)</span> is appearing in many places (for which there are many issues raised already), but one that I can't find a good solution to is that it appears in form error messages.

Steps to reproduce

On a multilingual site add a content type and make it translatable. Add a required field and make it not translatable. Submit the add node form without completing the required field. You will see "Field Name (all languages) is required" as the error message.

Proposed resolution

Remove the , there should not be HTML in the #title of a form element because it is used as an escaped string in so many parts of Drupal.

🐛 Bug report
Status

Active

Version

9.5

Component
Content translation 

Last updated 4 days ago

No maintainer
Created by

🇬🇧United Kingdom Rob230

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024