SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 213 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"


How to create a page-specific message catalog, plus to the root one.
How an image can be changed according to the current locale.
What else can we do to make our multi-lingual web application.
??? ??? ??? ??? ???
Internationalization and Localization
[ 176 ]
Internationalization on the Java Platform
The Java platform has substantial support for internationalization. The foundation
of this support is formed by two classes??”Locale and ResourceBundle. The first
of these classes, java.util.Locale, basically defines a language, but also can be
narrowed down to a country (to distinguish, say, between British English, and
American English) or even to a variant of the language (Chinese traditional versus
Chinese simplified, as an example).
The Locale class has many useful constants that allow us to obtain a properly
configured instance of it, like Locale.ENGLISH or Locale.GERMAN. We can also use a
constructor of this class, which gives us more flexibility. For example, we can create
new Locale("en", "UK") for British English, or new Locale("de", "CH") for
Swiss German. You can find more information on the subject in Java API at
http://java.sun.com website.
The second class, ResouceBundle, represents resources that are specific to a given
Locale.


Pages:
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6