Package wt.util
Class LocaleUtilities
java.lang.Object
wt.util.LocaleUtilities
LocaleUtilities provides utility methods for working with Locales.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalemakeLocale(String locale) Construct a Locale instance for the locale String.
-
Method Details
-
makeLocale
Construct a Locale instance for the locale String.
Supported API: trueExample Usage: LocaleUtilities.makeLocale( "fr" ) // returns fr Locale LocaleUtilities.makeLocale( "fr_CA" ) // returns fr_CA Locale LocaleUtilities.makeLocale( "zh_Hant_TW" ) // returns zh_TW_#Hant Locale- Parameters:
locale- - the String representation of a Locale- Returns:
- A Locale for the locale String.
-