8000 minor #9302 Added the name attribute to XLIFF 2 documents (javieregui… · symfony/symfony-docs@8a8b56d · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a8b56d

Browse files
committed
minor #9302 Added the name attribute to XLIFF 2 documents (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Added the name attribute to XLIFF 2 documents This fixes #9287. It's a simple fix because we only display one XLIFF 2 document in the docs. ----- @Nyholm I'm sure you did the right thing ... but just asking: making the `name` value the same as `source` is the best possible solution here? In Symfony's code the `source` attribute is short (https://github.com/symfony/symfony/pull/26149/files) but in real world it can be super long and super ugly (containing `CDATA`, etc.) So, don't you think this will be very verbose? Could we make the `name` value the same as the `id` attribute instead? If the XLIFF standard forces us to do this, then forget my comment and accept my apologies 😄 Commits ------- 30ee49e Added the name attribute to XLIFF 2 documents
2 parents b02bf3f + 30ee49e commit 8a8b56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/translation/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ loaded/dumped when using this component inside a Symfony application:
438438
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0"
439439
srcLang="fr-FR" trgLang="en-US">
440440
<file id="messages.en_US">
441-
<unit id="LCa0a2j">
441+
<unit id="LCa0a2j" name="original-content">
442442
<notes>
443443
<note category="state">new</note>
444444
<note category="approved">true</note>

0 commit comments

Comments
 (0)
0