Pontoon generates invalid XML for TMX
Categories
(Webtools Graveyard :: Pontoon, defect)
Tracking
(Not tracked)
People
(Reporter: flod, Assigned: vishalcr7)
Details
Attachments
(2 files)
I tried parsing the TMX for Italian, and couldn't get past two errors. I've isolated the issue to two strings in SUMO, which apparently have a char(3) (ETX) character in the middle of the string.
You can see it just by dragging the attached TMX into Firefox.
| Reporter | ||
Comment 1•5 years ago
|
||
I think there's value in making sure Pontoon generates a valid TMX file, and this bug should probably be about that.
Having said that, I have no clue what's happening here.
Italian only has one string, why are there two exported to TMX?
https://pontoon.mozilla.org/it/sumo/all-resources/?search=Portions+of+this+content+are&string=214988
The templates file only has one string.
#: kitsune/sumo/jinja2/base.html:313
msgid ""
"Portions of this content are ©1998–2020 by individual mozilla.org "
"contributors. Content available under a <a rel=\"external noopener\" "
"href=\"https://www.mozilla.org/foundation/licensing/website-"
"content/\">Creative Commons license</a>."
msgstr ""
The en-US file has only one string as well, although there's a mismatch between msgid and msgstr (© vs ©, also missing the link alltogether).
#: kitsune/sumo/jinja2/base.html:313
#, fuzzy
msgid ""
"Portions of this content are ©1998–2020 by individual mozilla.org contributors. Content available under a <a rel=\"external noopener\" href=\"https://www.mozilla.org/foundation/licensing/website-"
"content/\">Creative Commons license</a>."
msgstr "Portions of this content are ©1998–2011 <br>by individual mozilla.org contributors. Content <br>available under a Creative Commons license."
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Description
•