diff --git a/common/components/protocols.js b/common/components/protocols.js
index 201d410f..4de60567 100644
--- a/common/components/protocols.js
+++ b/common/components/protocols.js
@@ -151,16 +151,16 @@ function Liberator()
function parseHelpTags(namespaces)
{
+ HELP_FILES = [];
NAMESPACES = Array.slice(namespaces);
- let files = xpath(
- XSLTProcessor("chrome://liberator/content/overlay.xsl")
- .transformToDocument(httpGet(self.FILE_MAP.all).responseXML),
- "//liberator:include/@href");
- self.HELP_TAGS.all = "all";
const XSLT = XSLTProcessor("chrome://liberator/content/help.xsl");
- for each (let file in files)
+ self.HELP_TAGS.all = "all";
+ for each (let namespace in NAMESPACES)
{
- try
+ let files = xpath(
+ httpGet("chrome://" + namespace + "/locale/all.xml").responseXML,
+ "//liberator:include/@href");
+ for each (let file in files)
{
let [url, doc] = findHelpFile(file.value);
if (doc)
@@ -168,14 +168,9 @@ function Liberator()
doc = XSLT.transformToDocument(doc);
for (let elem in xpath(doc, "//liberator:tag/text()"))
self.HELP_TAGS[elem.textContent] = file.value;
- }
- catch (e)
- {
- Components.utils.reportError(e);
- dump(e + "\n");
+ HELP_FILES.push(file.value);
}
}
- HELP_FILES = Array.slice(files);
}
}
Liberator.prototype = {
diff --git a/common/locale/en-US/all.xml b/common/locale/en-US/all.xml
index a84c618f..1398c78c 100644
--- a/common/locale/en-US/all.xml
+++ b/common/locale/en-US/all.xml
@@ -1,5 +1,5 @@
-
+
@@ -11,47 +11,26 @@
all
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-