<?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: localization bug? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/localization-bug/m-p/324449#M11450</link>
    <description>&lt;P&gt;Hi Laurent,&lt;/P&gt;
&lt;P&gt;Thanks, I didn't have the requiretag properly. (I had it like this, but that didn't work)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.lang&amp;lt;/require&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But with the following it works fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.lang.ext&amp;lt;/require&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bauke Roo&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2014 08:40:32 GMT</pubDate>
    <dc:creator>Bauke_Roo</dc:creator>
    <dc:date>2014-03-04T08:40:32Z</dc:date>
    <item>
      <title>localization bug?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/localization-bug/m-p/324447#M11448</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I'm trying to append a few labels to the dutch translation.
However this does not work.&lt;/P&gt;
&lt;P&gt;This is my messages_nl.properties which I need to append:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# lines for chat

label.context.menu.chat.with=Chat
label.context.menu.call.with=Bel
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the part of my deployment-fragment.xml&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; &amp;lt;append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages_nl.properties"
                to="nuxeo.war/WEB-INF/classes/messages_nl.properties" addNewLine="true"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It does work for messages_en.properties&lt;/P&gt;
&lt;P&gt;Is this a bug?&lt;/P&gt;
&lt;P&gt;Edit: extra info, I'm using Nuxeo 5.8 with HF's installed.&lt;/P&gt;
&lt;P&gt;Thanks in advance,
Bauke Roo&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 13:57:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/localization-bug/m-p/324447#M11448</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-03-03T13:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: localization bug?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/localization-bug/m-p/324448#M11449</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Since Nuxeo 5.8, the messages files have moved from a two-letter scheme to a four-letter one. So your deployment-fragment.xml should look like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;fragment version="1"&amp;gt;
   &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.lang.ext&amp;lt;/require&amp;gt;
   &amp;lt;install&amp;gt;
     &amp;lt;append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages_nl.properties"
            to="nuxeo.war/WEB-INF/classes/messages_nl.properties" addNewLine="true"/&amp;gt;
     &amp;lt;append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages_nl.properties"
            to="nuxeo.war/WEB-INF/classes/messages_nl_NL.properties" addNewLine="true"/&amp;gt;
   &amp;lt;/install&amp;gt;
&amp;lt;/fragment&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As Anahide told me, adding the good require tag in the deployment-fragment should make sure the file you want to append text to is actually here. This is a first requirement for this to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The two letter file is used as a fallback in case the browser does not know what to do with a four letter code like nl_NL. They are both identical so you need to append your changes to both files to be consistent.&lt;/P&gt;
&lt;P&gt;As for the english file, its behavior is a little different as it's maintained by Nuxeo. But it will soon use the same behavior.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 17:03:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/localization-bug/m-p/324448#M11449</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2014-03-03T17:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: localization bug?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/localization-bug/m-p/324449#M11450</link>
      <description>&lt;P&gt;Hi Laurent,&lt;/P&gt;
&lt;P&gt;Thanks, I didn't have the requiretag properly. (I had it like this, but that didn't work)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.lang&amp;lt;/require&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But with the following it works fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.lang.ext&amp;lt;/require&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bauke Roo&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2014 08:40:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/localization-bug/m-p/324449#M11450</guid>
      <dc:creator>Bauke_Roo</dc:creator>
      <dc:date>2014-03-04T08:40:32Z</dc:date>
    </item>
  </channel>
</rss>

