cancel
Showing results for 
Search instead for 
Did you mean: 

Translate workflow task title

nicoo
Champ in-the-making
Champ in-the-making
How can the title of a workflow task can be translated by the alfresco message property files?

I use the following sampleWorkflow.properties file:


    sampleWf.task.confirmTask.title=Confirm this, with a title which is different than the task name
    sampleWf.task.confirmTask.description=Confirm please


The bpmn-snippet for this tasks, is configured like this:


<userTask id="confirmTask" name="Confirm" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="samplewf:customTypeTask"></userTask>


The problem is, that only the field description is being translated, but the title seems to be ignored and will always be filled with the task name property from the bpmn file.

What did I do wrong?

Thank you very much.
2 REPLIES 2

muralidharand
Star Contributor
Star Contributor
https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/COMMUNITYTAGS/V5.0.a/root/projects/repo...

Alfresco is loading the title and description from
 workflow-message.properties 
file only.

//From workflow-messages.properties
wf_workflowmodel.type.wf_submitAdhocTask.title=Task
wf_workflowmodel.type.wf_submitAdhocTask.description=Allocate task to colleague

//From workflowmodel.xml
<model xmlns="http://www.alfresco.org/model/dictionary/1.0" name="wf:workflowmodel">
…..
<type name="wf:submitAdhocTask">
            <parent>bpm:startTask</parent>
…..


I believe the syntax might be,

modelprefix_modelname.task.modelprefix_taskname.title=Title goes here
modelprefix_modelname.task.modelprefix_taskname.description=Title goes here


Yours should be like this,

sampleWf_<name>.task.sampleWf_confirmTask.title=Confirm this, with a title which is different than the task name
sampleWf_<name>.task.sampleWf_confirmTask.description=Confirm please


Note: Replace
<name>
with your workflow model name.

I use Alfresco Community 5.1
Can you help me translate workflow task tilte ??