<?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: Extension Point to change a label in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324808#M11809</link>
    <description>&lt;P&gt;I updated my answer with respect to the &lt;CODE&gt;&amp;amp;lt;require&amp;amp;gt;&lt;/CODE&gt; part. Also note that the order of deployment of messages properties files is controlled by the bundle fragment, not a single extension component inside a bundle.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2014 18:57:42 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2014-08-22T18:57:42Z</dc:date>
    <item>
      <title>Extension Point to change a label</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324803#M11804</link>
      <description>&lt;P&gt;I'm just getting started with Nuxeo development and am looking now at working with Extension Points [Nuxeo 5.9.5 with Studio].&lt;/P&gt;
&lt;P&gt;The blog posting &lt;A href="http://blogs.nuxeo.com/development/2012/07/qa-friday-overriding-templates-extension-point-nuxeo/"&gt;here&lt;/A&gt; seemed like a good place to start.
I decided to do a similar exercise where the goal is to change the label on the Workspace/Manage tab for 'Local configuration'.  Change it to 'New Local Configuration'.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Original.png" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;I located the Local Configuration tab (&lt;CODE&gt;TAB_LOCAL_CONFIGURATION&lt;/CODE&gt;) &lt;A href="http://explorer.nuxeo.org/nuxeo/site/distribution/Nuxeo%20Platform-5.6/viewContribution/org.nuxeo.ecm.platform.actions--actions"&gt;here&lt;/A&gt;.  It comes from the nuxeo-platform-webapp-core-5.6.jar file.&lt;/P&gt;
&lt;P&gt;When I look in that jar file, I see in the Manifest.Mf the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Bundle-SymbolicName: org.nuxeo.ecm.webapp.core
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Based on that, I created the following XML Extension in Studio:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="org.nuxeo.sample.action.contrib.config.override"&amp;gt;
  &amp;lt;require&amp;gt;org.nuxeo.ecm.webapp.core&amp;lt;/require&amp;gt;
  &amp;lt;extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService"&amp;gt;
    &amp;lt;documentation&amp;gt;
      Override the TAB_LOCAL_CONFIGURATION action to change its label.
    &amp;lt;/documentation&amp;gt;
    &amp;lt;action id="TAB_LOCAL_CONFIGURATION" label="new.tab.local.configuration" /&amp;gt;
  &amp;lt;/extension&amp;gt;
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Studio1.png" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;Here I defined a new label called &lt;CODE&gt;new.tab.local.configuration&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;I wasn't sure where to put this new string.
I tried a few things, but the most reasonable seemed to reference it from Studio as a Resource.&lt;/P&gt;
&lt;P&gt;So, I created a new file called override.properties containing the following one line:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;new.tab.local.configuration=New Local Configuration
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And then uploaded that file as an I18 resource:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Studio2.png" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;But after doing an Update and even then restarting the server manually, I don't see that the string has changed.&lt;/P&gt;
&lt;P&gt;On the server, I see that the custom jar file has been updated to include the new properties file in the directory data\i18n and I also see the file in the jar file called extensions.xml has the XML Extension that I configured within Studio.&lt;/P&gt;
&lt;P&gt;Is there something else that I need to do, or something that I've done wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 01:22:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324803#M11804</guid>
      <dc:creator>dweisinger</dc:creator>
      <dc:date>2014-08-21T01:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Point to change a label</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324804#M11805</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When you want to change a label on your application, you have to upload a .properties file as you did but make sure to name it "messages_[COUNTRY].properties". The file name will not be recognized if it is not properly formatted. You will find the related documentation here:  &lt;A href="http://doc.nuxeo.com/x/jAM7" target="test_blank"&gt;http://doc.nuxeo.com/x/jAM7&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Also, on your XML Extension point I noticed that you put a &lt;COMPONENT&gt; tag, that's why your contribution it's not recognized. Your extension point has to start with an &lt;EXTENSION&gt; element and not &lt;COMPONENT&gt;. For assistance you can have a look to this documentation: &lt;A href="http://doc.nuxeo.com/x/iw7F" target="test_blank"&gt;http://doc.nuxeo.com/x/iw7F&lt;/A&gt;.&lt;/COMPONENT&gt;&lt;/EXTENSION&gt;&lt;/COMPONENT&gt;&lt;/P&gt;
&lt;P&gt;Manon&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 11:07:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324804#M11805</guid>
      <dc:creator>Manon_Lumeau</dc:creator>
      <dc:date>2014-08-21T11:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Point to change a label</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324805#M11806</link>
      <description>&lt;P&gt;Also note that you must not do a &lt;CODE&gt;&amp;lt;require&amp;gt;&lt;/CODE&gt; of a bundle's name, but of a Nuxeo component name (the one at the top of the XML file). As mentioned in the Explorer page you linked for the platform actions, in this case it's &lt;CODE&gt;org.nuxeo.ecm.platform.actions&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;The blog article you mention is talking about a &lt;CODE&gt;&amp;lt;require&amp;gt;&lt;/CODE&gt; in the context of a &lt;CODE&gt;deployment-fragment.xml&lt;/CODE&gt;, which is a different thing as it controls the order of execution of whole bundles' deployment fragments. This has nothing to do with the order in which components are deployed.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 15:33:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324805#M11806</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-08-21T15:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Point to change a label</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324806#M11807</link>
      <description>&lt;P&gt;Thanks Florent and Manon.  After changing the &lt;CODE&gt;&amp;lt;require&amp;gt;&lt;/CODE&gt;, it then identifies the tab that I want to override.&lt;/P&gt;
&lt;P&gt;But the instructions in the &lt;A href="http://blogs.nuxeo.com/development/2012/07/qa-friday-overriding-templates-extension-point-nuxeo/"&gt;blog article&lt;/A&gt; say the following:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Override.png" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;I must be misunderstanding this -- it seems not to be correct, or is this explanation referring to a configuration made without Studio?  I was using the Bundle-SymbolicName from the jar file.&lt;/P&gt;
&lt;P&gt;I've changed the XML Extension now look like this:
&lt;IMG src="https://connect.hyland.com/upfiles/Extension2.png" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;And within Nuxeo DM, I now see a change to the tab, but it isn't picking up the custom string:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/ManageTab.png" alt="alt text" /&gt;&lt;/P&gt;
&lt;P&gt;Based on Manon's suggestion, I then renamed my properties file to be "&lt;CODE&gt;messages_en_US.properties&lt;/CODE&gt;".  That seems to have fixed it.  Yay!  It appears that I must name my strings file "&lt;CODE&gt;messages*.properties&lt;/CODE&gt;".  I had thought that it would pick up any properties file.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://connect.hyland.com/upfiles/Final_1.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 17:18:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324806#M11807</guid>
      <dc:creator>dweisinger</dc:creator>
      <dc:date>2014-08-21T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Point to change a label</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324807#M11808</link>
      <description>&lt;P&gt;Please don't add as answers things that are not answers, this is not a forum. You should update your existing question or add a comment.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2014 18:54:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324807#M11808</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-08-22T18:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extension Point to change a label</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324808#M11809</link>
      <description>&lt;P&gt;I updated my answer with respect to the &lt;CODE&gt;&amp;amp;lt;require&amp;amp;gt;&lt;/CODE&gt; part. Also note that the order of deployment of messages properties files is controlled by the bundle fragment, not a single extension component inside a bundle.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2014 18:57:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/extension-point-to-change-a-label/m-p/324808#M11809</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-08-22T18:57:42Z</dc:date>
    </item>
  </channel>
</rss>

