This topic contains 2 replies, has 2 voices, and was last updated by shreyas 7 years, 3 months ago.
- Topic
Hi Team,
i am looking for translation labels in workflows but not getting on how to go about with it.As when i change the language from English to other i get all Steps & buttons ex.(Start Progress , Stop Progress in Task_Flow workflow present in Task Bundle) shown in English itself which needs to be translated to language currently used.
I tried the steps given in link below but i could not get it work:
Workflow Translation Documentation
i also looked at the below link :
Workflow Translations GIT doc
where in oro:workflow:translations:dump & app/console oro:translation:load
were not defined in my Application Console to execute.Kindly need help on how to go with this issue.Please find below the code snippets written:
Workflow.fr.yml(Loc: vendor\oro\crm\src\OroCRM\Bundle\TaskBundle\Resources\translations):
12345678910oro:workflows:task_flow:step:open:label: 'Ouvert'in_progress:label: 'En cours'closed:label: 'Fermé'And in steps.yml (present in existing Task Bundle Loc: vendor\oro\crm\src\OroCRM\Bundle\TaskBundle\Resources\config\oro\workflow\task_flow):
1234567891011121314151617181920212223workflows:task_flow:steps:open:#label: 'Ouvert'label: 'oro.workflow.task_flow.step.open.label'order: 10allowed_transitions:- start_progress- closein_progress:#label: 'En cours'label: 'oro.workflow.task_flow.step.in_progress.label'order: 20allowed_transitions:- stop_progress- closeclosed:#label: 'Fermé'label: 'oro.workflow.task_flow.step.closed.label'order: 30allowed_transitions:- reopenIn the UI when i look in task view i see as oro.workflow.task_flow.step.open.label which does not get replaced with given value.I am using locale & language as French.As per documents i read its working is similar to the way we use messages.en.yml. i also tried not providing labels to any of steps in steps.yml but when
i run the command: oro:workflow:definitions:load i get error as given below:123[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]Can't parse workflow configuration from /websites/shreyas/crm-application/vendor/oro/crm/src/OroCRM/Bundle/TaskBundle/Resources/config/workflow.yml.The child node "label" at path "workflows.task_flow.steps.open" must be configured.Screenshot attached for the same:
So once i added back labels for all steps in steps.yml this command worked.finally i also tried making these label also configured inside attributes.yml of task workflow but it too did not work & executing oro:workflow:definitions:load threw me some exception as – open.label excepts array but string given.
Kindly need help in knowing should i need to configure these labels anywhere else also to make it work.
Please need any suggestions / links in how to get these translations working for the Workflow.
Thanks & Regards,
Shreyas S
The forum ‘OroCRM’ is closed to new topics and replies.