cancel
Showing results for 
Search instead for 
Did you mean: 

Constraint Localization in the Content Model

damiri
Champ in-the-making
Champ in-the-making
Hi everyone,


HOW TO localize (I18N) constraints values "Green, Red" from this ?

   <constraints>      <constraint name="my:statusIndicatorList" type="LIST">         <parameter name="allowedValues">            <list>               <value>Green</value>               <value>Red</value>            </list>         </parameter>      </constraint>   </constraints>‍‍‍‍‍‍‍‍‍‍‍‍


IF the guide http://wiki.alfresco.com/wiki/Data_Dictionary_Guide#Model_Localization describes how to localize custom model

<model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">   <description>Example custom Model</description>   <author></author>    <!– Type and Aspect definitions go here –>   <types>      <type name="my:sop">         <title>Standard Operating Procedure</title>         <parent>cm:content</parent>         <properties>            <property name="my:publishedDate">               <type>d:datetime</type>            </property>         </properties>      </type>    </types>…‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

my_mynewmodel.description=Example custom modelmy_mynewmodel.type.my_sop.title=SOPmy_mynewmodel.type.my_sop.description=Standard Operating Proceduremy_mynewmodel.property.my_publishedDate.title=Published Date‍‍‍‍‍‍
4 REPLIES 4

damiri
Champ in-the-making
Champ in-the-making
up

cheffilet
Champ in-the-making
Champ in-the-making
It doesnt work yet DamirI.

We have to look forward until Alfresco fix this issue.

For more information about the state, please go to the Task: https://issues.alfresco.com/jira/browse/ALFCOM-1926

sversh71
Champ in-the-making
Champ in-the-making
Wow! Great progress…
It was opened on 09-Sep-08. And we still here.

pnature
Star Contributor
Star Contributor

Problem was resolved 3 year after.

Now you can translate constraints according to Data dictionary guide. Right inscription is:

listconstraint.namespace_nameConstraint.definedValue=translatedValue