diff options
author | Doug Kearns <dougkearns@gmail.com> | 2011-04-01 10:12:47 +1100 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2011-04-01 10:12:47 +1100 |
commit | a52a0dc61f0cb0184b209c897128bdf9fa63d48c (patch) | |
tree | 2c55763c839b7268749df37daee86b2d4a0d95a5 /common/content | |
parent | 477b1139fc123d1dcb12fcc156df8d439bb6f096 (diff) | |
download | pentadactyl-a52a0dc61f0cb0184b209c897128bdf9fa63d48c.tar.gz |
More ad hoc i18n work.
Diffstat (limited to 'common/content')
-rw-r--r-- | common/content/abbreviations.js | 4 | ||||
-rw-r--r-- | common/content/bookmarks.js | 2 | ||||
-rw-r--r-- | common/content/buffer.js | 6 | ||||
-rw-r--r-- | common/content/editor.js | 2 | ||||
-rw-r--r-- | common/content/marks.js | 2 | ||||
-rw-r--r-- | common/content/mow.js | 8 | ||||
-rw-r--r-- | common/content/tabs.js | 8 |
7 files changed, 16 insertions, 16 deletions
diff --git a/common/content/abbreviations.js b/common/content/abbreviations.js index 4314abe9..ccc666e8 100644 --- a/common/content/abbreviations.js +++ b/common/content/abbreviations.js @@ -224,7 +224,7 @@ var Abbreviations = Module("abbreviations", { // TODO: Move this to an ItemList to show this automatically if (list.*.length() === list.text().length() + 2) - dactyl.echomsg(_("abbrev.none")); + dactyl.echomsg(_("abbreviation.none")); else commandline.commandOutput(list); } @@ -301,7 +301,7 @@ var Abbreviations = Module("abbreviations", { if (args.bang) args["-group"].clear(modes); else if (!args["-group"].remove(modes, args[0])) - return dactyl.echoerr(_("abbrev.noSuch")); + return dactyl.echoerr(_("abbreviation.noSuch")); }, { argCount: "?", bang: true, diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index ced48c6e..65691e1f 100644 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -511,7 +511,7 @@ var Bookmarks = Module("bookmarks", { function (resp) { if (resp && resp.match(/^y(es)?$/i)) { bookmarks.remove(Object.keys(bookmarkcache.bookmarks)); - dactyl.echomsg(_("bookmark.allGone")); + dactyl.echomsg(_("bookmark.allDeleted")); } }); else { diff --git a/common/content/buffer.js b/common/content/buffer.js index dd42d7df..161a09d5 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -607,7 +607,7 @@ var Buffer = Module("buffer", { try { window.urlSecurityCheck(uri.spec, doc.nodePrincipal); - io.CommandFileMode(/*L*/"Save link: ", { + io.CommandFileMode(_("buffer.prompt.saveLink") + " ", { onSubmit: function (path) { let file = io.File(path); if (file.exists() && file.isDirectory()) @@ -1284,7 +1284,7 @@ var Buffer = Module("buffer", { // FIXME: arg handling is a bit of a mess, check for filename dactyl.assert(!arg || arg[0] == ">" && !util.OS.isWindows, - _("error.trailing")); + _("error.trailingCharacters")); prefs.withContext(function () { if (arg) { @@ -1463,7 +1463,7 @@ var Buffer = Module("buffer", { level = Math.constrain(level, Buffer.ZOOM_MIN, Buffer.ZOOM_MAX); } else - dactyl.assert(false, _("error.trailing")); + dactyl.assert(false, _("error.trailingCharacters")); buffer.setZoom(level, args.bang); }, diff --git a/common/content/editor.js b/common/content/editor.js index 86b8440c..3fd78fbe 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -243,7 +243,7 @@ var Editor = Module("editor", { let args = options.get("editor").format(args); - dactyl.assert(args.length >= 1, _("editor.noEditor")); + dactyl.assert(args.length >= 1, _("option.notSet", "editor")); io.run(args.shift(), args, blocking); }, diff --git a/common/content/marks.js b/common/content/marks.js index fc63bc83..1cb3e957 100644 --- a/common/content/marks.js +++ b/common/content/marks.js @@ -249,7 +249,7 @@ var Marks = Module("marks", { "Mark current location within the web page", function (args) { let mark = args[0] || ""; - dactyl.assert(mark.length <= 1, _("error.trailing")); + dactyl.assert(mark.length <= 1, _("error.trailingCharacters")); dactyl.assert(/[a-zA-Z]/.test(mark), _("mark.invalid")); marks.add(mark); diff --git a/common/content/mow.js b/common/content/mow.js index 51e55076..4e8c0b88 100644 --- a/common/content/mow.js +++ b/common/content/mow.js @@ -53,16 +53,16 @@ var MOW = Module("mow", { <popupset> <menupopup id="dactyl-contextmenu" highlight="Events" events="contextEvents"> <menuitem id="dactyl-context-copylink" - label={/*L*/"Copy Link Location"} dactyl:group="link" + label={_("mow.contextMenu.copyLink")} dactyl:group="link" oncommand="goDoCommand('cmd_copyLink');"/> <menuitem id="dactyl-context-copypath" - label={/*L*/"Copy File Path"} dactyl:group="link path" + label={_("mow.contextMenu.copyPath")} dactyl:group="link path" oncommand="dactyl.clipboardWrite(document.popupNode.getAttribute('path'));"/> <menuitem id="dactyl-context-copy" - label={/*L*/"Copy"} dactyl:group="selection" + label={_("mow.contextMenu.copy")} dactyl:group="selection" command="cmd_copy"/> <menuitem id="dactyl-context-selectall" - label={/*L*/"Select All"} + label={_("mow.contextMenu.selectAll")} command="cmd_selectAll"/> </menupopup> </popupset> diff --git a/common/content/tabs.js b/common/content/tabs.js index f22e2b53..5c82b2bb 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -678,7 +678,7 @@ var Tabs = Module("tabs", { if (/^\d+$/.test(arg)) tabs.select("-" + arg, true); else - dactyl.echoerr(_("error.trailing")); + dactyl.echoerr(_("error.trailingCharacters")); } else if (count > 0) tabs.select("-" + count, true); @@ -701,7 +701,7 @@ var Tabs = Module("tabs", { // count is ignored if an arg is specified, as per Vim if (arg) { - dactyl.assert(/^\d+$/.test(arg), _("error.trailing")); + dactyl.assert(/^\d+$/.test(arg), _("error.trailingCharacters")); index = arg - 1; } else @@ -770,7 +770,7 @@ var Tabs = Module("tabs", { // FIXME: tabmove! N should probably produce an error dactyl.assert(!arg || /^([+-]?\d+)$/.test(arg), - _("error.trailing")); + _("error.trailingCharacters")); // if not specified, move to after the last tab tabs.move(config.tabbrowser.mCurrentTab, arg || "$", args.bang); @@ -825,7 +825,7 @@ var Tabs = Module("tabs", { "Attach the current tab to another window", function (args) { dactyl.assert(args.length <= 2 && !args.some(function (i) !/^\d+$/.test(i)), - _("error.trailing")); + _("error.trailingCharacters")); let [winIndex, tabIndex] = args.map(parseInt); let win = dactyl.windows[winIndex - 1]; |