availableLocales:Array [read-write]Implementation
public function get availableLocales():Array
public function set availableLocales(value:Array):void
defaultLocale:* [read-write]
This property can be used as the source for data binding.
Implementation
public function get defaultLocale():*
public function set defaultLocale(value:*):void
rootURL:String [read-write]
The URL that the LocaleManager should use when computing relative URLs of Locales to be loaded.
The relative URL is computed automatically based on this value.
If not set explicitly _rootURL is automatically set to the location of the SWF running this application.
Implementation
public function get rootURL():String
public function set rootURL(value:String):void
public function LocaleManager()
Create a Locale Manager instance.
If this is the first instance it will also become the global LM.
public function addLocale(locale:*):void
Adds locale to the current application
Parameters
| locale:* — - a locale object
|
public static function getLocale(name:* = null):LocaleParameters
Returns
public function getLocaleArray(key:String):Array
Get a localized array from the current default locale
Parameters
Returns
| Array — The localized value
|
public function getLocaleBoolean(key:String):Boolean
Get a localized boolean from the current default locale
Parameters
Returns
| Boolean — The localized value
|
public function getLocaleData(locale:Locale = null):LocaleData
Gets the localeData object for the given locale
Parameters
| locale:Locale (default = null) — - the id or name of a locale (id=en_US, name=en-US)
|
Returns
public function getLocaleInt(key:String):int
Get a localized int from the current default locale
Parameters
Returns
| int — The localized value
|
public static function getLocaleManager():LocaleManager
Returns the static instance of the LocaleManager
Returns
public function getLocaleNumber(key:String):Number
Get a localized number from the current default locale
Parameters
Returns
| Number — The localized value
|
public function getLocaleString(key:String):String
Get a localized string from the current default locale
Parameters
Returns
| String — The localized value
|
public function startLoader():void
Restarts the locale loader if it had stopped on an error