You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris Smith <ch...@b-i-s.co.uk> on 2001/02/09 14:48:17 UTC

Locale specific text in options tag

I want to be able to display locale specific messages within an options 
tag, i.e. from  ApplicationResources.properties.  I am currently using 
the collection, property and labelProperty attributes, which is fine for 
one language.

What would be the best way to do this?  One way would be to have a 
different collection for each locale and bring the appropriate one into 
scope, but I think that's a bit messy.  Alternatively, we could add 
another attribute to the options tag so we have messageKeyProperty as 
well as labelProperty.  Comments?

The html tags seem to be a bit ignorant of locales.  Is there something 
I'm missing or do they just need a bit more work?

I'll add messageKeyProperty and post it back if this is the right way to 
go.

Chris Smith