nsIStringBundleService

Methods

createBundle(aURLSpec)

createExtensibleBundle(aRegistryKey)

formatStatusMessage(aStatus, 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 ('\n') characters.

Returns

the formatted message

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