@@ -145,7 +145,7 @@ different formats:
145
145
.. code-block :: yaml
146
146
147
147
# translations/messages.fr.yaml
148
- Symfony is great : J'aime Symfony
148
+ Symfony is great : Symfony est génial
149
149
150
150
.. code-block :: xml
151
151
@@ -156,7 +156,7 @@ different formats:
156
156
<body >
157
157
<trans-unit id =" symfony_is_great" >
158
158
<source >Symfony is great</source >
159
- <target >J'aime Symfony</target >
159
+ <target >Symfony est génial </target >
160
160
</trans-unit >
161
161
</body >
162
162
</file >
@@ -166,14 +166,14 @@ different formats:
166
166
167
167
// translations/messages.fr.php
168
168
return [
169
- 'Symfony is great' => "J'aime Symfony" ,
169
+ 'Symfony is great' => ' Symfony est génial' ,
170
170
];
171
171
172
172
You can find more information on where these files
173
173
:ref: `should be located <translation-resource-locations >`.
174
174
175
175
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
177
177
the message inside your :ref: `templates <translation-in-templates >`.
178
178
179
179
.. _translation-real-vs-keyword-messages :
@@ -1192,7 +1192,7 @@ for the ``fr`` locale:
1192
1192
<body >
1193
1193
<trans-unit id =" 1" >
1194
1194
<source >Symfony is great</source >
1195
- <target >J'aime Symfony</target >
1195
+ <target >Symfony est génial </target >
1196
1196
</trans-unit >
1197
1197
</body >
1198
1198
</file >
@@ -1201,13 +1201,13 @@ for the ``fr`` locale:
1201
1201
.. code-block :: yaml
1202
1202
1203
1203
# translations/messages.fr.yaml
1204
- Symfony is great : J'aime Symfony
1204
+ Symfony is great : Symfony est génial
1205
1205
1206
1206
.. code-block :: php
1207
1207
1208
1208
// translations/messages.fr.php
1209
1209
return [
1210
- 'Symfony is great' => 'J\'aime Symfony',
1210
+ 'Symfony is great' => 'Symfony est génial ',
1211
1211
];
1212
1212
1213
1213
and for the ``en `` locale:
@@ -1250,7 +1250,7 @@ To inspect all messages in the ``fr`` locale for the application, run:
1250
1250
--------- ------------------ ---------------------- -------------------------------
1251
1251
State Id Message Preview (fr) Fallback Message Preview (en)
1252
1252
--------- ------------------ ---------------------- -------------------------------
1253
- unused Symfony is great J'aime Symfony Symfony is great
1253
+ unused Symfony is great Symfony est génial Symfony is great
1254
1254
--------- ------------------ ---------------------- -------------------------------
1255
1255
1256
1256
It shows you a table with the result when translating the message in the ``fr ``
@@ -1270,7 +1270,7 @@ output:
1270
1270
--------- ------------------ ---------------------- -------------------------------
1271
1271
State Id Message Preview (fr) Fallback Message Preview (en)
1272
1272
--------- ------------------ ---------------------- -------------------------------
1273
- Symfony is great J'aime Symfony Symfony is great
1273
+ Symfony is great Symfony est génial Symfony is great
1274
1274
--------- ------------------ ---------------------- -------------------------------
1275
1275
1276
1276
The state is empty which means the message is translated in the ``fr `` locale
0 commit comments