Helper classes for internationalization of the messages for static bindings
Helper classes for creation of resource bundles
Bases: vmware.vapi.message.MessageBundle
Class for creating resource bundles using dictionary of messages
Initialize DictionaryResourceBundle
Parameters: | msgs (dict) – Message bundle |
---|
Bases: vmware.vapi.message.MessageBundle
Class for creating resource bundles using list of files that contain messages
Initialize FileMessageBundle
Parameters: | message_files (list of str or str) – List of message files to be processed. Each element in the list should be a fully qualified file path. |
---|
Bases: vmware.vapi.message.MessageBundle
Class for creating resource bundles using property files in the distributable. i.e. egg or zip file.
Initialize PropertiesResourceBundle
Parameters: | property_files (list of tuple or tuple) – List of property files to be processed. The tuple should be of the form (package, resource_name). For ex: If a file named runtime.properties is present in vmware.vapi package, the tuple to be passed is (‘vmware.vapi’, ‘runtime.properties’) |
---|
Constants for localization
Helper classes for formatting the message for localization
Bases: vmware.vapi.message.MessageFormatter
Format the string
Format the string
Parameters: |
|
---|---|
Return type: | str |
Returns: | Localized message |
Helper class for internationalization of the runtime messages
Default message factory. Load the runtime message bundle from the egg file
Return type: | vmware.vapi.message.MessageFactory |
---|---|
Returns: | Message factory class for the runtime |