<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Localize label from custom model in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290273#M243403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You said that there is no way to set locale in OpenCMIS. So these lines are not supposed to work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;//Localization parameter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map&amp;lt;String, String&amp;gt; parameter = new HashMap&amp;lt;String, String&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameter.put(SessionParameter.LOCALE_ISO3166_COUNTRY, "FR");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameter.put(SessionParameter.LOCALE_ISO639_LANGUAGE, "fr");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameter.put(SessionParameter.LOCALE_VARIANT, ""); &amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw that this configuration may not work (&lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/MNT-10631" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/MNT-10631&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I presume that I have no more options than translating labels by myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your concern.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 14:26:34 GMT</pubDate>
    <dc:creator>h_deselys</dc:creator>
    <dc:date>2014-08-05T14:26:34Z</dc:date>
    <item>
      <title>Localize label from custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290267#M243397</link>
      <description>Hello,I have tried for a moment to change the localization of my custom labels. I have a custom model defined in customModel.xml placed alfresco/extension/model/. In alfresco/extension/messages/, I have set my labels in different languages. So I have several files: custom-model.properties (default),</description>
      <pubDate>Tue, 29 Jul 2014 12:03:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290267#M243397</guid>
      <dc:creator>h_deselys</dc:creator>
      <dc:date>2014-07-29T12:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Localize label from custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290268#M243398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you want to do with these localization labels in opencmis? I'm afraid you can't get it using opencmis.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 07:49:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290268#M243398</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-07-30T07:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Localize label from custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290269#M243399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use OpenCMIS to retrieve document and their metadata. Some of my documents have custom aspects with custom properties and I want to be able to display these metadata (especially their labels) in different languages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible because I have already succeed to switch between en_US and fr_FR but only when I delete one of the two .properties in my alfresco/extension/messages. When Alfresco proposes different languages at the login page, it changes labels accordingly (even custom labels) and I want to be able to do the same in my web application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's maybe in function of the language of the server that hosts the Alfresco instance? It is possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 09:43:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290269#M243399</guid>
      <dc:creator>h_deselys</dc:creator>
      <dc:date>2014-07-30T09:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Localize label from custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290270#M243400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as I know custom model i18n messages only works in alfresco web interface(web-client and share).It did not expose to cmis,so I guess you can't get it using opencmis api,correct me if I'm wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But you can get custom properties using opencmis.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:37:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290270#M243400</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-07-30T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Localize label from custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290271#M243401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, I can retrieve custom aspects and custom properties using openCMIS thanks to Secondary Types:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CmisObject cmisObj = getCmisObject(id);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (SecondaryType sec :cmisObj.getSecondaryTypes()) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String query = sec.getQueryName();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;String displayName = sec.getDisplayName();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println("Sec Type: query = " + query + " / displayName = " + displayName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This displays:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; Sec Type: query = cm:customAspect / displayName = Aspect personnalisé &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This french traduction appears when I have only my custom-model.properties (which contains label definitions in french) in alfresco/extension/messages/.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add custom-model_en.properties, it will return:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; Sec Type: query = cm:customAspect / displayName = Custom aspect &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess that it is possible to retrieve localized label through OpenCMIS but like you suggest, it is not possible to choose the desired language via OpenCMIS, that's right?.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:27:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290271#M243401</guid>
      <dc:creator>h_deselys</dc:creator>
      <dc:date>2014-07-30T15:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Localize label from custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290272#M243402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco itself support Internationalization .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In alfresco web interface(share/webclient),alfresco try to get browser language preference settings first&amp;nbsp; and use it as locale.If no language preference is detected,then alfresco use the server locale as default locale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since there is no way in opencmis to set locale ,alfresco will always use the server locale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess your server default locale is en,so when you add custom-model_en.properties,it matches your server locale and override the default i18n properties(custom-model.properties)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 13:48:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290272#M243402</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-07-31T13:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Localize label from custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290273#M243403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You said that there is no way to set locale in OpenCMIS. So these lines are not supposed to work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;//Localization parameter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map&amp;lt;String, String&amp;gt; parameter = new HashMap&amp;lt;String, String&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameter.put(SessionParameter.LOCALE_ISO3166_COUNTRY, "FR");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameter.put(SessionParameter.LOCALE_ISO639_LANGUAGE, "fr");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameter.put(SessionParameter.LOCALE_VARIANT, ""); &amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw that this configuration may not work (&lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/MNT-10631" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/MNT-10631&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I presume that I have no more options than translating labels by myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your concern.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 14:26:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290273#M243403</guid>
      <dc:creator>h_deselys</dc:creator>
      <dc:date>2014-08-05T14:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Localize label from custom model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290274#M243404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes ,I guess there is no way to set locale in OpenCMIS in current version ,it will use alfresco server's locale.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 14:45:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/localize-label-from-custom-model/m-p/290274#M243404</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-08-05T14:45:42Z</dc:date>
    </item>
  </channel>
</rss>

