Skip to content

Transition item is not translated using the admin translation domain #7

@gremo

Description

@gremo

Here: https://github.com/yokai-php/sonata-workflow/blob/master/src/Admin/Extension/WorkflowExtension.php#L181 you are using:

$menu->addChild(
    $admin->getLabelTranslatorStrategy()->getLabel($transition->getName(), 'workflow'),
    $options
);

Which is correct, because the extension should use the same label translation strategy of the admin. But translation domain should be the same of the admin, this could be easily fixed:

$menu->setExtra('translation_domain', $admin->getTranslationDomain());

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