WEB4J - Minimalist Java Web Application Framework

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 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 :
Internationalization
Would you use this technique?
Yes   No   Undecided   
Add your comment to this Topic :

© 2008 Hirondelle Systems | Source Code | Contact | License | Quotes | RSS
Individual code snippets can be used under this license - Last updated on September 6, 2008.
Over 98,000 visits last month - Built with WEB4J.
- In Memoriam : Bill Dirani -