This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TMXParser tests that account for metadata.
- Loading branch information
Carlos A. Munoz
committed
Jul 30, 2013
1 parent
ce7411a
commit 9e1c842
Showing
2 changed files
with
136 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
zanata-war/src/test/resources/tmx/valid-tmx-with-metadata.tmx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<tmx version="1.4"> | ||
<header creationtool="Zanata TransMemoryExportTMXStrategy" creationtoolversion="unknown" segtype="paragraph" | ||
o-tmf="unknown" adminlang="en" srclang="*all*" datatype="unknown"> | ||
<prop name="doc0:resId1:prop1">Header Prop value</prop> | ||
<note xml:lang="en">Header Note value</note> | ||
</header> | ||
<body> | ||
<tu tuid="doc0:resId0" srclang="en"> | ||
<prop name="doc0:resId0:prop0">Custom prop0 value</prop> | ||
<note xml:lang="en">Custom note</note> | ||
<tuv xml:lang="en"> | ||
<prop name="doc0:resId0:tuv0:prop0">Custom prop0 value on tuv</prop> | ||
<note xml:lang="en">Custom note on tuv</note> | ||
<seg>source0</seg> | ||
</tuv> | ||
<tuv xml:lang="en"> | ||
<seg>source0</seg> | ||
</tuv> | ||
<tuv xml:lang="fr"> | ||
<seg>targetFR0</seg> | ||
</tuv> | ||
<tuv xml:lang="de"> | ||
<seg>targetDE0</seg> | ||
</tuv> | ||
</tu> | ||
<tu tuid="doc0:resId1" srclang="en"> | ||
<prop name="doc0:resId1:prop0">Custom prop0 value</prop> | ||
<prop name="doc0:resId1:prop1">Custom prop1 value</prop> | ||
<note xml:lang="en">Custom note1</note> | ||
<note xml:lang="en">Custom note2</note> | ||
<tuv xml:lang="en"> | ||
<seg>SOURCE0</seg> | ||
</tuv> | ||
<tuv xml:lang="en"> | ||
<seg>SOURCE0</seg> | ||
</tuv> | ||
<tuv xml:lang="fr"> | ||
<seg>TARGETfr0</seg> | ||
</tuv> | ||
</tu> | ||
<tu tuid="doc1:resId0" srclang="en"> | ||
<tuv xml:lang="en"> | ||
<seg>source0</seg> | ||
</tuv> | ||
<tuv xml:lang="en"> | ||
<seg>source0</seg> | ||
</tuv> | ||
<tuv xml:lang="fr"> | ||
<seg>targetFR0</seg> | ||
</tuv> | ||
</tu> | ||
<tu tuid="doc1:resId1" srclang="en"> | ||
<tuv xml:lang="en"> | ||
<seg>SOURCE0</seg> | ||
</tuv> | ||
<tuv xml:lang="en"> | ||
<seg>SOURCE0</seg> | ||
</tuv> | ||
<tuv xml:lang="de"> | ||
<seg>TARGETde0</seg> | ||
</tuv> | ||
</tu> | ||
</body> | ||
</tmx> |