1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 14:54:12 +01:00

Move some more message strings to the properties file.

This commit is contained in:
Doug Kearns
2011-03-08 03:09:37 +11:00
parent 1f0a95e40d
commit c08c0dc19f
9 changed files with 27 additions and 16 deletions

View File

@@ -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_));
}
};
}