mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 01:24:11 +01:00
Move some more message strings to the properties file.
This commit is contained in:
@@ -59,7 +59,7 @@ var ConfigBase = Class("ConfigBase", {
|
||||
do {
|
||||
addon = (JSMLoader.bootstrap || {}).addon;
|
||||
if (addon && !addon.getResourceURI) {
|
||||
util.reportError(Error("Don't have add-on yet"));
|
||||
util.reportError(Error(_("addon.unavailable")));
|
||||
yield 10;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,7 +221,7 @@ var Contexts = Module("contexts", {
|
||||
enumerable: true,
|
||||
get: function () self,
|
||||
set: function (val) {
|
||||
util.dactyl(val).reportError(FailedAssertion("Not replacing plugin context for " + self.NAME, 3, false), true);
|
||||
util.dactyl(val).reportError(FailedAssertion(_("plugin.notReplacingContext", self.NAME), 3, false), true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ var IO = Module("io", {
|
||||
let file = download.targetFile.path;
|
||||
let size = download.size;
|
||||
|
||||
dactyl.echomsg({ domains: [util.getHost(url)], message: "Download of " + title + " to " + file + " finished" },
|
||||
dactyl.echomsg({ domains: [util.getHost(url)], message: _("io.downloadFinished", title, file) },
|
||||
1, modules.commandline.ACTIVE_WINDOW);
|
||||
modules.autocommands.trigger("DownloadPost", { url: url, title: title, file: file, size: size });
|
||||
}
|
||||
|
||||
@@ -455,8 +455,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
}
|
||||
catch (e) {}
|
||||
if (res == null) {
|
||||
util.dumpStack("Computed style is null: " + node);
|
||||
Cu.reportError(Error("Computed style is null: " + node));
|
||||
util.dumpStack(_("error.nullComputedStyle", node));
|
||||
Cu.reportError(Error(_("error.nullComputedStyle", node)));
|
||||
return {};
|
||||
}
|
||||
return res;
|
||||
@@ -1227,8 +1227,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
Class.replaceProperty(this, k, val);
|
||||
else {
|
||||
let package_ = util.newURI(util.fixURI(Components.stack.caller.filename)).host;
|
||||
util.reportError(Error("Not replacing property with eval-generated overlay by " + package_));
|
||||
util.dactyl.echoerr("Not replacing property with eval-generated overlay by " + package_);
|
||||
util.reportError(Error(_("error.monkeyPatchOverlay", package_)));
|
||||
util.dactyl.echoerr(_("error.monkeyPatchOverlay", package_));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user