Closed Bug 1681653 Opened 5 years ago Closed 4 years ago

Pontoon generates invalid XML for TMX

Categories

(Webtools Graveyard :: Pontoon, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: flod, Assigned: vishalcr7)

Details

Attachments

(2 files)

Attached file sample.tmx

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.

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 &copy;, 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 &copy;1998–2011 <br>by individual mozilla.org contributors. Content <br>available under a Creative Commons license."
Assignee: nobody → vishaliitr7
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: