Performing Localization

As mentioned in Using Localized Messages (page 703), data and messages in the Duke's Bookstore application have been localized for French, German, Spanish, and American English.

This section explains how to produce the localized messages as well as how to localize dynamic data and messages.

Using Localized Messages (page 703) describes how page authors access localized data from the page using the loadBundle tag.

If you are not familiar with the basics of localizing Web applications, see Chapter 22.

Creating a Resource Bundle

A ResourceBundle contains a set of localized messages. To learn how to create a ResourceBundle, see

http://java.sun.com/docs/books/tutorial/i18n/index.html

After you create the ResourceBundle, put ...

Get The J2EE™ Tutorial Second Edition 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.