Folks,
At present we use a set of standard properties files with Struts 2.x to provide our I18N functionality - and for the most part, these do exactly what we need them to. However, there are occasions when it would be great to be able to have individual properties reference other properties in the resource bundle, for example:
name.first=John
name.last=Doe
name.full={name.first} {name.last}
I am aware of several extensions to java.util.Properties that provide these sorts of capabilities such as:
- eproperties: http://code.google.com/p/eproperties/
- XProperties: http://www2.sys-con.com/itsg/virtualcd/java/archives/0612/mair/index.html
I was wondering if anyone has ever attempted to integrate these somehow into Struts 2.x - is it possible to override the mechanism which handles the parsing of resource bundles?