| Package | org.spicefactory.parsley.flash.resources |
| Interface | public interface ResourceBundle |
| Property | Defined By | ||
|---|---|---|---|
| cacheable : Boolean
Indicates whether this bundle caches messages. | ResourceBundle | ||
| id : String [read-only]
The id of the bundle. | ResourceBundle | ||
| Method | Defined By | ||
|---|---|---|---|
addMessages(loc:Locale, messages:Object):void
Adds messages for the specified Locale. | ResourceBundle | ||
getMessage(messageKey:String, params:Array):String
Returns a localized message for the specified key. | ResourceBundle | ||
| cacheable | property |
cacheable:Boolean
Indicates whether this bundle caches messages.
If this property is set to false all bundles will be reloaded each time
the current Locale is switched.
public function get cacheable():Boolean public function set cacheable(value:Boolean):void| id | property |
id:String [read-only] The id of the bundle.
public function get id():String| addMessages | () | method |
public function addMessages(loc:Locale, messages:Object):void
Adds messages for the specified Locale.
Parameters
loc:Locale — the Locale the specified messages belong to
| |
messages:Object — messages to add to this bundle
|
| getMessage | () | method |
public function getMessage(messageKey:String, params:Array):StringReturns a localized message for the specified key.
Parameters
messageKey:String — the key of the message
| |
params:Array — optional parameters for parameterized messages
|
String — the localized message for the specified key with all parameters applied
|