I believe the message resource is implemented as a hashmap. The resource
is loaded into memory for each locale (when 1 or more users need it),
and so storing a relatively big amount of text this way may be unwise. 

You want to determine the locale within your view and then display or
include the alternate text that way. I would then document the other
text files as comments in the application resource file, so that it is
still the master reference to the i18n text. You might even store the
reference to an include file in the application resource and read it
back to determine the user's locale.

Yuriy Zubarev wrote:
> 
> Hello friends,
> 
> I was wondering if there is a way to store a relatively big amount of text
> (which can't be fitted in one single line) assigned to some variable in
> the ApplicationResources.properties file. This text eventually will be
> local-sensitive that's why I want to put it into the .properties file.
> 
> Thank you for your time.
> 
> Best of luck,
> Yuriy Zubarev
> 
> _______________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.ca address at http://mail.yahoo.ca

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

Reply via email to