mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 22:27:58 +01:00
More ad hoc i18n work.
This commit is contained in:
@@ -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