diff --git a/cookbook/bundles/override.rst b/cookbook/bundles/override.rst index 70ba6786dde..b67ae24c656 100644 --- a/cookbook/bundles/override.rst +++ b/cookbook/bundles/override.rst @@ -191,8 +191,11 @@ 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 that the parent bundle is loaded before the child + bundle in the ``AppKernel`` class. The file that always wins is the one that is placed in ``app/Resources/translations``, as those files are always loaded last. - .. _`the Doctrine documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/inheritance-mapping.html#overrides pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy