- Issue created by @fox mulder
- First commit to issue fork.
Automatically closed - issue fixed for 2 weeks with no activity.
Hi,
I'm using the config_ignore module on a Drupal 10 site, and I ran into some trouble when trying to import translations (specifically German).
During drush deploy, I got multiple errors like this:
[error] Import of string "...
..." was skipped because of disallowed or malformed HTML.
It seems that some of the translatable strings in the module contain
tags, and Drupal doesn't allow those anymore when importing translations. I read that Drupal 10 uses a stricter filter (locale_string_is_safe()), and that
(especially self-closing) is not on the allowed list.
Example string:
'The configuration is ignored on import.
That means the active configuration will not be replaced...'
Suggestion:
Maybe it would be better if these strings didn’t include
, and just used normal sentence breaks instead? That way, the translations wouldn’t be skipped.
I saw similar issues reported for other projects too, like Webform (
https://www.drupal.org/project/webform/issues/3404305
🐛
Disallowed or malformed HTML in translation
Active
) and Geofield (
https://www.drupal.org/project/geofield/issues/3276574
🐛
Disallowed or malformed HTML in german translation .po file
Fixed
), where translations failed because of HTML in the strings.
Sorry if I misunderstood something — just thought it might be helpful to mention.
Thanks for your work on the module!
Active
3.3
Code
Automatically closed - issue fixed for 2 weeks with no activity.