Loads a properties file.
Object loadResources( String xpiPath );
The sole input parameter for
loadResources is a string representing the path to the properties file in the XPI in which the key/value pairs are defined.
The format of the properties file expected by
loadResources is the same as that of the chrome locale .properties files. This method is used to internationalize installation scripts by allowing the installer to retrieve localized string values from a separate file. Be aware that the parameter specifies the file within the XPI and not on the file system, as the following example demonstrates.
Given a XPI with this internal structure:
install.js bin/res_eg_2.properties bin/somefile.exe bin/...
resEg2Obj = loadResources("bin/res_eg_2.properties"); dump( resEg2Obj.title )