Skip to content

[Translation] Override translation in child Bundle #3148

@rdohms

Description

@rdohms

When using bundle inheritance (ParentBundle -> ChildBundle), placing a messages.en.xliff file in the child bundle does not override the parent bundle, it actually does the opposite, where the parent bundle overrides everything set in the child bundle.

Example:

Case 1
ParentBundle has:
home.name = "Home"
home.member = "Member"

ChildBundle has:
home.name = "Home Sweet Home"

Prints: Home

Case 2
ParentBundle has:
home.member = "Member"

ChildBundle has:
home.name = "Home Sweet Home"

Prints: Home Sweet Home

Expected
ParentBundle has:
home.name = "Home"
home.member = "Member"

ChildBundle has:
home.name = "Home Sweet Home"

Prints: Home Sweet Home

This is based on Bundle inheritance, where the docs describe you should add the getParent method and then just place the files in the same place. Is this a valid issue? Or am I doing it wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      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