[OS-webwork] i18n question

2004-01-13 Thread Matthew Payne
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

Re: [OS-webwork] i18n question

2004-01-13 Thread Hani Suleiman
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

RE: [OS-webwork] i18n question

2004-01-13 Thread Jason Carreira
Which version of WebWork are you using? -Original Message- From: Matthew Payne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 1:37 PM To: [EMAIL PROTECTED] Subject: [OS-webwork] i18n question Can the property webwork.custom.properties=ApplicationResources be set

RE: [OS-webwork] i18n question

2004-01-13 Thread Matthew Payne
WW2 beta2 (November release) Matt On Tue, 2004-01-13 at 13:49, Jason Carreira wrote: Which version of WebWork are you using? -Original Message- From: Matthew Payne [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 1:37 PM To: [EMAIL PROTECTED] Subject: [OS-webwork

Re: [OS-webwork] i18n question

2004-01-13 Thread Matthew Payne
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

RE: [OS-webwork] i18n question

2004-01-13 Thread Jason Carreira
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

Re: [OS-webwork] i18n question

2004-01-13 Thread Matthew Payne
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,

RE: [OS-webwork] i18n question

2004-01-13 Thread Jason Carreira
, January 13, 2004 2:55 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] i18n question 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

RE: [OS-webwork] i18n question

2004-01-13 Thread Matthew Payne
To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] i18n question 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

Re: [OS-webwork] i18n question

2004-01-13 Thread Francisco Hernandez
seems like what you need is a global resource bundle, see: http://wiki.opensymphony.com/space/Webwork2+FAQ 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.