This page provides an overview of internationalization enhancements in Java SE Development Kit 6 (JDK):
To enable plug-in of locale sensitive data (e.g., date format
strings) and services (e.g., date formatters), some Service
Provider Interfaces (SPIs) for locale-sensitive classes in the
java.text
and java.util
packages have
been added. These SPIs make it much easier for developers to
provide support of more locales in addition to the
currently available locales in Java SE. For example, your own
implementation of BreakIterator
for Chinese could become available through the
BreakIterator.getSentenceInstance
factory in the Java
runtime.
The new java.text.Normalizer
class supports the Unicode text normalization defined in Unicode Standard
Annex #15.
The new java.net.IDN
class provides Internationalized Domain Names (IDNs) support based
on RFC 3490, 3491, 3454, and 3492.
A new Calendar
implementation has been added to
support the Japanese imperial era-based year numbering, such as
Heisei 17 for 2005 (Gregorian). An instance of this Japanese
imperial calendar can be created through the
Calendar.getInstance
factory by specifying a
Locale("ja", "JP", "JP")
. The java.text.SimpleDateFormat
class now supports calendar specific eras and date formats for
non-Gregorian calendar systems. Refer to the Supported Calendars documentation for
details.
ResourceBundle
EnhancementsThe new nested java.util.ResourceBundle.Control
class has been added to give applications more control over the
resource bundle loading process. The class defines a set of
callback methods that are invoked by the
ResourceBundle.getBundle
factory during the resource
bundle loading. Applications can override those callback methods to
change the factory method behavior.
The following locales are now available.
zh_SG
- Chinese (Simplified), Singaporeen_MT
- English, Maltaen_PH
- English, Philippinesen_SG
- English, Singaporeel_CY
- Greek, Cyprusid_ID
- Indonesian, Indonesiaga_IE
- Irish, Irelandms_MY
- Malay, Malaysiamt_MT
- Maltese, Maltapt_BR
- Portuguese, Brazilpt_PT
- Portuguese, Portugales_US
- Spanish, United StatesRefer to the Supported Locales documentation for details.
The keyboard related AWT code has been re-architected to fix various problems on key input in non-English locales for Solaris and Linux operating systems.