Public Member Functions

nsIStringBundleService Interface Reference

import "nsIStringBundle.idl";

List of all members.

Public Member Functions

nsIStringBundle createBundle (in string aURLSpec)
nsIStringBundle createExtensibleBundle (in string aRegistryKey)
wstring formatStatusMessage (in nsresult aStatus, in wstring aStatusArg)
 Formats a message string from a status code and status arguments.
void flushBundles ()
 flushes the string bundle cache - useful when the locale changes or when we need to get some extra memory back

Member Function Documentation

nsIStringBundle nsIStringBundleService::createBundle ( in string  aURLSpec  ) 
nsIStringBundle nsIStringBundleService::createExtensibleBundle ( in string  aRegistryKey  ) 
void nsIStringBundleService::flushBundles (  ) 

flushes the string bundle cache - useful when the locale changes or when we need to get some extra memory back

at some point, we might want to make this flush all the bundles, because any bundles that are floating around when the locale changes will suddenly contain bad data

wstring nsIStringBundleService::formatStatusMessage ( in nsresult  aStatus,
in wstring  aStatusArg 
)

Formats a message string from a status code and status arguments.

Parameters:
aStatus - The status code. This is mapped into a string ID and and used in the string lookup process (see nsIErrorService).
aStatusArg - The status message argument(s). Multiple arguments can be separated by newline ('
') characters.
Returns:
the formatted message

The documentation for this interface was generated from the following file: