cancel
Showing results for 
Search instead for 
Did you mean: 

How to make task form multilingual?

pnature
Star Contributor
Star Contributor

Hi.

I am new and I am using Alfresco 5.1 community version.

I have made some workflows with customized tasks defined in workflow model

        <type name="ipp:incomingPostTask">
            <parent>bpm:activitiOutcomeTask</parent>
            <associations>
              <association name="ipp:assignee">
                <title>Assignee</title>
                <source>
                  <mandatory>false</mandatory>
                  <many>false</many>
                </source>
                <target>
                  <class>cm:person</class>
                  <mandatory>true</mandatory>
                  <many>false</many>
                </target>
              </association>
            </associations>
            <mandatory-aspects/>
        </type>

Now I want to make this task form multilingual. In this case I want to change title Assignee for example to Rechtsnachfolger.

How to achieve this?

Thanks in advance.

1 ACCEPTED ANSWER

pnature
Star Contributor
Star Contributor

Fortunately I found a solution.

Just name property files in directory share/.../messages like this:

anyName_en.properties
anyName_fr.properties

Context file in share have to point at these files.

Now forms defined in share-config-custom.xml can use label-id="property".

View answer in original post

8 REPLIES 8

douglascrp
World-Class Innovator
World-Class Innovator

Share your bean configuration here.

Bootstrap
    <bean id="incomingPostProcess-repo-amp.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/module/${project.artifactId}/model/content-model.xml</value>
                <value>alfresco/module/${project.artifactId}/model/workflow-model.xml</value>
            </list>
        </property>
        <property name="labels">
           <list>
              <value>alfresco/module/${project.artifactId}/messages/workflow-model</value>
           </list>
        </property>
    </bean>
Service
    <bean id="incomingPostProcess.workflowBootstrap" parent="workflowDeployer">
        <property name="workflowDefinitions">
            <list>
                <props>
                    <prop key="engineId">activiti</prop>
                    <prop key="location">alfresco/module/incomingPostProcess-repo-amp/workflows/incomingPostProcess.bpmn</prop>
                    <prop key="mimetype">text/xml</prop>
                    <prop key="redeploy">true</prop>
                </props>
            </list>
        </property>
    </bean>

Hi.

Now I can translate properties and associations but I cannot translate types and aspects.

Model:

      <aspect name="iw:approveContribution">
            <title>Approvers for Approve Contribution</title>

Share-config-custom.xml contains form

<set id="iw:approveContribution" appearance="bordered-panel" template="/org/alfresco/components/form/2-column-set.ftl" />
<field set="iw:approveContribution" id="iw:approver" />

Properties

iw_contentModel.aspect.iw_approveContribution.title=Approvers for Approve Contribution

Form shows label of bordered panel as "iw:approveContribution"

How to make multilingual label of bordered panel?

Thank you in advance.

pnature
Star Contributor
Star Contributor

Fortunately I found a solution.

Just name property files in directory share/.../messages like this:

anyName_en.properties
anyName_fr.properties

Context file in share have to point at these files.

Now forms defined in share-config-custom.xml can use label-id="property".