Essential Points

The following summarizes the most important points described in this chapter:

  • Almost any feature of a program might need to be localized. This is not limited to messages and other UI elements, but often includes algorithms. Common examples of algorithms that need localization are taxation rules, and dictionary sorting orders.

  • The java.util.ResourceBundle class provides a flexible way of organizing localizable objects in containers. An automatic mechanism is provided that can select the best-match container for a given locale.

  • Resource bundles can store objects of any class, including strings, and also including objects that encapsulate behavior.

  • The locale used by the resource bundle is typically taken from the environment.

  • A Properties ...

Get Sun Certified Enterprise Architect for J2EE™ Technology Study Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.