Internationalizing a web site is easier when text messages are not stored directly in code. Java provides the ResourceBundle
mechanism for the separation of messages from Java code. A ResourceBundle
is a Dictionary of keys that map to specific text messages.
Most web sites have two types of text messages:
User messages that are displayed to site visitors.
Developer messages that are visible to developers only—for example, error logs.
To internationalize your web site, create separate ResourceBundles
for user and developer messages. Often, localization teams do not translate developer messages, so it is helpful for people who are localizing your site if you keep the two types of message separate.
The ATG Control Center also uses ResourceBundles
to store text for user interface display.
For more information, refer to Using ResourceBundles for Internationalization.