mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:08:12 +01:00
Fix loading locale files from XPI.
This commit is contained in:
2
common/bootstrap.js
vendored
2
common/bootstrap.js
vendored
@@ -125,7 +125,7 @@ function init() {
|
|||||||
switch(fields[0]) {
|
switch(fields[0]) {
|
||||||
case "#":
|
case "#":
|
||||||
if (fields[1] == "Suffix:")
|
if (fields[1] == "Suffix:")
|
||||||
var suffix = fields[1];
|
var suffix = "-" + fields[2];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "category":
|
case "category":
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
<html dactyl:highlight="Help">
|
<html dactyl:highlight="Help">
|
||||||
<head>
|
<head>
|
||||||
<title><xsl:value-of select="/dactyl:document/@title"/></title>
|
<title><xsl:value-of select="/dactyl:document/@title"/></title>
|
||||||
<script type="text/javascript" src="chrome://dactyl/content/help.js"/>
|
<script type="text/javascript" src="resource://dactyl-content/help.js"/>
|
||||||
</head>
|
</head>
|
||||||
<body dactyl:highlight="HelpBody">
|
<body dactyl:highlight="HelpBody">
|
||||||
<xsl:apply-templates select="$root2/node()|$root2/@*" mode="help-1"/>
|
<xsl:apply-templates select="$root2/node()|$root2/@*" mode="help-1"/>
|
||||||
|
|||||||
@@ -314,8 +314,11 @@ var IO = Module("io", {
|
|||||||
// let jar = services.zipReader.getZip(file); Crashes.
|
// let jar = services.zipReader.getZip(file); Crashes.
|
||||||
let jar = services.ZipReader(file);
|
let jar = services.ZipReader(file);
|
||||||
try {
|
try {
|
||||||
for (let entry in jar.findEntries("*"))
|
let filter = RegExp("^" + util.regexp.escape(decodeURI(path))
|
||||||
if (filter.test(s))
|
+ "[^/]*/?$");
|
||||||
|
|
||||||
|
for (let entry in iter(jar.findEntries("*")))
|
||||||
|
if (filter.test(entry))
|
||||||
yield entry;
|
yield entry;
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user