Skip to content

Commit b80f46b

Browse files
committed
[WIP] [Translation] Add note about how to override translation in child Bundle
#5193
1 parent 12ed2e6 commit b80f46b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cookbook/bundles/override.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ can override the translations from any translation file, as long as it is in
191191
The last translation file always wins. That means that you need to make
192192
sure that the bundle containing *your* translations is loaded after any
193193
bundle whose translations you're overriding. This is done in ``AppKernel``.
194-
194+
Translation files are not aware of the inheritance tree and therefore
195+
unaware of their parent. If you want to override translations from the
196+
parent bundle be sure the loading order in ``AppKernel`` is parent > child.
197+
195198
The file that always wins is the one that is placed in
196199
``app/Resources/translations``, as those files are always loaded last.
197200

0 commit comments

Comments
 (0)