Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #26247 [Translation] Process multiple segments within a single un…
…it. (timewasted) This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #26247). Discussion ---------- [Translation] Process multiple segments within a single unit. | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Xliff 2.0 supports multiple segments within a single unit, but the loader was only processing the first segment. The loader will now correctly process all segments within a unit. Commits ------- ac5d01f [Translation] Process multiple segments within a single unit.
- Loading branch information
Showing
3 changed files
with
69 additions
and
22 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
17 changes: 17 additions & 0 deletions
17
src/Symfony/Component/Translation/Tests/fixtures/resources-2.0-multi-segment-unit.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,17 @@ | ||
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="en-US" trgLang="en-US"> | ||
<file id="f1"> | ||
<unit id="1"> | ||
<notes> | ||
<note category="processed">true</note> | ||
</notes> | ||
<segment id="id-foo"> | ||
<source>foo</source> | ||
<target>foo (translated)</target> | ||
</segment> | ||
<segment id="id-bar"> | ||
<source>bar</source> | ||
<target>bar (translated)</target> | ||
</segment> | ||
</unit> | ||
</file> | ||
</xliff> |