cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] workflow l10n

fufler
Champ in-the-making
Champ in-the-making
Hello. Don't know if it's right place to post, so sorry if i'm wrong. I'm trying to localize alfresco workflow, but encountered some problems. I use same strings for description and title of task, but in alfresco web client they look different. Take  a look at screenshot:[img]http://fufler.bshellz.net/shot.png[/img]

My workflow files:

x-model-context.xml
<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
 
  <bean id="extension.workflowBootstrap" parent="workflowDeployer">
    <property name="workflowDefinitions">
      <list>
        <props>
          <prop key="engineId">jbpm</prop>
          <prop key="location">alfresco/extension/workflows/xProcess.xml</prop>
          <prop key="mimetype">text/xml</prop>
          <prop key="redeploy">true</prop>
        </props>
      </list>
    </property>
    <property name="labels">
      <list>
        <value>alfresco.extension.xWorkflow</value>
      </list>
    </property>
    <property name="models">
        <list>
            <value>alfresco/extension/xWorkflowModel.xml</value>
        </list>
    </property>
  </bean>
   
</beans>

xWorkflowModel.xml
<?xml version="1.0" encoding="UTF-8"?>
<model name="xwf:xmodel"  xmlns="http://www.alfresco.org/model/dictionary/1.0">

  <imports>
    <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
    <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
  </imports>

  <namespaces>
    <namespace uri="http://www.x.com/model/workflow/1.0"  prefix="xwf" />
  </namespaces>

  <types>

    <type name="xwf:startTask">
      <parent>bpm:startTask</parent>
    </type>

    <type name="xwf:Task">
      <parent>bpm:workflowTask</parent>
    </type>
  </types>
</model>

xWorkflow_ru_RU.properties
xwf_buggywf.workflow.title=buggywf
xwf_buggywf.task.xwf_Task.title=\u043f\u044b\u0449
xwf_buggywf.task.xwf_Task.description=\u043f\u044b\u0449

cat workflows/xProcess.xml
<?xml version="1.0" encoding="UTF-8"?>

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="xwf:buggywf">

  <swimlane name="initiator" />

  <start-state name="Start">
    <task name="xwf:startTask" swimlane="initiator" />
    <transition name="" to="Task" />
  </start-state>

  <task-node name="Task">
    <task name="xwf:Task" swimlane="initiator" />
    <transition name="ok" to="End" />
  </task-node>
 
  <end-state name="End"/>
 
</process-definition>

Is there any way to fix this problem?
1 REPLY 1

fufler
Champ in-the-making
Champ in-the-making
Fixed in new versions.