Previous | Next | Trail Map | Internationalization | A Quick Example

How We Internationalized the Sample Program

If you take a look at the internationalized source code, you'll notice that the hardcoded English messages have been removed. Because the messages are no longer hardcoded, and because the language code is specified at runtime, the same executable can be distributed worldwide. No recompilation is required for localization. Our program has been internationalized.

You may be wondering what happened to the text of the messages, or what we mean by language and country codes. Don't worry. We'll explain these concepts as we step through the process of internationalizing the sample program:

Creating the Properties Files

Defining the Locale

Creating a ResourceBundle

Fetching the Text from the ResourceBundle


Previous | Next | Trail Map | Internationalization | A Quick Example