Bug 993501 - TMX export contains significant duplication
Summary: TMX export contains significant duplication
Status: CLOSED WORKSFORME
Alias: None
Product: Zanata
Classification: Retired
Component: Performance
Version: development
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Sean Flanigan
QA Contact: Zanata-QA Mailling List
URL:
Whiteboard:
Keywords:
Depends On: 980659
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-06 05:13 UTC by Damian Jansen
Modified: 2014-11-19 05:22 UTC (History)
4 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2014-11-19 05:22:51 UTC


Attachments (Terms of Use)
Example tmx (1.85 KB, text/plain)
2013-08-06 05:13 UTC, Damian Jansen
no flags Details
Example chopped tmx (1.07 KB, text/plain)
2013-08-06 05:14 UTC, Damian Jansen
no flags Details

Description Damian Jansen 2013-08-06 05:13:08 UTC
Created attachment 783182 [details]
Example tmx

Description of problem:
Every translated string has its own copy of
<tu tuid="project:version:path:content.xml:id" srclang="en-us">
<tuv xml:lang="en-us"><seg>Source text</seg></tuv>
...
</tu>

This means that for every single line of $translations-1, there are three unnecessary ones. In characters, in a small file, this equated to more than a third of the entire file being duplication.

Version-Release number of selected component (if applicable):
Dev

How reproducible:
Moderate, always

Steps to Reproduce:
Pre:
- A project version with three languages, and three strings translated
- Signed in as admin
1. Go to project->project version
2. Click Export to tmx
3. Save the file
4. View the file

Actual results:
See tmx1.tmx

Expected results:
See tmx1_chopped.tmx

Additional info:

Comment 1 Damian Jansen 2013-08-06 05:14:05 UTC
Created attachment 783183 [details]
Example chopped tmx

Comment 2 Sean Flanigan 2013-08-06 06:24:36 UTC
I haven't been able to reproduce the problem easily on the tm-import branch, so I recommend testing again after tm-import is merged into master.  There have been some changes in the way we generate TMX, even for translations which weren't imported.

Comment 3 Sean Flanigan 2013-08-06 06:30:59 UTC
Actually, I haven't been able to reproduce the problem using the master branch either.

We need more information about the translation project which is being exported.

Comment 5 Damian Jansen 2014-11-19 05:22:51 UTC
Retested, no longer an issue


Note You need to log in before you can comment on or make changes to this bug.