<?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: Override resource message of the default ACS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91245#M27148</link>
    <description>&lt;P&gt;First of all, I've always seen the resource labels list without the .properties :&lt;/P&gt;&lt;PRE&gt;&amp;lt;property name="labels"&amp;gt;
    &amp;lt;list&amp;gt;
        &amp;lt;!-- Bootstrap Resource Bundles for the content model types, aspects, properties etc --&amp;gt;
        &amp;lt;value&amp;gt;alfresco/module/${project.artifactId}/messages/invitation-service&amp;lt;/value&amp;gt;
    &amp;lt;/list&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;But looking at alfresco-repository, there's a file invitation-service-context.xml:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/invitation-service-context.xml" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/invitation-service-context.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here, there's a bean definition to take the messages from a path:&lt;/P&gt;&lt;PRE&gt;&amp;lt;bean id="invitationResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent"&amp;gt;
    	&amp;lt;property name="resourceBundles"&amp;gt;
    		&amp;lt;list&amp;gt;
    			&amp;lt;value&amp;gt;alfresco.messages.invitation-service&amp;lt;/value&amp;gt;
    		&amp;lt;/list&amp;gt;
    	&amp;lt;/property&amp;gt;
   &amp;lt;/bean&amp;gt;&lt;/PRE&gt;&lt;P&gt;I think you could override this bean in your bootstrap-context.xml file, and point the location of this invitation-service.properties file to your custom location.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 19:07:22 GMT</pubDate>
    <dc:creator>narkuss</dc:creator>
    <dc:date>2019-12-20T19:07:22Z</dc:date>
    <item>
      <title>Override resource message of the default ACS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91242#M27145</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is it possible to override the resource file "invitation-service.properties" from my plugin (amp)?&lt;/P&gt;&lt;P&gt;It is used when a user is invited to a library and I want to do changes in the body of the message and support more languages&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jamil&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 19:44:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91242#M27145</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2019-12-16T19:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Override resource message of the default ACS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91243#M27146</link>
      <description>&lt;P&gt;Can you just change the file and update the information appropriately?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;# InviteSender messages
invitation.invitesender.email.subject=Alfresco {0}: You have been invited to join the {1} site
invitation.invitesender.email.role.SiteManager=Site Manager
invitation.invitesender.email.role.SiteCollaborator=Site Collaborator
invitation.invitesender.email.role.SiteContributor=Site Contributor
invitation.invitesender.email.role.SiteConsumer=Site Consumer&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:47:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91243#M27146</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2019-12-20T15:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Override resource message of the default ACS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91244#M27147</link>
      <description>&lt;P&gt;The file is embeded inside the&amp;nbsp;alfresco-repository-6.1.jar. How I can change it and preserve the auto update of ACS?&lt;/P&gt;&lt;P&gt;I tried to add the properties to my amp and define the new path inside the boostrap-context.xml but nothing changed and ACS keeps using the file from the repository jar&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;property &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;="labels"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;list&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;        &lt;SPAN&gt;&amp;lt;!-- Bootstrap Resource Bundles for the content model types, aspects, properties etc --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;        &lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;alfresco/module/${project.artifactId}/messages/invitation-service.properties&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;list&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;property&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;Jamil&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 16:00:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91244#M27147</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2019-12-20T16:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Override resource message of the default ACS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91245#M27148</link>
      <description>&lt;P&gt;First of all, I've always seen the resource labels list without the .properties :&lt;/P&gt;&lt;PRE&gt;&amp;lt;property name="labels"&amp;gt;
    &amp;lt;list&amp;gt;
        &amp;lt;!-- Bootstrap Resource Bundles for the content model types, aspects, properties etc --&amp;gt;
        &amp;lt;value&amp;gt;alfresco/module/${project.artifactId}/messages/invitation-service&amp;lt;/value&amp;gt;
    &amp;lt;/list&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;But looking at alfresco-repository, there's a file invitation-service-context.xml:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/invitation-service-context.xml" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/invitation-service-context.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here, there's a bean definition to take the messages from a path:&lt;/P&gt;&lt;PRE&gt;&amp;lt;bean id="invitationResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent"&amp;gt;
    	&amp;lt;property name="resourceBundles"&amp;gt;
    		&amp;lt;list&amp;gt;
    			&amp;lt;value&amp;gt;alfresco.messages.invitation-service&amp;lt;/value&amp;gt;
    		&amp;lt;/list&amp;gt;
    	&amp;lt;/property&amp;gt;
   &amp;lt;/bean&amp;gt;&lt;/PRE&gt;&lt;P&gt;I think you could override this bean in your bootstrap-context.xml file, and point the location of this invitation-service.properties file to your custom location.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 19:07:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91245#M27148</guid>
      <dc:creator>narkuss</dc:creator>
      <dc:date>2019-12-20T19:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Override resource message of the default ACS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91246#M27149</link>
      <description>&lt;P&gt;As mentioned by&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://hub.alfresco.com/t5/user/viewprofilepage/user-id/2080" target="_self" rel="nofollow noopener noreferrer"&gt;jljwoznica &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;You should not worry about overriding the file at all. You can simply override the keys/values in your custom property file in your custom module. Using the same key would simply replace the ootb value for the key with the value you have conigured.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;If you want to change the OOTB property from &lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/messages/invitation-service.properties" target="_self" rel="nofollow noopener noreferrer"&gt;invitation-service.properties&lt;/A&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;invitation.invitesender.email.subject=Alfresco {0}: You have been invited to join the {1} site
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;you can simply override the property in your property file which is in your custom amp. for example if you have "your-module-messages.properties" file in your custom module. you can add the above given key in your custom file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;invitation.invitesender.email.subject= Your Project {0}: You have been invited to join the {1} site, Please use the link.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;And your custom property file would be configured like:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;bean id="mycustom.module.resources" class="org.alfresco.i18n.ResourceBundleBootstrapComponent"&amp;gt;&lt;BR /&gt;  &amp;lt;property name="resourceBundles"&amp;gt;&lt;BR /&gt;   &amp;lt;list&amp;gt;&lt;BR /&gt;     &amp;lt;value&amp;gt;alfresco/module/${project.artifactId}/messages/&lt;FONT color="#FF0000"&gt;your-module-messages&lt;/FONT&gt;&amp;lt;/value&amp;gt;&lt;BR /&gt;   &amp;lt;/list&amp;gt;&lt;BR /&gt;  &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Dec 2019 19:11:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91246#M27149</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-12-20T19:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Override resource message of the default ACS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91247#M27150</link>
      <description>&lt;P&gt;It works. Thank you&lt;/P&gt;&lt;P&gt;One more question please&lt;/P&gt;&lt;P&gt;When the other _xx properties version will be used by ACS? I have always the english default version used&lt;/P&gt;&lt;P&gt;Changing the language on the client Share is working well but on the server (ACS) how it works? (email templates, properties etc..)&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Jamil&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 22:13:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91247#M27150</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2019-12-20T22:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Override resource message of the default ACS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91248#M27151</link>
      <description>&lt;P&gt;You can very well create localized properties. e.g.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;your-module-messages_en.properties&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;your-module-messages_es.properties&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;your-module-messages_fr.properties&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;your-module-messages_de.properties&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;your-module-messages_it.properties&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;your-module-messages_ja.properties&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...... etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All you need to do is to keep the localized values for the keys you are using.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;E.g. for spanish version of properties file: "your-module-messages_es.properties"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Key will be same but value would be in spanish.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;invitation.invitesender.email.subject= Su proyecto {0}: ha sido invitado a unirse al sitio {1}. Utilice el enlace.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Same way you can use the same key for other versions of properties files.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 17:36:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/override-resource-message-of-the-default-acs/m-p/91248#M27151</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-12-24T17:36:29Z</dc:date>
    </item>
  </channel>
</rss>

