cancel
Showing results for 
Search instead for 
Did you mean: 

AMP with custom Bundle on Enterprise 2.1

d_segato
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

pmahoney
Champ in-the-making
Champ in-the-making
Sadly this fix seems not to be in Labs 3.3. Has anyone out there been able to set up module specific webclient.properties so that one module does not conflit with another?