Packageorg.spicefactory.parsley.flash.resources
Interfacepublic interface ResourceBundle

A single message bundle containing localized messages.



Public Properties
 PropertyDefined By
  cacheable : Boolean
Indicates whether this bundle caches messages.
ResourceBundle
  id : String
[read-only] The id of the bundle.
ResourceBundle
Public Methods
 MethodDefined 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
Property Detail
cacheableproperty
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.


Implementation
    public function get cacheable():Boolean
    public function set cacheable(value:Boolean):void
idproperty 
id:String  [read-only]

The id of the bundle.


Implementation
    public function get id():String
Method Detail
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):String

Returns a localized message for the specified key.

Parameters

messageKey:String — the key of the message
 
params:Array — optional parameters for parameterized messages

Returns
String — the localized message for the specified key with all parameters applied