Localization and Internationalization
An Introduction with Examples in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
Locale
class
encapsulates language
(ISO 639),
a script or writing system
(ISO 15924),
a country or region
(ISO 3166),
and a variant
(IETF BCP47) like Canadian French or Swiss German
Strings_en_US.properties
Strings_fr_FR.properties
NumberFormat
class has a
static getCurrencyInstance()
class that
returns a NumberFormat
object that will
format currency information in a locale-specific way