Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you have imported one language file for drupal 7.0 (.po) you get the warning that 2 translations are skipped because they contain forbidden HTML.
url: ?q=admin/config/regional/translate
select: import
warning: 2 translation strings were skipped because they contain disallowed HTML.
These translations belong to the original msgid-text: "" and "" which are translated, as if it they are html-tags. The values and (no translation) are also disallowed. With -none- and -hidden- there are no problems importing. I have no idea where these texts are used.
Comments
Comment #1
hanv3 CreditAttribution: hanv3 commentedthe tags are removed in the post:
msgid-text: "" and ""
msgid-text: "<none>" and "<hidden>"
Comment #2
droplet CreditAttribution: droplet commented#1020842: Error messages when importing translated strings fails are not helpful at all
Comment #3
ñull CreditAttribution: ñull commentedOnly a limited number of HTML tags seem to be acceptable and these two are not even HTML and must have be filtered out. If you want to use them I guess you could try escaping like this
\<hidden\>
.