Fix trace-test.py to work on symlinks. (r=self).
[mozilla-central.git] / toolkit / obsolete / content / strres.js
blob1caa98962965ef3c11094f3c44c1b55b5a1cec3b
1 var strBundleService = null;
3 function srGetStrBundle(path)
5   var strBundle = null;
7   if (!strBundleService) {
8       try {
9           strBundleService =
10               Components.classes["@mozilla.org/intl/stringbundle;1"].getService(); 
11           strBundleService = 
12               strBundleService.QueryInterface(Components.interfaces.nsIStringBundleService);
13       } catch (ex) {
14           dump("\n--** strBundleService failed: " + ex + "\n");
15           return null;
16       }
17   }
19   strBundle = strBundleService.createBundle(path); 
20   if (!strBundle) {
21         dump("\n--** strBundle createInstance failed **--\n");
22   }
23   return strBundle;