summaryrefslogtreecommitdiff
path: root/common/content
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2011-03-08 03:09:37 +1100
committerDoug Kearns <dougkearns@gmail.com>2011-03-08 03:09:37 +1100
commitc08c0dc19fb59e51153eb4477873745b43c1d4b9 (patch)
tree697b9b05388e82c24d04eeb4ccc41953284f751d /common/content
parent1f0a95e40d1c3c3fd22a54fc3ab41741de0d7bc1 (diff)
downloadpentadactyl-c08c0dc19fb59e51153eb4477873745b43c1d4b9.tar.gz
Move some more message strings to the properties file.
Diffstat (limited to 'common/content')
-rw-r--r--common/content/bookmarks.js8
-rw-r--r--common/content/browser.js2
-rw-r--r--common/content/modes.js2
-rw-r--r--common/content/quickmarks.js2
4 files changed, 7 insertions, 7 deletions
diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js
index 1ae229ca..ade210df 100644
--- a/common/content/bookmarks.js
+++ b/common/content/bookmarks.js
@@ -135,14 +135,14 @@ var Bookmarks = Module("bookmarks", {
let count = this.remove(url);
if (count > 0)
- dactyl.echomsg({ domains: [util.getHost(url)], message: "Removed bookmark: " + url });
+ dactyl.echomsg({ domains: [util.getHost(url)], message: _("bookmark.removed", url) });
else {
let title = buffer.uri.spec == url && buffer.title || url;
let extra = "";
if (title != url)
extra = " (" + title + ")";
this.add({ unfiled: true, title: title, url: url });
- dactyl.echomsg({ domains: [util.getHost(url)], message: "Added bookmark: " + url + extra });
+ dactyl.echomsg({ domains: [util.getHost(url)], message: _("bookmark.added", url + extra) });
}
},
@@ -429,7 +429,7 @@ var Bookmarks = Module("bookmarks", {
if (bookmarks.add(opts)) {
let extra = (opts.title == opts.url) ? "" : " (" + opts.title + ")";
- dactyl.echomsg({ domains: [util.getHost(opts.url)], message: "Added bookmark: " + opts.url + extra },
+ dactyl.echomsg({ domains: [util.getHost(opts.url)], message: _("bookmark.added", opts.url + extra) },
1, commandline.FORCE_SINGLELINE);
}
else
@@ -502,7 +502,7 @@ var Bookmarks = Module("bookmarks", {
var deletedCount = bookmarks.remove(context.allItems.items.map(function (item) item.item.id));
}
- dactyl.echomsg({ message: deletedCount + " bookmark(s) deleted" });
+ dactyl.echomsg({ message: _("bookmark.deleted", deletedCount) });
}
},
diff --git a/common/content/browser.js b/common/content/browser.js
index 534ba143..746b46ec 100644
--- a/common/content/browser.js
+++ b/common/content/browser.js
@@ -81,7 +81,7 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
else {
// code which should happen for all (also background) newly loaded tabs goes here:
if (doc != config.browser.contentDocument)
- dactyl.echomsg({ domains: [util.getHost(doc.location)], message: "Background tab loaded: " + (doc.title || doc.location.href) }, 3);
+ dactyl.echomsg({ domains: [util.getHost(doc.location)], message: _("buffer.backgroundLoaded", (doc.title || doc.location.href)) }, 3);
this._triggerLoadAutocmd("PageLoad", doc);
}
diff --git a/common/content/modes.js b/common/content/modes.js
index 8edce45a..a46b33ed 100644
--- a/common/content/modes.js
+++ b/common/content/modes.js
@@ -306,7 +306,7 @@ var Modes = Module("modes", {
var delayed, oldExtended, oldMain, prev, push;
if (this.inSet) {
- dactyl.reportError(Error("Not executing modes.set recursively"), true);
+ dactyl.reportError(Error(_("mode.recursiveSet")), true);
return;
}
diff --git a/common/content/quickmarks.js b/common/content/quickmarks.js
index 1ef116f1..c12e7681 100644
--- a/common/content/quickmarks.js
+++ b/common/content/quickmarks.js
@@ -28,7 +28,7 @@ var QuickMarks = Module("quickmarks", {
*/
add: function add(qmark, location) {
this._qmarks.set(qmark, location);
- dactyl.echomsg({ domains: [util.getHost(location)], message: "Added Quick Mark '" + qmark + "': " + location }, 1);
+ dactyl.echomsg({ domains: [util.getHost(location)], message: _("quickmark.added", qmark, location) }, 1);
},
/**