Red Hat Bugzilla – Bug 986785
Source language not specified in exported TMX
Last modified: 2013-11-26 22:35:24 EST
Description of problem:
<header creationtool="Zanata TMXStreamingOutput" creationtoolversion="unknown" segtype="block" o-tmf="unknown" adminlang="en" srclang="*all*" datatype="unknown"/>
srclang "*all* is not an accepted use case for Zanata, so it should specify the source language from the project
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Got to a Project
2. Press Export all..., save file
3. Open file
Likely not a valid import.
When importing, srclang="*all*" is okay at the <header> level, *providing* it is overridden by a specific srclang in each <tu>. This means that the overall file may contain a variety of source languages, but if so, each TU must specify a source language.
This limitation is not specified in the TMX spec, but I think it is reasonable for Zanata to insist that every TU have some sort of defined srclang. Otherwise the TMX file is claiming that every TUV is an equally valid translation of every other TUV in the TU, whereas in reality each TUV was almost certainly translated from only one other TUV.
In any case, the translations being exported from Zanata's project database do actually have a defined source language, so it is a bug to omit srclang from the TMX.
Tested at 81583983d079566b5f6b0c18c7c028e4aef59c77
Closing VERIFIED bugs for Zanata versions <= 3.1.