File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ The translator service is accessible in PHP templates through the
334
334
Translation Resource/File Names and Locations
335
335
---------------------------------------------
336
336
337
- Symfony looks for message files (i.e. translations) in the following locations:
337
+ Symfony looks for message files (i.e. translations) in the following default locations:
338
338
339
339
* the ``app/Resources/translations `` directory;
340
340
@@ -372,6 +372,18 @@ The choice of which loader to use is entirely up to you and is a matter of
372
372
taste. The recommended option is to use ``xlf `` for translations.
373
373
For more options, see :ref: `component-translator-message-catalogs `.
374
374
375
+ .. note ::
376
+
377
+ The the paths at which Symfony will look for message files can be modified by adding
378
+ your custom resources path in your config.yml:
379
+
380
+ .. code-block :: yml
381
+
382
+ framework:
383
+ translator:
384
+ paths:
385
+ - %kernel.root_dir%/../vendor/Symfony/Component/Form/Resources/translations
386
+
375
387
.. note ::
376
388
377
389
You can also store translations in a database, or any other storage by
You can’t perform that action at this time.
0 commit comments