Disallowed or malformed HTML in translation

Created on 27 November 2023, over 1 year ago
Updated 19 September 2024, 7 months ago

Problem/Motivation

Error:

[error]  Import of string "<div class="webform-custom-options-buttons">
{% for value, text in options %}
<div class="webform-custom-options-button" data-option-value="{{ value }}" style="text-align:center">
{{ text }}
{% if descriptions[value] %}<div class="description">{{ descriptions[value] }}</div>{% endif %}
</div>
{% endfor %}
</div>
> " was skipped because of disallowed or malformed HTML. 

The translation is a copy of the source string.
Translation on localize.drupal.org.

The source string is in config:
webform_options_custom.webform_options_custom.buttons.yml

Steps to reproduce

Import the German translation of the webform module.

Proposed resolution

I think this config property should not be translatable.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary pasqualle πŸ‡­πŸ‡Ί Budapest

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

Merge Requests

Comments & Activities

  • Issue created by @pasqualle
  • Merge request !381Do not translate a twig template β†’ (Open) created by pasqualle
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.2 & MySQL 8
    last update over 1 year ago
    536 pass
  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    Is the HTML in fact malformed? If so, that should be fixed even if it is also marked as not translatable.

    Bug reports are always against the development branch.

  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    I think the problem is Twig is not support via translations

  • πŸ‡¨πŸ‡­Switzerland yobottehg Basel

    Seeing the same on drush si --existing-config.

    Translation can be seen here:
    https://localize.drupal.org/translate/languages/de/translate?project=web...

    Translation is 1:1 of the original. Perhaps there is a way to delte the translation?

  • πŸ‡«πŸ‡·France clemorphy Paris

    I have the same error when my deployment script imports FR translation for the webform module :

    >  [notice] Importing fr translation for webform. (16%).
    >  [error]  Import of string "<front>" was skipped because of disallowed or malformed HTML. 

    And as this poduces an [error] tag, my deployment always fails because of this line. This is very inconvenient.

    Can it be fixed so it doesn't produce this error?

  • Pipeline finished with Skipped
    4 months ago
    #362970
  • Pipeline finished with Failed
    3 months ago
    Total: 164s
    #387539
  • Pipeline finished with Failed
    3 months ago
    Total: 193s
    #387566
  • Pipeline finished with Skipped
    3 months ago
    #388008
  • Pipeline finished with Failed
    3 months ago
    Total: 150s
    #388240
  • Pipeline finished with Success
    3 months ago
    Total: 169s
    #388243
  • Pipeline finished with Success
    3 months ago
    Total: 234s
    #388249
  • Pipeline finished with Failed
    3 months ago
    Total: 224s
    #396594
  • Pipeline finished with Success
    3 months ago
    Total: 171s
    #396600
Production build 0.71.5 2024