<?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: Problems with internationalization in &amp;quot;user_preferences.xhtml&amp;quot; view in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313672#M673</link>
    <description>&lt;P&gt;Hi, I edited my question&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2013 14:47:25 GMT</pubDate>
    <dc:creator>geekonspace</dc:creator>
    <dc:date>2013-04-25T14:47:25Z</dc:date>
    <item>
      <title>Problems with internationalization in "user_preferences.xhtml" view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313670#M671</link>
      <description>&lt;P&gt;When I select locale=English, the dropbox menu options at right is showed in spanish and when I select locale=Spanish the dropbox menu options at right is showed in English. The action button is translated correctly but  its options are not translate correctly.&lt;/P&gt;
&lt;P&gt;Attached an image&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/preferences.jpg" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;I am using nuxeo 5.6 and certainly, you do not have translation for spanish. In my plugin I did this translation and in my messages.properties file I added those lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;label.userPreferences.updateLocale=Edit Locale Settings
label.userPreferences.resetTimeZone=Reset time zone from
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and in my messages_es.properties file, I added thoses lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;label.userPreferences.updateLocale=Editar la configuración regional
label.userPreferences.resetTimeZone=Cambiar zona horaria
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Deploy fragment:&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.webapp.core&amp;lt;/require&amp;gt;
  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.lang&amp;lt;/require&amp;gt;

  &amp;lt;install&amp;gt;

    &amp;lt;unzip from="${bundle.fileName}" to="/" prefix="web"&amp;gt;
      &amp;lt;include&amp;gt;web/nuxeo.war/**&amp;lt;/include&amp;gt;
    &amp;lt;/unzip&amp;gt;
       
    &amp;lt;delete path="${bundle.fileName}.tmp" /&amp;gt;
    &amp;lt;mkdir path="${bundle.fileName}.tmp" /&amp;gt;
    &amp;lt;unzip from="${bundle.fileName}" to="${bundle.fileName}.tmp" /&amp;gt;
  
    &amp;lt;append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages_es.properties"
            to="nuxeo.war/WEB-INF/classes/messages_en.properties" addNewLine="true" /&amp;gt;
    &amp;lt;append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages_fr.properties" 
            to="nuxeo.war/WEB-INF/classes/messages_fr.properties" addNewLine="true" /&amp;gt;
    &amp;lt;append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages.properties" 
            to="nuxeo.war/WEB-INF/classes/messages.properties" addNewLine="true" /&amp;gt;
    &amp;lt;delete path="${bundle.fileName}.tmp" /&amp;gt;
 
    
  &amp;lt;/install&amp;gt;
&amp;lt;/fragment&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;another question is: where can I translate this section in the view user_preferences.xhtml?
&lt;STRONG&gt;Locale settings&lt;/STRONG&gt; Español
&lt;STRONG&gt;Time Zone Etc/UTC&lt;/STRONG&gt; - Hora Universal Coordinada&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:48:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313670#M671</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2013-04-24T20:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with internationalization in "user_preferences.xhtml" view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313671#M672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 11:31:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313671#M672</guid>
      <dc:creator>Thomas_Roger</dc:creator>
      <dc:date>2013-04-25T11:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with internationalization in "user_preferences.xhtml" view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313672#M673</link>
      <description>&lt;P&gt;Hi, I edited my question&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 14:47:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313672#M673</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2013-04-25T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with internationalization in "user_preferences.xhtml" view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313673#M674</link>
      <description>&lt;P&gt;Can you add the content of your deployment-fragment.xml file?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:27:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313673#M674</guid>
      <dc:creator>Thomas_Roger</dc:creator>
      <dc:date>2013-04-26T15:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with internationalization in "user_preferences.xhtml" view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313674#M675</link>
      <description>&lt;P&gt;done what you need&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:31:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313674#M675</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2013-04-26T15:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with internationalization in "user_preferences.xhtml" view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313675#M676</link>
      <description>&lt;P&gt;You are adding your spanish translations to the wrong file (messages_en.properties).
Here is a fixed deployment-fragment.xml:&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.webapp.core&amp;lt;/require&amp;gt;
  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.lang&amp;lt;/require&amp;gt;

  &amp;lt;install&amp;gt;

    &amp;lt;unzip from="${bundle.fileName}" to="/" prefix="web"&amp;gt;
      &amp;lt;include&amp;gt;web/nuxeo.war/**&amp;lt;/include&amp;gt;
    &amp;lt;/unzip&amp;gt;

    &amp;lt;delete path="${bundle.fileName}.tmp" /&amp;gt;
    &amp;lt;mkdir path="${bundle.fileName}.tmp" /&amp;gt;
    &amp;lt;unzip from="${bundle.fileName}" to="${bundle.fileName}.tmp" /&amp;gt;

    &amp;lt;append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages_es.properties"
            to="nuxeo.war/WEB-INF/classes/messages_es.properties" addNewLine="true" /&amp;gt;
    &amp;lt;append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages_fr.properties" 
            to="nuxeo.war/WEB-INF/classes/messages_fr.properties" addNewLine="true" /&amp;gt;
    &amp;lt;append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages.properties" 
            to="nuxeo.war/WEB-INF/classes/messages.properties" addNewLine="true" /&amp;gt;
    &amp;lt;delete path="${bundle.fileName}.tmp" /&amp;gt;

  &amp;lt;/install&amp;gt;
&amp;lt;/fragment&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The labels you are looking for to translate "Locale settings" and "Time Zone" are:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;label.userpreferences.locale=Locale settings
label.userpreferences.timezone=Time Zone
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The labels for the user preferences / user profile can be found in this &lt;A href="https://github.com/nuxeo/nuxeo-user-center/blob/5.6.0/nuxeo-user-profile/src/main/resources/OSGI-INF/l10n/messages_en.properties"&gt;file&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:04:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313675#M676</guid>
      <dc:creator>Thomas_Roger</dc:creator>
      <dc:date>2013-04-26T16:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with internationalization in "user_preferences.xhtml" view</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313676#M677</link>
      <description>&lt;P&gt;ohh thanks, and I found the other labels to translate&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:10:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problems-with-internationalization-in-quot-user-preferences/m-p/313676#M677</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2013-04-26T16:10:30Z</dc:date>
    </item>
  </channel>
</rss>

