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 :
Internationalization