Methods Summary |
---|
public static java.lang.String | adjustLanguageCode(java.lang.String languageCode)
String adjusted = languageCode.toLowerCase(Locale.US);
// Map new language codes to the obsolete language
// codes so the correct resource bundles will be used.
if (languageCode.equals("he")) {
adjusted = "iw";
} else if (languageCode.equals("id")) {
adjusted = "in";
} else if (languageCode.equals("yi")) {
adjusted = "ji";
}
return adjusted;
|
public static java.util.Locale | forLanguageTag(java.lang.String tag)
return ULocale.forLanguageTag(tag).toLocale();
|
public static java.lang.String | getScript(java.util.Locale locale)
return ULocale.forLocale(locale).getScript();
|
public static java.lang.String | toLanguageTag(java.util.Locale locale)
return ULocale.forLocale(locale).toLanguageTag();
|