Dictionary support for d:locale data type

System aspect sys:localized
Interface definition of MultilingualContentService


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4607 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-12-14 14:40:10 +00:00
parent e70798e59f
commit ab252efe82
9 changed files with 154 additions and 14 deletions

View File

@@ -230,11 +230,11 @@
<associations>
<child-association name="cm:mlChild">
<source>
<mandatory>true</mandatory>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:mlTranslation</class>
<class>sys:localized</class>
<mandatory>true</mandatory>
<many>true</many>
</target>
@@ -694,18 +694,6 @@
</properties>
</aspect>
<!-- Multilingual -->
<aspect name="cm:mlTranslation">
<title>Translation</title>
<properties>
<property name="cm:language">
<title>Language</title>
<type>d:mltext</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
</aspects>
</model>

View File

@@ -103,6 +103,11 @@
<java-class>org.alfresco.service.cmr.repository.NodeRef</java-class>
</data-type>
<data-type name="d:locale">
<analyser-class>org.alfresco.repo.search.impl.lucene.analysis.VerbatimAnalyser</analyser-class>
<java-class>java.util.Locale</java-class>
</data-type>
</data-types>

View File

@@ -186,6 +186,22 @@
</properties>
</aspect>
<!--
Localization:
If you add this aspect to a node, then the server will assume that all non-multilingual
properties apply to this locale.
-->
<aspect name="sys:localized">
<title>Translation</title>
<properties>
<property name="sys:locale">
<title>Locale</title>
<type>d:locale</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
</aspects>
</model>