@@ -127,7 +127,7 @@ different formats, XLIFF being the recommended format:
127
127
128
128
.. code-block :: xml
129
129
130
- <!-- messages.fr.xliff -->
130
+ <!-- messages.fr.xlf -->
131
131
<?xml version =" 1.0" ?>
132
132
<xliff version =" 1.2" xmlns =" urn:oasis:names:tc:xliff:document:1.2" >
133
133
<file source-language =" en" datatype =" plaintext" original =" file.ext" >
@@ -356,18 +356,18 @@ must be named according to the following path: ``domain.locale.loader``:
356
356
357
357
* **locale **: The locale that the translations are for (e.g. ``en_GB ``, ``en ``, etc);
358
358
359
- * **loader **: How Symfony should load and parse the file (e.g. ``xliff ``,
359
+ * **loader **: How Symfony should load and parse the file (e.g. ``xlf ``,
360
360
``php ``, ``yml ``, etc).
361
361
362
362
The loader can be the name of any registered loader. By default, Symfony
363
363
provides many loaders, including:
364
364
365
- * ``xliff ``: XLIFF file;
365
+ * ``xlf ``: XLIFF file;
366
366
* ``php ``: PHP file;
367
367
* ``yml ``: YAML file.
368
368
369
369
The choice of which loader to use is entirely up to you and is a matter of
370
- taste. The recommended option is to use ``xliff `` for translations.
370
+ taste. The recommended option is to use ``xlf `` for translations.
371
371
For more options, see :ref: `component-translator-message-catalogs `.
372
372
373
373
.. note ::
@@ -397,10 +397,10 @@ key ``Symfony is great``. To find the French translation, Symfony actually
397
397
checks translation resources for several locales:
398
398
399
399
#. First, Symfony looks for the translation in a ``fr_FR `` translation resource
400
- (e.g. ``messages.fr_FR.xliff ``);
400
+ (e.g. ``messages.fr_FR.xlf ``);
401
401
402
402
#. If it wasn't found, Symfony looks for the translation in a ``fr `` translation
403
- resource (e.g. ``messages.fr.xliff ``);
403
+ resource (e.g. ``messages.fr.xlf ``);
404
404
405
405
#. If the translation still isn't found, Symfony uses the ``fallbacks `` configuration
406
406
parameter, which defaults to ``en `` (see `Configuration `_).
@@ -662,7 +662,7 @@ bundle.
662
662
663
663
.. code-block :: xml
664
664
665
- <!-- validators.en.xliff -->
665
+ <!-- validators.en.xlf -->
666
666
<?xml version =" 1.0" ?>
667
667
<xliff version =" 1.2" xmlns =" urn:oasis:names:tc:xliff:document:1.2" >
668
668
<file source-language =" en" datatype =" plaintext" original =" file.ext" >
0 commit comments