1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 16:17:59 +01:00

Fix loading locale files from XPI.

This commit is contained in:
Kris Maglione
2011-01-13 16:28:02 -05:00
parent 6fcd00e8ca
commit 97da21c4aa
3 changed files with 7 additions and 4 deletions

2
common/bootstrap.js vendored
View File

@@ -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":

View File

@@ -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"/>

View File

@@ -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 {