nsISupports
Last changed in Gecko 1.7 Implemented by: @mozilla.org/intl/stringbundle/text-override;1
. To create an instance, use:
var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle/text-override;1"] .getService(Components.interfaces.nsIStringBundleOverride);
custom-strings.txt
file then the service will fail to load.nsISimpleEnumerator enumerateKeysInBundle(in AUTF8String url); |
AString getStringFromName(in AUTF8String url, in ACString key); |
Get all override keys for a given string bundle.
nsISimpleEnumerator enumerateKeysInBundle( in AUTF8String url );
url
An enumeration of nsIPropertyElement objects for the keys that are overridden in the given string bundle. Note that these keys may not exist in the original string bundle.
Get the override value for a particular key in a particular string bundle.
AString getStringFromName( in AUTF8String url, in ACString key );
url
key
The override value. An exception is thrown if the key has not been overridden. However, no exception is thrown if the original string bundle did not have the key.