mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 21:24:11 +01:00
Move some more message strings to the properties file.
This commit is contained in:
@@ -1399,7 +1399,7 @@ var Commands = Module("commands", {
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
dactyl.echo(":" + this.name + " ...");
|
||||
dactyl.echo(":" + this.name + " ..."); // XXX
|
||||
dactyl.echoerr(_("command.unknownCompleter", completer));
|
||||
dactyl.log(e);
|
||||
return undefined;
|
||||
|
||||
@@ -13,7 +13,7 @@ Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||
defineModule("config", {
|
||||
exports: ["ConfigBase", "Config", "config"],
|
||||
require: ["services", "storage", "util", "template"],
|
||||
use: ["io", "prefs"]
|
||||
use: ["io", "messages", "prefs"]
|
||||
}, this);
|
||||
|
||||
var ConfigBase = Class("ConfigBase", {
|
||||
|
||||
@@ -202,8 +202,8 @@ var IO = Module("io", {
|
||||
this._scriptNames.push(file.path);
|
||||
|
||||
dactyl.echomsg(_("io.sourcingEnd", filename.quote()), 2);
|
||||
dactyl.log(_("dactyl.sourced", filename), 3);
|
||||
|
||||
dactyl.log("Sourced: " + filename, 3);
|
||||
return context;
|
||||
}
|
||||
catch (e) {
|
||||
@@ -622,7 +622,7 @@ var IO = Module("io", {
|
||||
}
|
||||
catch (e) {
|
||||
dactyl.echoerr(_("io.notWriteable"), file.path.quote());
|
||||
dactyl.log("Could not write to " + file.path + ": " + e.message); // XXX
|
||||
dactyl.log(_("error.notWriteable", file.path, e.message)); // XXX
|
||||
}
|
||||
}, {
|
||||
argCount: "*", // FIXME: should be "?" but kludged for proper error message
|
||||
|
||||
@@ -13,7 +13,7 @@ Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||
defineModule("util", {
|
||||
exports: ["frag", "FailedAssertion", "Math", "NS", "Point", "Util", "XBL", "XHTML", "XUL", "util"],
|
||||
require: ["services"],
|
||||
use: ["commands", "config", "highlight", "storage", "template"]
|
||||
use: ["commands", "config", "highlight", "messages", "storage", "template"]
|
||||
}, this);
|
||||
|
||||
var XBL = Namespace("xbl", "http://www.mozilla.org/xbl");
|
||||
@@ -827,7 +827,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
return xmlhttp;
|
||||
}
|
||||
catch (e) {
|
||||
util.dactyl.log("Error opening " + String.quote(url) + ": " + e, 1);
|
||||
util.dactyl.log(_("error.cantOpen", String.quote(url), e), 1);
|
||||
return null;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user