Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Translation] debug:translation command does not show components translations #29633

Copy link
Copy link
Closed
@damienalexandre

Description

@damienalexandre
Issue body actions

Symfony version(s) affected: 3.4 to 4.2 at least

Description

When running php ./bin/console debug:translation --all fr, translation from all bundles are read (like FrameworkBundle, TwigBundle... ) but translations from components likes validators or security are not:

  • vendor/symfony/form/Resources/translations/validators.fr.xlf
  • vendor/symfony/security-core/Resources/translations/security.fr.xlf
  • vendor/symfony/validator/Resources/translations/validators.fr.xlf

I think this is not the behavior I expected, it could be improved.

The help message on the "all" option tells:

You can display information about translations in all registered bundles in a specific locale:

So it work as expected, but someone using those components will have hidden translation in his application, and no way to read them / debug them.

How to reproduce

php ./bin/console debug:translation --all fr
# No message from the "validators" catalog is listed

Possible Solution

Symfony should use the same path resolution for the debug command and the catalog loading in Translator. The Translator is capable of reading translations from the components, so this command should act the same way.

Additional context

Happy holidays 🎄 🎅

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.