Skip to content

[Console] TranslationDebugCommand: Problem with instanceof Translator Typecheck #18637

Closed
@coding-musicman

Description

@coding-musicman

I have defined messages for the languages de and fallback language en.

When I execute console debug:translation de AppBundle I only retrieve the informations to de, but no comparison to the fallback en, as shown in the manual.

A bit digging showed it's the test if ($translator instanceof Translator) in function loadFallbackCatalogues in TranslationDebugCommand.php

A dump of $translator shows it's an instance of Symfony\Component\Translation\DataCollectorTranslator.

When I remove the test, I get the desired output, a comparison between used and fallback language.

I'm using Symfony 3.

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