You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch language in user (between provides translations)
Actual behaviour
The language seems to just follow the symfony default language setup.
Expected behaviour
Pimcore should consider the configured user language to switch to the given translation.
Possible solution approach
The issue appears in the following template: pimcore/vendor/pimcore/pimcore/bundles/CoreBundle/templates/Workflow/statusinfo/toolbarStatusInfo.html.twig
The translator interface is passed as view parameter to the template but seems not to have the right context.
So a possible solution can be to set the correct locale (or language corresponding to the logged in user) inside the event listener: pimcore/vendor/pimcore/admin-ui-classic-bundle/src/EventListener/WorkflowManagementListener.php were the method getToolbarHtml is returning the rendered template mentioned above.
In the event listener its possible to use injections so it might be possible to call the setLocal method on the TranslatorInterface or something like that with the correct context based locale.
The text was updated successfully, but these errors were encountered:
This should be fixed by pimcore/pimcore#17252 (11.3.1), let us know if it works, if not, feel free to re-open this or in a new issue with further details
Pimcore version
11.2.x
Steps to reproduce
Actual behaviour
The language seems to just follow the symfony default language setup.
Expected behaviour
Pimcore should consider the configured user language to switch to the given translation.
Possible solution approach
The issue appears in the following template:
pimcore/vendor/pimcore/pimcore/bundles/CoreBundle/templates/Workflow/statusinfo/toolbarStatusInfo.html.twig
The translator interface is passed as view parameter to the template but seems not to have the right context.
So a possible solution can be to set the correct locale (or language corresponding to the logged in user) inside the event listener:
pimcore/vendor/pimcore/admin-ui-classic-bundle/src/EventListener/WorkflowManagementListener.php
were the methodgetToolbarHtml
is returning the rendered template mentioned above.In the event listener its possible to use injections so it might be possible to call the setLocal method on the TranslatorInterface or something like that with the correct context based locale.
The text was updated successfully, but these errors were encountered: