!import
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
1 var strBundleService = null;
2
srGetStrBundle
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
3 function srGetStrBundle(path)
4 {
5 var strBundle = null;
6
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 }
18
19 strBundle = strBundleService.createBundle(path);
20 if (!strBundle) {
21 dump("\n--** strBundle createInstance failed **--\n");
22 }
23 return strBundle;
24 }