chanial%noos.fr fbbea3e63e bug 213228: new toolkit independence bug, part 6.
fork and obsolete files


git-svn-id: svn://10.0.0.236/trunk@146086 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-16 14:51:28 +00:00

25 lines
637 B
JavaScript

var strBundleService = null;
function srGetStrBundle(path)
{
var strBundle = null;
if (!strBundleService) {
try {
strBundleService =
Components.classes["@mozilla.org/intl/stringbundle;1"].getService();
strBundleService =
strBundleService.QueryInterface(Components.interfaces.nsIStringBundleService);
} catch (ex) {
dump("\n--** strBundleService failed: " + ex + "\n");
return null;
}
}
strBundle = strBundleService.createBundle(path);
if (!strBundle) {
dump("\n--** strBundle createInstance failed **--\n");
}
return strBundle;
}