<?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 Aikau internationalization (i18n) not working when loading widget as a control with form engine in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/aikau-internationalization-i18n-not-working-when-loading-widget/m-p/285191#M238321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm developing a custom page that uses the form engine javascript api to render a form. I need a custom control in this form so I'm developing it using Dojo and the new Aikau framework. Everything seems to work as expected except that internationalization messages aren't being loaded properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Debuging with firebug I managed to spot that the different message scopes defined by the widget are loaded into Alfresco.messages by a dinamically generated resource url, but my widget's scope is not there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose this is because my widget is not processed through "&amp;lt;@processJsonModel group="share"/&amp;gt;", is not instantiated by Share's webscript backend. It is loaded as part of a form and is instantiated by my control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, does this mean that the i18n loading features of Aiku can not be used in controls? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe I should build my widget in a differente way? This is how my control builds the widget:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;//&amp;lt;![CDATA[&lt;BR /&gt;require(["custom/controls/OrderedUserList"], function (OrderedUserList) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var config = {};&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;#if form.mode == "edit"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.nodeRef = "${form.arguments.itemId}";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;#if field.control.params.reorder??&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.reorder = ${field.control.params.reorder?string};&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;#if field.control.params.type??&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.type = "${field.control.params.type}";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/#if&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var orderedUserList = new OrderedUserList(config, "${fieldHtmlId}-widget");&lt;BR /&gt;});&lt;BR /&gt;//]]&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;div id="${fieldHtmlId}-widget"&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;input id="${fieldHtmlId}" type="hidden" value=""&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2014 11:16:23 GMT</pubDate>
    <dc:creator>iblanco</dc:creator>
    <dc:date>2014-07-10T11:16:23Z</dc:date>
    <item>
      <title>Aikau internationalization (i18n) not working when loading widget as a control with form engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-internationalization-i18n-not-working-when-loading-widget/m-p/285191#M238321</link>
      <description>Hello,I'm developing a custom page that uses the form engine javascript api to render a form. I need a custom control in this form so I'm developing it using Dojo and the new Aikau framework. Everything seems to work as expected except that internationalization messages aren't being loaded properly.</description>
      <pubDate>Thu, 10 Jul 2014 11:16:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-internationalization-i18n-not-working-when-loading-widget/m-p/285191#M238321</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2014-07-10T11:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aikau internationalization (i18n) not working when loading widget as a control with form engine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/aikau-internationalization-i18n-not-working-when-loading-widget/m-p/285192#M238322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can confirm that CSS resources aren't processed either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 12:10:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/aikau-internationalization-i18n-not-working-when-loading-widget/m-p/285192#M238322</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2014-07-10T12:10:41Z</dc:date>
    </item>
  </channel>
</rss>

