Skip to content

[Translator] Translator warmup doesn't dump fallback locales #15364

@kminh

Description

@kminh

Using Symfony 2.7.2.

When fallback locales for the Translator service are set to [en, fr] for example, if I run app/console cache:clear (or via API), cached catalogues for en and fr are not dumped.

The line causing this issue is: https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Translation/Translator.php#L338

It seems that fallback catalogues are generated on the fly to be added to other locales, thus being by passed when dumping.

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