If you're just looking for different languages for the same set of messages, you just have different properties files like you always do for resource bundles, i.e.:
MyBundle.properties MyBundle_fr.properties MyBundle_de.properties If you're looking to add a global resource bundle, you can look here: http://wiki.opensymphony.com/space/Webwork2+FAQ For how to add a global resource bundle Jason > -----Original Message----- > From: Matthew Payne [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 13, 2004 2:25 PM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] i18n question > > > I did that. It works, in that it will produce the strings > from that file. > > I created a simple macro. > > #macro (msg $property) > $action.getText($property) > #end > > Instead of $msg.text --- (from velocity tools struts app), I > am using just #msg > > However, what if someone wants to setup somewhere else in > another language..locals...? > > How do I tell it to use a different property file? > > Matt > > > On Tue, 2004-01-13 at 13:48, Hani Suleiman wrote: > > Why not define a common subclass for all your actions, and have one > > resource file for it? If there is no resource file for a particular > > action, then webwork will look up the object heirarchy > until it finds a > > resource. > > > > Matthew Payne wrote: > > > > > Can the property webwork.custom.properties=ApplicationResources > > > be set to load language strings. > > > > > > Is there any such property for loading an external file? > > > > > > i.e. can whats the simplest way to use an existing struts > resource > > > file? (without making a file for each action) > > > > > > Thanks, > > > > > > Matthew Payne > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Perforce Software. Perforce is > > > the Fast Software Configuration Management System > offering advanced > > > branching capabilities and atomic changes on 50+ platforms. Free > > > Eval! http://www.perforce.com/perforce/loadprog.html > > > _______________________________________________ > > > Opensymphony-webwork mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Perforce Software. > Perforce is the > > Fast Software Configuration Management System offering advanced > > branching capabilities and atomic changes on 50+ platforms. > Free Eval! > > http://www.perforce.com/perforce/loadprog.html > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System > offering advanced branching capabilities and atomic changes > on 50+ platforms. Free Eval! > http://www.perforce.com/perforce/loadprog.html > > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork