mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 06:42:29 +01:00
More ad hoc i18n work.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user