symfony / symfony

The Symfony PHP framework
https://symfony.com
MIT License
29.65k stars 9.43k forks source link

Overwriting translations of bundles does not work #40264

Closed sormes closed 3 years ago

sormes commented 3 years ago

Symfony version(s) affected: 4.4.19

Description

Overwriting translations of bundles does not work

How to reproduce

try override translation from bundle in app.

more info in https://github.com/sonata-project/SonataAdminBundle/issues/6881

Possible Solution

I don't know exactly why it is sorted by name here. But this is where the order of the files changes. https://github.com/symfony/framework-bundle/blob/4.4/DependencyInjection/FrameworkExtension.php#L1248

Additional context

This has arisen from this other issue in sonata project

https://github.com/sonata-project/SonataAdminBundle/issues/6881

wouterj commented 3 years ago

Hi! Thanks for creating a bug report. However, this bug has been reported multiple times already and is now fixed in the 4.4.x. See https://github.com/symfony/symfony/issues/40014 for the original bug report. You can revert back to 4.4.18 and wait for a 4.4.20 release to work around this bug.

sormes commented 3 years ago

@wouterj

Thanks and sorry I have only searched the open issues. My fault . ^^