User Guide
Locale (mx.lang.Locale) 731
Method summary
Modifiers Signature Description
static addDelayedInstance(i
nstance:Object,
stringID:String) :
Void
Adds the {instance, string ID} pair into the internal
array for later use.
static addXMLPath(langCode:
String, path:String)
: Void
Adds the {languageCode and languagePath} pair into
the internal array for later use.
static checkXMLStatus() :
Boolean
Returns true if the XML file is loaded; false
otherwise.
static getDefaultLang() :
String
The default language code as set in the Strings panel
dialog box or by calling the setDefaultLang()
method.
static initialize() : Void Automatically determines the language to use and
loads the XML language file.
static loadLanguageXML(xmlL
anguageCode:String,
customXmlCompleteCal
lback:Function) :
Void
Loads the specified XML language file.
static loadString(id:String
) : String
Returns the string value associated with the given
string ID in the current language.
static loadStringEx(stringI
D:String,
languageCode:String)
: String
Returns the string value associated with the given
string ID and language code.
static setDefaultLang(langC
ode:String) : Void
Sets the default language code.
static setLoadCallback(load
Callback:Function) :
Void
Sets the callback function that is called after the XML
file is loaded.
static setString(stringID:S
tring,
languageCode:String,
stringValue:String)
: Void
Sets the new string value of a given string ID and
language code.