Skip to content

extracting translations from static methods fails silently #28

@michelv

Description

@michelv

We have legacy code in static methods, those methods call the translator like this:

$translator = static::$container->get('translator'); $foo = $translator->trans('bar');

Expected result: new string 'bar' in the translation file (or an existing string updated with a new source).

Current result: no new or updated string, as none of the current visitors find the translated string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions