AnsweredAssumed Answered

Problem with I18N message in a jar file

Question asked by agey on Mar 12, 2013
Latest reply on Mar 12, 2013 by agey
Hi all,

I am creating an extension project of Share. I found an example extension project to create a jar file and attach it to Share. The project consists of an action link to the document menu. It displays a form to enter data for action. I use a custom.properties file to define text labels and place it into config/alfresco/messages but the labels aren't showed.

The custom.properties file in jar project is in ext-share.jar#alfresco\messages. Is there any configuration to detect that messages file? I tried to put this into custom-slingshot-application-context.xml but doesn't work:

<bean id="custom.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>alfresco.messages.custom</value>
         </list>
      </property>
</bean>


Thanks a lot in advance,

Outcomes