-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #128: State is set back to translated even if source did not c…
…hange
- Loading branch information
1 parent
ed151fd
commit b98b238
Showing
4 changed files
with
81 additions
and
6 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
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
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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- issue 128 when source is unchanged but has different line ending translation state should not change --> | ||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | ||
<file source-language="de" datatype="plaintext" original="ng2.template"> | ||
<body> | ||
<trans-unit id="issue128" datatype="html"> | ||
<source> | ||
Ein CR-LF-Problem</source> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">awesome.component.html</context> | ||
<context context-type="linenumber">2</context> | ||
</context-group> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
18 changes: 18 additions & 0 deletions
18
projects/xliffmerge/test/testdata/i18n/issue128translated.xlf
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,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- issue 128 when source is unchanged but has different line ending translation state should not change --> | ||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | ||
<file datatype="plaintext" date="2018-11-14T14:52:51.3060268Z" original="3223941_9" source-language="de" target-language="en"> | ||
<body> | ||
<trans-unit id="issue128" datatype="html"> | ||
<source> | ||
Ein CR-LF-Problem</source> | ||
<target state="final"> | ||
A CR-LF problem</target> | ||
<context-group purpose="location"> | ||
<context context-type="sourcefile">awesome.component.html</context> | ||
<context context-type="linenumber">2</context> | ||
</context-group> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |