Thanks for your help guys.  I think I have in now.

ActionName_{locale}.properties should be picked up automatically if my
action extends ActionSupport.  

This was tough to find on the wiki.  Could a blub about this be added to
the converting from struts page?  


Also,just to confirm,  webwork.custom.properties is NOT intented to be
used like? 
-->
   <message-resources parameter="ApplicationResources"
key="org.apache.struts.action.MESSAGE" />
 as in a struts-config


Matt Payne

On Tue, 2004-01-13 at 14:24, Matthew Payne wrote:
> 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

Reply via email to