8000 Replace XLIFF number ids by strings · a-ast/symfony-docs@cde5550 · GitHub
[go: up one dir, main page]

Skip to content

Commit cde5550

Browse files
author
Tristan Roussel
committed
Replace XLIFF number ids by strings
1 parent c63c826 commit cde5550

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

best_practices/i18n.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ English in the application would be:
8585
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
8686
<file source-language="en" target-language="en" datatype="plaintext" original="file.ext">
8787
<body>
88-
<trans-unit id="1">
88+
<trans-unit id="title_post_list">
8989
<source>title.post_list</source>
9090
<target>Post List</target>
9191
</trans-unit>

book/translation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ different formats, XLIFF being the recommended format:
132132
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
133133
<file source-language="en" datatype="plaintext" original="file.ext">
134134
<body>
135-
<trans-unit id="1">
135+
<trans-unit id="symfony_is_great">
136136
<source>Symfony is great</source>
137137
<target>J'aime Symfony</target>
138138
</trans-unit>
@@ -668,7 +668,7 @@ bundle.
668668
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
669669
<file source-language="en" datatype="plaintext" original="file.ext">
670670
<body>
671-
<trans-unit id="1">
671+
<trans-unit id="author.name.not_blank">
672672
<source>author.name.not_blank</source>
673673
<target>Please enter an author name.</target>
674674
</trans-unit>

components/translation/usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ recommended format. These files are parsed by one of the loader classes.
115115
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
116116
<file source-language="en" datatype="plaintext" original="file.ext">
117117
<body>
118-
<trans-unit id="1">
118+
<trans-unit id="symfony_is_great">
119119
<source>Symfony is great</source>
120120
<target>J'aime Symfony</target>
121121
</trans-unit>
122-
<trans-unit id="2">
122+
<trans-unit id="symfony.great">
123123
<source>symfony.great</source>
124124
<target>J'aime Symfony</target>
125125
</trans-unit>

0 commit comments

Comments
 (0)
0