Java Platform Localization Classes
In the Java 2 platform, java.util.Locale represents a specific geographical, political, or cultural region. The string representation of a locale consists of the international standard 2-character abbreviation for language and country and an optional variant, all separated by underscore _ characters. Examples of locale strings include fr (French), de_CH (Swiss German), and en_US_POSIX (United States English on a POSIX-compliant platform).
Locale-sensitive data is stored in a java.util.ResourceBundle. A resource bundle contains key-value pairs, where the keys uniquely identify a locale-specific object in the bundle. A resource bundle can be backed by a text file (properties resource bundle) or a class (list resource bundle) containing the pairs. A resource bundle instance is constructed by appending a locale string representation to a base name.
For more details on internationalization and localization in the Java 2 platform, see
http://java.sun.com/docs/books/tutorial/i18n/index.html
In the Web technology chapters, the Duke's Bookstore example contains resource bundles with the base name messages.BookstoreMessages for the locales en_US and es_ES. See Internationalization Tags (page 703) for information on the JSTL i18n tags.
http://java.sun.com/webservices/docs/1.3/tutorial/doc/JSTL6.html#wp63721
***** 아름다운프로님에 의해서 게시물 복사 + 카테고리변경되었습니다 (2003-12-18 16:33)
In the Java 2 platform, java.util.Locale represents a specific geographical, political, or cultural region. The string representation of a locale consists of the international standard 2-character abbreviation for language and country and an optional variant, all separated by underscore _ characters. Examples of locale strings include fr (French), de_CH (Swiss German), and en_US_POSIX (United States English on a POSIX-compliant platform).
Locale-sensitive data is stored in a java.util.ResourceBundle. A resource bundle contains key-value pairs, where the keys uniquely identify a locale-specific object in the bundle. A resource bundle can be backed by a text file (properties resource bundle) or a class (list resource bundle) containing the pairs. A resource bundle instance is constructed by appending a locale string representation to a base name.
For more details on internationalization and localization in the Java 2 platform, see
http://java.sun.com/docs/books/tutorial/i18n/index.html
In the Web technology chapters, the Duke's Bookstore example contains resource bundles with the base name messages.BookstoreMessages for the locales en_US and es_ES. See Internationalization Tags (page 703) for information on the JSTL i18n tags.
http://java.sun.com/webservices/docs/1.3/tutorial/doc/JSTL6.html#wp63721
***** 아름다운프로님에 의해서 게시물 복사 + 카테고리변경되었습니다 (2003-12-18 16:33)