Skip to content

Commit

Permalink
feature #6989 Added paths options in Framework::translator configurat…
Browse files Browse the repository at this point in the history
…ion (mickaelandrieu)

This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #6989).

Discussion
----------

Added paths options in Framework::translator configuration

Hi,

Note this option is already documented in Translator docs, and a blog post mention it too: http://symfony.com/blog/new-in-symfony-2-8-translator-improvements#add-option-to-specify-additional-translation-loading-paths

Mickaël

Commits
-------

e1c55d0 Added paths options in Framework::translator configuration
  • Loading branch information
xabbuh committed Sep 21, 2016
2 parents b5fe1b4 + e1c55d0 commit 7620abf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Configuration
* :ref:`enabled <reference-translator-enabled>`
* `fallbacks`_
* `logging`_
* `paths`_
* `property_access`_
* `magic_call`_
* `throw_exception_on_invalid_index`_
Expand Down Expand Up @@ -1315,6 +1316,13 @@ for a given key. The logs are made to the ``translation`` channel and at the
``debug`` for level for keys where there is a translation in the fallback
locale and the ``warning`` level if there is no translation to use at all.

paths
.....

**type**: ``array`` **default**: ``[]``

This option allows to define an array of paths where the component will look for translation files.

property_access
~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -1638,6 +1646,7 @@ Full Default Configuration
enabled: false
fallbacks: [en]
logging: "%kernel.debug%"
paths: []
# validation configuration
validation:
Expand Down

0 comments on commit 7620abf

Please sign in to comment.