Pakket | mx.resources |
Klasse | public class Locale |
Overerving | Locale Object |
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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.
Verwante API-elementen
Openbare eigenschappen
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
country : String [alleen-lezen]
The country code of this Locale instance. | Locale | ||
language : String [alleen-lezen]
The language code of this Locale instance. | Locale | ||
variant : String [alleen-lezen]
The variant part of this Locale instance. | Locale |
Openbare methoden
Methode | Gedefinieerd door | ||
---|---|---|---|
Constructor. | Locale | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Returns the locale String that was used to construct
this Locale instance. | Locale | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
Eigenschapdetails
country | eigenschap |
country:String
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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"
Implementatie
public function get country():String
language | eigenschap |
language:String
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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"
Implementatie
public function get language():String
variant | eigenschap |
variant:String
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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"
Implementatie
public function get variant():String
Constructordetails
Locale | () | Constructor |
public function Locale(localeString:String)
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Constructor.
ParameterslocaleString: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" .
|
Methodedetails
toString | () | methode |
public function toString():String
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | 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"Geretourneerde waarde
String — Returns the locale String that was used to
construct this Locale instance.
|
Wed Jun 13 2018, 11:42 AM Z