dw.util
Class Locale
Object
dw.util.Locale
Represents a Locale supported by the system.
Properties
country  :  String  (Read Only)
The country/region code for this Locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
displayCountry  :  String  (Read Only)
A name for the Locale's country that is appropriate for display to the user, or an empty string if no country has been specified for the Locale. The display country is returned in the language defined for this locale, and not in the language of the session locale.
displayLanguage  :  String  (Read Only)
A name for the Locale's language that is appropriate for display to the user, or an empty string if no language has been specified for the Locale. The display language is returned in the language defined for this locale, and not in the language of the session locale.
displayName  :  String  (Read Only)
A name for the Locale that is appropriate for display to the user, or an empty string if no display name has been specified for the Locale. The display name is returned in the language defined for this locale, and not in the language of the session locale.
ID  :  String  (Read Only)
The String representation of the 'localeID'.

The identifier of the Locale. Contains a combination of the language and the country key, concatenated by "_", e.g. "en_US". This attribute is the primary key of the class.

ISO3Country  :  String  (Read Only)
A three-letter abbreviation for this Locale's country, or an empty string if no country has been specified for the Locale .
ISO3Language  :  String  (Read Only)
A three-letter abbreviation for this Locale's language, or an empty string if no language has been specified for the Locale.
language  :  String  (Read Only)
The language code for this Locale, which will either be the empty string or a lowercase ISO 639 code.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getCountry() : String
Returns the country/region code for this Locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
getDisplayCountry() : String
Returns a name for the Locale's country that is appropriate for display to the user, or an empty string if no country has been specified for the Locale.
getDisplayLanguage() : String
Returns a name for the Locale's language that is appropriate for display to the user, or an empty string if no language has been specified for the Locale.
getDisplayName() : String
Returns a name for the Locale that is appropriate for display to the user, or an empty string if no display name has been specified for the Locale.
getID() : String
Returns the String representation of the 'localeID'.
getISO3Country() : String
Returns a three-letter abbreviation for this Locale's country, or an empty string if no country has been specified for the Locale .
getISO3Language() : String
Returns a three-letter abbreviation for this Locale's language, or an empty string if no language has been specified for the Locale.
getLanguage() : String
Returns the language code for this Locale, which will either be the empty string or a lowercase ISO 639 code.
static getLocale(localeId : String) : Locale
Returns a Locale instance for the given localeId, or null if no suchLocale could be found.
toString() : String
Returns the String representation of the 'localeID'.
Methods inherited from class Object
Method Detail
getCountry
getCountry() : String
Returns the country/region code for this Locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
Returns:
the country/region code for this Locale, which will either be the empty string or an upercase ISO 3166 2-letter code.

getDisplayCountry
getDisplayCountry() : String
Returns a name for the Locale's country that is appropriate for display to the user, or an empty string if no country has been specified for the Locale. The display country is returned in the language defined for this locale, and not in the language of the session locale.
Returns:
a name for the Locale's country that is appropriate for display to the user, or an empty string if no country has been specified for the Locale.

getDisplayLanguage
getDisplayLanguage() : String
Returns a name for the Locale's language that is appropriate for display to the user, or an empty string if no language has been specified for the Locale. The display language is returned in the language defined for this locale, and not in the language of the session locale.
Returns:
a name for the Locale's language that is appropriate for display to the user, or an empty string if no language has been specified for the Locale.

getDisplayName
getDisplayName() : String
Returns a name for the Locale that is appropriate for display to the user, or an empty string if no display name has been specified for the Locale. The display name is returned in the language defined for this locale, and not in the language of the session locale.
Returns:
a name for the Localethat is appropriate for display to the user, or an empty string if no display name has been specified for the Locale.

getID
getID() : String
Returns the String representation of the 'localeID'.

The identifier of the Locale. Contains a combination of the language and the country key, concatenated by "_", e.g. "en_US". This attribute is the primary key of the class.

Returns:
the String representation of the 'localeID'.

getISO3Country
getISO3Country() : String
Returns a three-letter abbreviation for this Locale's country, or an empty string if no country has been specified for the Locale .
Returns:
a three-letter abbreviation for this lLocale's country, or an empty string if no country has been specified for the Locale.

getISO3Language
getISO3Language() : String
Returns a three-letter abbreviation for this Locale's language, or an empty string if no language has been specified for the Locale.
Returns:
a three-letter abbreviation for this Locale's language, or an empty string if no language has been specified for the Locale.

getLanguage
getLanguage() : String
Returns the language code for this Locale, which will either be the empty string or a lowercase ISO 639 code.
Returns:
the language code for this Locale, which will either be the empty string or a lowercase ISO 639 code.

getLocale
static getLocale(localeId : String) : Locale
Returns a Locale instance for the given localeId, or null if no suchLocale could be found.
Parameters:
localeId - the localeID of the desired Locale
Returns:
the Locale instance for the given localeId, or null if no suchLocale could be found.

toString
toString() : String
Returns the String representation of the 'localeID'. The identifier of the Locale. Contains a combination of the language and the country key, concatenated by "_", e.g. "en_US". This attribute is the primary key of the class.
Returns:
the String representation of the 'localeID'.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. By continuing to use this site you are giving us your consent to do this.