German translation breaks HTML in data-tooltip due to unescaped quotes
-
Hi,
the German default translation (de_DE, informal) currently breaks HTML rendering due to improperly escaped quotation marks inside a
data-tooltipattribute. The same issue might also be present in the formal variant (de_DE_formal) – I haven’t checked that variant, but the details below should make it easy to verify and adjust if needed.From
duplicator-de_DE.po:#: template/parts/filters/package_components.php:28
msgid “Backup components allow you to include/exclude differents part of your WordPress installation in the Backup.</br></br><b>Database</b>: Include the database in the Backup.</br><b>Plugins</b>: Include the plugins in the Backup. With the ‘active only’ option enabled, only active plugins will be included in the Backup.</br><b>Themes</b>: Include the themes in the Backup. With the ‘active only’ option enabled, only active themes will be included in the Backup.</br><b>Media</b>: Include the ‘uploads’ folder.</br><b>Other</b>: Include non-WordPress files and folders in the root directory.</br>”German translation:
msgstr “Mit den Backup-Komponenten kannst du verschiedene Teile deiner WordPress-Installation in das Backup einbeziehen oder ausschließen.</br></br><b>Datenbank</b>: Nimm die Datenbank in das Backup auf.</br><b>Plugins</b>: Nimm die Plugins in das Backup auf. Wenn die Option “nur aktive” aktiviert ist, werden nur aktive Plugins in das Backup aufgenommen.</br><b>Themes</b>: Nimm die Themes in das Backup auf. Wenn die Option “nur aktiv” aktiviert ist, werden nur aktive Themes in das Backup aufgenommen.</br><b>Medien</b>: Füge den Ordner „uploads“ hinzu..</br><b>Sonstiges</b>: Schließt Dateien und Ordner im Stammverzeichnis ein, die nicht zu WordPress gehören.</br>”
Problem: The double quotes (
"nur aktiv") are inserted unescaped into thedata-tooltipattribute. This causes the attribute to break: the browser interprets the quote as the end of the attribute value. In Firefox this results in invalid HTML and layout issues, as the rest of the content is parsed as plain markup.Suggested fix:
Either:
- replace
"with"in the translation, or - escape the attribute value correctly in code (e.g., using
esc_attr()).
Thanks!
- replace
The topic ‘German translation breaks HTML in data-tooltip due to unescaped quotes’ is closed to new replies.