nsISupports
Last changed in Gecko 1.7 Implemented by: @mozilla.org/intl/stringbundle;1. To access this service, use:
var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"]
.getService(Components.interfaces.nsIStringBundleService);
|
|
void flushBundles(); |
wstring formatStatusMessage(in nsresult aStatus, in wstring aStatusArg); |
nsIStringBundle createBundle( in string aURLSpec );
aURLSpecchrome://global/locale/global.propertiesA string bundle corresponding to the properties file. This string bundle has functions available on it.
On the return value object on you can call functions like GetStringFromName and formatStringFromName see nsIStringBundle.
nsIStringBundle createExtensibleBundle( in string aRegistryKey );
aRegistryKeyAn extensible bundle corresponding to the properties file(s).
Flushes the string bundle cache - useful when the locale changes or when we need to get some extra memory back. (Automatically called for the memory-pressure and chrome-flush-caches global observer topics.)
void flushBundles();
None.
Formats a message string from a status code and status arguments. Typically used to format a message received by a nsIProgressEventSink's onStatus method.
wstring formatStatusMessage( in nsresult aStatus, in wstring aStatusArg );
aStatusnsIErrorService).aStatusArgThe formatted message.
nsIStringBundleService: Bootstrapped Extensions :: Localization (L10n)