File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -155,14 +155,11 @@ can override the translations from any translation file, as long as it is in
155
155
156
156
.. caution ::
157
157
158
- The last translation file always wins. That means that you need to make
159
- sure that the bundle containing *your * translations is loaded after any
158
+ Translation files are not aware of :doc: `bundle inheritance </bundles/inheritance >`.
159
+ If you want to override translations from the parent bundle or another bundle,
160
+ make sure that the bundle containing *your * translations is loaded after any
160
161
bundle whose translations you're overriding. This is done in ``AppKernel ``.
161
162
162
- Translation files are also not aware of :doc: `bundle inheritance </bundles/inheritance >`.
163
- If you want to override translations from the parent bundle, be sure that the
164
- parent bundle is loaded before the child bundle in the ``AppKernel `` class.
165
-
166
- The file that always wins is the one that is placed in
167
- ``app/Resources/translations ``, as those files are always loaded last.
163
+ Finally, translations located in ``app/Resources/translations `` will override
164
+ all the other translations since those files are always loaded last.
168
165
.. _`the Doctrine documentation` : http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/inheritance-mapping.html#overrides
You can’t perform that action at this time.
0 commit comments