Try alternatives to ResourceBundle

There are some rather disturbing problems with ResourceBundle:

These are serious defects.

In addition, there are many nuisances associated with using ResourceBundles and their associated properties files:

In summary, it seems that ResourceBundle was intended originally for desktop applications and properties files, and that its design is not robust enough for easy use in the context of a web application backed by a database.

Fortunately, text translation is not a difficult task, and creating an alternative to ResourceBundle is actually fairly easy. For an example, please see the hirondelle.web4j.ui.translate package of the WEB4J tool. It uses a technique called "last second localization".

See Also :
Would you use this technique?
Yes   No   Undecided   
© 2018 Hirondelle Systems | Source Code | Contact | License | RSS
Individual code snippets can be used under this BSD license - Last updated on September 21, 2013.
Over 2,000,000 unique IPs last year - Built with WEB4J.
- In Memoriam : Bill Dirani -