Markup appears by revision settings when translations turned on

Created on 25 July 2015, over 9 years ago
Updated 10 September 2024, 3 months ago

When I turn on content translation, and check off "Content" at /admin/config/regional/content-language, I get markup appearing on the page by the node revision settings. A screenshot is attached.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
Content translationΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States davidhernandez USA

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β†’ as a guide.

    Tried replicating on Drupal 10.1 with Umani install and I do not see the markup

    If still valid please provide testing steps.

  • πŸ‡¬πŸ‡§United Kingdom Rob230

    It does seem like it's way too aggressive. We have this unescaped HTML <span class="translation-entity-all-languages"> appearing at the end of many buttons and other form elements of a multilingual site.

    For example, even something as simple as a link inside a container gets it added. The fix is to add '#multilingual' => TRUE to the container or the element. But the patch #5 will also fix it, and makes sense - what Drupal core is currently doing is incorrect because it is appending some HTML to a string that gets escaped.

  • πŸ‡¬πŸ‡§United Kingdom Rob230

    Another place it will appear is in the error message for a required field - even if the field itself displays correctly, the title (with suffix) gets escaped in the error message about the required field.

    The best thing might be to remove the spans, because the #title of an element is used as a string in so many places.

  • πŸ‡¬πŸ‡§United Kingdom Rob230

    Decided to spin off a new issue. πŸ› HTML (all languages) appearing in error messages of multilingual sites Active

  • Status changed to Closed: outdated 3 months ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    I also could not reproduce the problem stated in the issue summary. And there is a separate issue for a problem with fields. so, closing this one.

Production build 0.71.5 2024