mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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>
|
||||
|
@@ -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>
|
||||
|
||||
|
||||
|
@@ -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>
|
Reference in New Issue
Block a user