struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From St├ęphane Josephy <nou...@pro.tiscali.be>
Subject Problem rendering internationalized messages
Date Thu, 30 Jun 2005 09:14:53 GMT
Hi everyone,

Just crashed onto this site, seems all nice and useful, let's see if you can do
something for me (I'm a young Struts padawan :-) )

I'm working in a 3-legal-languages-country, so localization is a must.

I have messageResouces.properties declared in 3 locales, and some message like
this in all 3 .properties files:

main.request=You have requested an {0}

where arg0 is to be replaced by another localized message (let's say the user
can request an apple or an orange, and it has to be localized too); I don't want
to make a fusioned message like:

data.general.orange=You have requested an apple
data.general.apple=You have requested an orange

because there are just too much combinations.

I'm trying this, inside logic tags: 
<bean:message key="main.request" locale="userLocale" arg0="<bean:message
key="main.request.orange" locale="userLocale"/>" />

but as you can guess, it doesn't work, so I'm trying to figure out a clean way
to pass a localized argument to the bean:message tag.

Can you point me to the right way?  

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message