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

Created on 19 October 2023, 8 months ago
Updated 6 November 2023, 8 months 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 <span class="translation-entity-all-languages">(all languages)</span> is required" as the error message.

Proposed resolution

Append "(all languages)" without the span, 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

Needs work

Version

11.0 🔥

Component
Content translation 

Last updated 1 day 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.69.0 2024