nsIStringBundleService

IID:D85A17C0-AA7C-11d2-9B8C-00805F8A16D9
Inherits From:nsISupports

This interface is intended to be used as a service.

This interface is implemented by the following components:


Methods

nsIStringBundle createBundle ( char* URLSpec ) nsIStringBundle createExtensibleBundle ( char* registryKey ) void flushBundles ( ) PRUnichar* formatStatusMessage ( nsresult status , PRUnichar* statusArg )

nsIStringBundle createBundle ( char* URLSpec )

Arguments:
URLSpec

nsIStringBundle createExtensibleBundle ( char* registryKey )

Arguments:
registryKey

void 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


PRUnichar* formatStatusMessage ( nsresult status , PRUnichar* statusArg )

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

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

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com