Check UI strings against locale_string_is_safe

Created on 17 August 2025, 7 days ago

Problem/Motivation

The strings listed below contain user-defined tags that are used in the feature
locale_string_is_safe

This means that, assuming a corresponding translation exists, Drupal will reject the string when the translations are imported and will then reject it despite the existence of a translation.

https://localize.drupal.org/translate/languages/de/translate?sid=3046630
https://localize.drupal.org/translate/languages/de/translate?sid=3046632
https://localize.drupal.org/translate/languages/de/translate?sid=3046778

Steps to reproduce

Translate one of those strins in a particular language
export the po file with suggestions via localize.drupal.org
import the file
see that the translation is marked as malformed and the import of that string will fail

Proposed resolution

Please break the corresponding strings within your code into smaller pieces and add the feature t() or a suitable equivalent.

Make sure that your text does not contain any tags that are not part of the locale_string_is_safe feature.
Publish your module again so that the changed strings are transferred to the translation server localzie.drupal.org.

Remaining tasks

Change original localizion strings

User interface changes

Strings currently not translateable into other languages thjen Englisch will be translateable

API changes

TBD

Data model changes

TBD

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany joachim namyslo Kulmbach 🇩🇪 🇪🇺

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

Comments & Activities

Production build 0.71.5 2024