Java Reference
In-Depth Information
Solution
Specify the desired order for locale-sensitive services using the
java.locale.providers property. In the following example, the SPI and CLDR
providers are specified within the property.
java.locale.providers=SPI,CLDR
How It Works
Setting the java.locale.providers property, as of the release of Java 8, speci-
fies the search order of locale-sensitive services. This property is read upon Java
runtime startup. To set the order of services, specify the acronym(s), separated by com-
mas. The following services are available for use:
SPI : Locale-sensitive services represented by SPI (Service Provider In-
terface) providers
JRE : Locale-sensitive services in the Java runtime environment
CLDR : Provider based on the Unicode Consortium's CLDR project
HOST : Provider that reflects the user's custom settings in the underlying
operating system
Summary
Internationalization is a key to developing culturally responsive applications. It allows
for application text to be changed in an effort to adhere to the culture and language in
which the application is being used. This chapter provided some examples of how to
make use of internationalization techniques to overcome the nuances of cross-culture
development. The chapter also covered topics regarding Unicode conversions.
Search WWH ::




Custom Search