public class LocaleIDs extends Object
| Constructor and Description |
|---|
LocaleIDs() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCurrentCountryID(String oldID) |
static String |
getCurrentLanguageID(String oldID) |
static String |
getISO3Country(String country)
Returns a three-letter abbreviation for the provided country.
|
static String |
getISO3Language(String language)
Returns a three-letter abbreviation for the language.
|
static String[] |
getISOCountries()
Returns a list of all 2-letter country codes defined in ISO 3166.
|
static String[] |
getISOLanguages()
Returns a list of all 2-letter language codes defined in ISO 639
plus additional 3-letter codes determined to be useful for locale generation as
defined by Unicode CLDR.
|
static String |
threeToTwoLetterLanguage(String lang) |
static String |
threeToTwoLetterRegion(String region) |
public static String[] getISOCountries()
public static String[] getISOLanguages()
public static String getISO3Country(String country)
MissingResourceException - Throws MissingResourceException if the
three-letter country abbreviation is not available for this locale.public static String getISO3Language(String language)
ftp://dkuug.dk/i18n/iso-639-2.txtMissingResourceException - Throws MissingResourceException if the
three-letter language abbreviation is not available for this locale.