AnsweredAssumed Answered

AMP with custom Bundle on Enterprise 2.1

Question asked by d.segato on Nov 6, 2008
Latest reply on Apr 22, 2009 by pmahoney
Here:
http://wiki.alfresco.com/wiki/Adding_Custom_I18N_Strings

it say:
"When we refer to I18N strings in configuration files or programtically via the Application.getMessage() call the standard webclient.properties and your custom webclient.properties (if present) are loaded. "

after searching a lot i've found this:
https://issues.alfresco.com/jira/browse/AWC-1149

and it's associated forum topic:
http://forums.alfresco.com/en/viewtopic.php?t=5473

it say that to register a custom bundle I should put this in the module-context.xml

   <bean id="bootstrapExtraBundlesBean" class="org.alfresco.web.app.ResourceBundleBootstrap">
     <property name="resourceBundles">
     <list>
     <value>alfresco.messages.my-extra-bundle</value>
     <value>alfresco.messages.my-other-extra-bundle</value>
     </list>
     </property>
   </bean>

Probably it work on 2.2
but it doesn't on 2.1

I've found this class:
org.alfresco.i18n.ResourceBundleBootstrapComponent
on Alfresco 2.1 Enterprise

it don't give error at bootstrap but it doesn't resolve my messages in the custom bundle


====EDIT====
Since i got no reply here I give some more info I found out myself.
* There's NO way on Alfresco 2.1 to put custom webclient.properties inside the module directory or in some custom path.¹
* Since Alfresco 2.2 you CAN do it as described above

that's all..
I only confirmed what i said up there.

<sarcastic>
thanks for the support
</sarcastic>

[¹] Note: on 2.1 you CAN use custom bundles as long as you are using them in your java classes and jsp! But you CAN'T use them with alfresco configuration files, like for defining localized strings for wizards steps for example. Or in some action definition.

Outcomes