Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #15551 [Translation] added <tool> element metadata to XliffFi…
…leDumper (aitboudad) This PR was merged into the 2.8 branch. Discussion ---------- [Translation] added <tool> element metadata to XliffFileDumper | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #15190 | License | MIT | Doc PR | ~ Commits ------- f667a34 [Translation] added <tool> element metadata to XliffFileDumper
- Loading branch information
Showing
5 changed files
with
91 additions
and
41 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
3 changes: 3 additions & 0 deletions
3
src/Symfony/Component/Translation/Tests/fixtures/resources-clean.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
14 changes: 14 additions & 0 deletions
14
src/Symfony/Component/Translation/Tests/fixtures/resources-target-attributes.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,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2"> | ||
<file source-language="fr-FR" target-language="en-US" datatype="plaintext" original="file.ext"> | ||
<header> | ||
<tool tool-id="symfony" tool-name="Symfony"/> | ||
</header> | ||
<body> | ||
<trans-unit id="acbd18db4cc2f85cedef654fccc4a4d8" resname="foo"> | ||
<source>foo</source> | ||
<target state="needs-translation">bar</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
14 changes: 14 additions & 0 deletions
14
src/Symfony/Component/Translation/Tests/fixtures/resources-tool-info.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,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2"> | ||
<file source-language="en-US" target-language="en-US" datatype="plaintext" original="file.ext"> | ||
<header> | ||
<tool tool-id="foo" tool-name="foo" tool-version="0.0" tool-company="Foo"/> | ||
</header> | ||
<body> | ||
<trans-unit id="acbd18db4cc2f85cedef654fccc4a4d8" resname="foo"> | ||
<source>foo</source> | ||
<target>bar</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |