mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 06:48:00 +01:00
Localize some more strings.
This commit is contained in:
@@ -166,11 +166,22 @@ mow.noPreviousOutput = No previous command output
|
|||||||
option.noSuch = No such option
|
option.noSuch = No such option
|
||||||
option.noSuch-1 = No such option: %S
|
option.noSuch-1 = No such option: %S
|
||||||
option.replaceExisting-1 = Warning: %S already exists: replacing existing option
|
option.replaceExisting-1 = Warning: %S already exists: replacing existing option
|
||||||
|
option.intRequired = Integer value required
|
||||||
|
option.operatorNotSupported-2 = Operator %S not supported for option type %S
|
||||||
|
|
||||||
|
option.currentValue = Current Value
|
||||||
|
option.defaultValue = Default Value
|
||||||
|
|
||||||
|
option.bufferLocal = buffer local
|
||||||
|
# The string 'passkeys' must appear exactly, including U0027 apostrophes
|
||||||
|
option.passkeys.passedBy = passed by 'passkeys'
|
||||||
|
|
||||||
plugin.searchingFor-1 = Searching for %S
|
plugin.searchingFor-1 = Searching for %S
|
||||||
plugin.searchingForIn-2 = Searching for %S in %S
|
plugin.searchingForIn-2 = Searching for %S in %S
|
||||||
plugin.notReplacingContext-1 = Not replacing plugin context for %S
|
plugin.notReplacingContext-1 = Not replacing plugin context for %S
|
||||||
|
|
||||||
|
prefs.prompt.resetAll-1 = Warning: Resetting all preferences may make %S unusable. Continue (yes/[no]):\
|
||||||
|
|
||||||
print.toFile-1 = Printing to file: %S
|
print.toFile-1 = Printing to file: %S
|
||||||
print.sending = Sending to printer...
|
print.sending = Sending to printer...
|
||||||
print.sent = Print job sent
|
print.sent = Print job sent
|
||||||
@@ -201,6 +212,7 @@ zoom.illegal = Illegal zoom value
|
|||||||
error.clipboardEmpty = No clipboard data
|
error.clipboardEmpty = No clipboard data
|
||||||
error.countRequired-1 = Count required for %S
|
error.countRequired-1 = Count required for %S
|
||||||
error.cantOpen-2 = Error opening %S: %S
|
error.cantOpen-2 = Error opening %S: %S
|
||||||
|
error.error-1 = Error: %S
|
||||||
error.interrupted = Interrupted
|
error.interrupted = Interrupted
|
||||||
error.invalidSort-1 = Invalid sort order: %S
|
error.invalidSort-1 = Invalid sort order: %S
|
||||||
error.trailing = Trailing characters
|
error.trailing = Trailing characters
|
||||||
|
|||||||
@@ -976,7 +976,8 @@ var ErrorBase = Class("ErrorBase", Error, {
|
|||||||
}
|
}
|
||||||
this.fileName = frame.filename;
|
this.fileName = frame.filename;
|
||||||
this.lineNumber = frame.lineNumber;
|
this.lineNumber = frame.lineNumber;
|
||||||
}
|
},
|
||||||
|
toString: function () String(this.message)
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -396,7 +396,7 @@ var CompletionContext = Class("CompletionContext", {
|
|||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
util.reportError(e);
|
util.reportError(e);
|
||||||
this.message = "Error: " + e;
|
this.message = _("error.error", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// XXX
|
// XXX
|
||||||
@@ -495,7 +495,7 @@ var CompletionContext = Class("CompletionContext", {
|
|||||||
return this.cache.filtered = filtered;
|
return this.cache.filtered = filtered;
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
this.message = "Error: " + e;
|
this.message = _("error.error", e);
|
||||||
util.reportError(e);
|
util.reportError(e);
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ var Option = Class("Option", {
|
|||||||
try {
|
try {
|
||||||
var newValues = this._op(operator, values, scope, invert);
|
var newValues = this._op(operator, values, scope, invert);
|
||||||
if (newValues == null)
|
if (newValues == null)
|
||||||
return "Operator " + operator + " not supported for option type " + this.type;
|
return _("option.operatorNotSupported", operator, this.type);
|
||||||
|
|
||||||
if (!this.isValidValue(newValues))
|
if (!this.isValidValue(newValues))
|
||||||
return this.invalidArgument(str || this.stringify(values), operator);
|
return this.invalidArgument(str || this.stringify(values), operator);
|
||||||
@@ -498,7 +498,7 @@ var Option = Class("Option", {
|
|||||||
|
|
||||||
parse: {
|
parse: {
|
||||||
number: function (value) let (val = Option.dequote(value))
|
number: function (value) let (val = Option.dequote(value))
|
||||||
Option.validIf(Number(val) % 1 == 0, "Integer value required") && parseInt(val),
|
Option.validIf(Number(val) % 1 == 0, _("option.intRequired")) && parseInt(val),
|
||||||
|
|
||||||
boolean: function boolean(value) Option.dequote(value) == "true" || value == true ? true : false,
|
boolean: function boolean(value) Option.dequote(value) == "true" || value == true ? true : false,
|
||||||
|
|
||||||
@@ -959,7 +959,9 @@ var Options = Module("options", {
|
|||||||
format: {
|
format: {
|
||||||
description: function (map) (XML.ignoreWhitespace = false, XML.prettyPrinting = false, <>
|
description: function (map) (XML.ignoreWhitespace = false, XML.prettyPrinting = false, <>
|
||||||
{options.get("passkeys").has(map.name)
|
{options.get("passkeys").has(map.name)
|
||||||
? <span highlight="URLExtra">(passed by {template.helpLink("'passkeys'")})</span>
|
? <span highlight="URLExtra">({
|
||||||
|
tempate.linkifyHelp(_("option.passkeys.passedBy"))
|
||||||
|
})</span>
|
||||||
: <></>}
|
: <></>}
|
||||||
{template.linkifyHelp(map.description)}
|
{template.linkifyHelp(map.description)}
|
||||||
</>)
|
</>)
|
||||||
@@ -974,7 +976,7 @@ var Options = Module("options", {
|
|||||||
format: {
|
format: {
|
||||||
description: function (opt) (XML.ignoreWhitespace = false, XML.prettyPrinting = false, <>
|
description: function (opt) (XML.ignoreWhitespace = false, XML.prettyPrinting = false, <>
|
||||||
{opt.scope == Option.SCOPE_LOCAL
|
{opt.scope == Option.SCOPE_LOCAL
|
||||||
? <span highlight="URLExtra">(buffer local)</span> : ""}
|
? <span highlight="URLExtra">({_("option.bufferLocal")})</span> : ""}
|
||||||
{template.linkifyHelp(opt.description)}
|
{template.linkifyHelp(opt.description)}
|
||||||
</>),
|
</>),
|
||||||
help: function (opt) "'" + opt.name + "'"
|
help: function (opt) "'" + opt.name + "'"
|
||||||
@@ -1015,7 +1017,7 @@ var Options = Module("options", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (name == "all" && reset)
|
if (name == "all" && reset)
|
||||||
modules.commandline.input("Warning: Resetting all preferences may make " + config.host + " unusable. Continue (yes/[no]): ",
|
modules.commandline.input(_("pref.prompt.resetAll", config.host),
|
||||||
function (resp) {
|
function (resp) {
|
||||||
if (resp == "yes")
|
if (resp == "yes")
|
||||||
for (let pref in values(prefs.getNames()))
|
for (let pref in values(prefs.getNames()))
|
||||||
@@ -1105,8 +1107,8 @@ var Options = Module("options", {
|
|||||||
|
|
||||||
context.pushProcessor(0, function (item, text, next) next(item, text.substr(0, 100)));
|
context.pushProcessor(0, function (item, text, next) next(item, text.substr(0, 100)));
|
||||||
context.completions = [
|
context.completions = [
|
||||||
[prefs.get(filter), "Current Value"],
|
[prefs.get(filter), _("opt.currentValue")],
|
||||||
[prefs.defaults.get(filter), "Default Value"]
|
[prefs.defaults.get(filter), _("opt.defaultValue")]
|
||||||
].filter(function (k) k[0] != null);
|
].filter(function (k) k[0] != null);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -1131,11 +1133,11 @@ var Options = Module("options", {
|
|||||||
|
|
||||||
let option = opt.option;
|
let option = opt.option;
|
||||||
if (!option)
|
if (!option)
|
||||||
return error(opt.name.length, "No such option: " + opt.name);
|
return error(opt.name.length, _("option.noSuch", opt.name));
|
||||||
|
|
||||||
context.advance(context.filter.indexOf("="));
|
context.advance(context.filter.indexOf("="));
|
||||||
if (option.type == "boolean")
|
if (option.type == "boolean")
|
||||||
return error(context.filter.length, "Trailing characters");
|
return error(context.filter.length, _("error.trailing"));
|
||||||
|
|
||||||
context.advance(1);
|
context.advance(1);
|
||||||
if (opt.error)
|
if (opt.error)
|
||||||
@@ -1149,8 +1151,8 @@ var Options = Module("options", {
|
|||||||
context.title = ["Extra Completions"];
|
context.title = ["Extra Completions"];
|
||||||
context.pushProcessor(0, function (item, text, next) next(item, text.substr(0, 100)));
|
context.pushProcessor(0, function (item, text, next) next(item, text.substr(0, 100)));
|
||||||
context.completions = [
|
context.completions = [
|
||||||
[option.stringValue, "Current value"],
|
[option.stringValue, _("option.currentValue")],
|
||||||
[option.stringDefaultValue, "Default value"]
|
[option.stringDefaultValue, _("option.defaultValue")]
|
||||||
].filter(function (f) f[0] !== "");
|
].filter(function (f) f[0] !== "");
|
||||||
context.quote = ["", util.identity, ""];
|
context.quote = ["", util.identity, ""];
|
||||||
});
|
});
|
||||||
@@ -1352,7 +1354,7 @@ var Options = Module("options", {
|
|||||||
var newValues = opt.parse(context.filter);
|
var newValues = opt.parse(context.filter);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
context.message = "Error: " + e;
|
context.message = _("error.error", e);
|
||||||
context.completions = [];
|
context.completions = [];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user