Skip to content

Commit 8dfe867

Browse files
committed
minor #20571 Update translation.rst (nassimlnd)
This PR was submitted for the 7.1 branch but it was merged into the 6.4 branch instead. Discussion ---------- Update translation.rst The translation is incorrect. “Symfony is great” in French is correctly translated as “Symfony est génial.” Commits ------- cc4f5c5 Update translations
2 parents 09328e7 + cc4f5c5 commit 8dfe867

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

translation.rst

+9-9
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ different formats:
145145
.. code-block:: yaml
146146
147147
# translations/messages.fr.yaml
148-
Symfony is great: J'aime Symfony
148+
Symfony is great: Symfony est génial
149149
150150
.. code-block:: xml
151151
@@ -156,7 +156,7 @@ different formats:
156156
<body>
157157
<trans-unit id="symfony_is_great">
158158
<source>Symfony is great</source>
159-
<target>J'aime Symfony</target>
159+
<target>Symfony est génial</target>
160160
</trans-unit>
161161
</body>
162162
</file>
@@ -166,14 +166,14 @@ different formats:
166166
167167
// translations/messages.fr.php
168168
return [
169-
'Symfony is great' => "J'aime Symfony",
169+
'Symfony is great' => 'Symfony est génial',
170170
];
171171
172172
You can find more information on where these files
173173
:ref:`should be located <translation-resource-locations>`.
174174

175175
Now, if the language of the user's locale is French (e.g. ``fr_FR`` or ``fr_BE``),
176-
the message will be translated into ``J'aime Symfony``. You can also translate
176+
the message will be translated into ``Symfony est génial``. You can also translate
177177
the message inside your :ref:`templates <translation-in-templates>`.
178178

179179
.. _translation-real-vs-keyword-messages:
@@ -1219,7 +1219,7 @@ for the ``fr`` locale:
12191219
<body>
12201220
<trans-unit id="1">
12211221
<source>Symfony is great</source>
1222-
<target>J'aime Symfony</target>
1222+
<target>Symfony est génial</target>
12231223
</trans-unit>
12241224
</body>
12251225
</file>
@@ -1228,13 +1228,13 @@ for the ``fr`` locale:
12281228
.. code-block:: yaml
12291229
12301230
# translations/messages.fr.yaml
1231-
Symfony is great: J'aime Symfony
1231+
Symfony is great: Symfony est génial
12321232
12331233
.. code-block:: php
12341234
12351235
// translations/messages.fr.php
12361236
return [
1237-
'Symfony is great' => 'J\'aime Symfony',
1237+
'Symfony is great' => 'Symfony est génial',
12381238
];
12391239
12401240
and for the ``en`` locale:
@@ -1277,7 +1277,7 @@ To inspect all messages in the ``fr`` locale for the application, run:
12771277
--------- ------------------ ---------------------- -------------------------------
12781278
State Id Message Preview (fr) Fallback Message Preview (en)
12791279
--------- ------------------ ---------------------- -------------------------------
1280-
unused Symfony is great J'aime Symfony Symfony is great
1280+
unused Symfony is great Symfony est génial Symfony is great
12811281
--------- ------------------ ---------------------- -------------------------------
12821282
12831283
It shows you a table with the result when translating the message in the ``fr``
@@ -1297,7 +1297,7 @@ output:
12971297
--------- ------------------ ---------------------- -------------------------------
12981298
State Id Message Preview (fr) Fallback Message Preview (en)
12991299
--------- ------------------ ---------------------- -------------------------------
1300-
Symfony is great J'aime Symfony Symfony is great
1300+
Symfony is great Symfony est génial Symfony is great
13011301
--------- ------------------ ---------------------- -------------------------------
13021302
13031303
The state is empty which means the message is translated in the ``fr`` locale

0 commit comments

Comments
 (0)