Paket | mx.resources |
Klass | public class Locale |
Arv | Locale Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
"en_US_MAC"
into its three parts: a language code, a country code, and a variant.
The localization APIs in the IResourceManager and IResourceBundle interfaces use locale Strings rather than Locale instances, so this class is seldom used in an application.
Relaterade API-element
Publika egenskaper
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
country : String [skrivskyddad]
The country code of this Locale instance. | Locale | ||
language : String [skrivskyddad]
The language code of this Locale instance. | Locale | ||
variant : String [skrivskyddad]
The variant part of this Locale instance. | Locale |
Publika metoder
Metod | Definieras med | ||
---|---|---|---|
Constructor. | Locale | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returns the locale String that was used to construct
this Locale instance. | Locale | ||
Returnerar det angivna objektets primitiva värde. | Object |
Egenskapsdetaljer
country | egenskap |
country:String
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The country code of this Locale instance. [Read-Only]
var locale:Locale = new Locale("en_US_MAC"); trace(locale.country); // outputs "US"
Implementering
public function get country():String
language | egenskap |
language:String
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The language code of this Locale instance. [Read-Only]
var locale:Locale = new Locale("en_US_MAC"); trace(locale.language); // outputs "en"
Implementering
public function get language():String
variant | egenskap |
variant:String
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The variant part of this Locale instance. [Read-Only]
var locale:Locale = new Locale("en_US_MAC"); trace(locale.variant); // outputs "MAC"
Implementering
public function get variant():String
Konstruktordetaljer
Locale | () | Konstruktor |
public function Locale(localeString:String)
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
ParametrarlocaleString:String — A 1-, 2-, or 3-part locale String,
such as "en" , "en_US" , or "en_US_MAC" .
The parts are separated by underscore characters.
The first part is a two-letter lowercase language code
as defined by ISO-639, such as "en" for English.
The second part is a two-letter uppercase country code
as defined by ISO-3166, such as "US" for the United States.
The third part is a variant String, which can be used
to optionally distinguish multiple locales for the same language and country.
It is sometimes used to indicate the operating system
that the locale should be used with, such as "MAC" , "WIN" , or "UNIX" .
|
Metoddetaljer
toString | () | metod |
public function toString():String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the locale String that was used to construct this Locale instance. For example:
var locale:Locale = new Locale("en_US_MAC"); trace(locale.toString()); // outputs "en_US_MAC"Returnerar
String — Returns the locale String that was used to
construct this Locale instance.
|
Tue Jun 12 2018, 01:40 PM Z