Skip to content

Commit

Permalink
[WIP] [Translation] Add note about how to override translation in chi…
Browse files Browse the repository at this point in the history
…ld Bundle

symfony#5193
  • Loading branch information
zebba committed May 23, 2015
1 parent 12ed2e6 commit b80f46b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cookbook/bundles/override.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ can override the translations from any translation file, as long as it is in
The last translation file always wins. That means that you need to make
sure that the bundle containing *your* translations is loaded after any
bundle whose translations you're overriding. This is done in ``AppKernel``.

Translation files are not aware of the inheritance tree and therefore
unaware of their parent. If you want to override translations from the
parent bundle be sure the loading order in ``AppKernel`` is parent > child.

The file that always wins is the one that is placed in
``app/Resources/translations``, as those files are always loaded last.

Expand Down

0 comments on commit b80f46b

Please sign in to comment.