mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 04:07:59 +01:00
Localeify more strings.
This commit is contained in:
@@ -30,6 +30,7 @@ var Bookmarks = Module("bookmarks", {
|
|||||||
|
|
||||||
signals: {
|
signals: {
|
||||||
"browser.locationChange": function (webProgress, request, uri) {
|
"browser.locationChange": function (webProgress, request, uri) {
|
||||||
|
statusline.bookmarked = false;
|
||||||
this.checkBookmarked(uri);
|
this.checkBookmarked(uri);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,6 +9,20 @@ addon.cantInstallDir-1 = Cannot install a directory: %S
|
|||||||
addon.unavailable = Don't have add-on yet
|
addon.unavailable = Don't have add-on yet
|
||||||
addon.uknownCommand = Unknown command
|
addon.uknownCommand = Unknown command
|
||||||
addon.commandNotAllowed = Command not allowed
|
addon.commandNotAllowed = Command not allowed
|
||||||
|
addon.installingUpdates-1 = Installing updates for addons: %S
|
||||||
|
addon.noUpdates = No addon updates found
|
||||||
|
addon.error-3 = Add-on %S %S: %S
|
||||||
|
|
||||||
|
addon.action.On = On
|
||||||
|
addon.action.Off = Off
|
||||||
|
addon.action.Del = Del
|
||||||
|
addon.action.Upd = Upd
|
||||||
|
addon.action.Opt = Opt
|
||||||
|
|
||||||
|
AddonManager.ERROR_NETWORK_FAILURE = A network error occurred
|
||||||
|
AddonManager.ERROR_INCORRECT_HASH = The downloaded file did not match the expected hash
|
||||||
|
AddonManager.ERROR_CORRUPT_FILE = The file appears to be corrupt
|
||||||
|
AddonManager.ERROR_FILE_ACCESS = There was an error accessing the filesystem
|
||||||
|
|
||||||
autocmd.executing-2 = Executing %S Auto commands for %S
|
autocmd.executing-2 = Executing %S Auto commands for %S
|
||||||
autocmd.autocommand-1 = autocommand %S
|
autocmd.autocommand-1 = autocommand %S
|
||||||
@@ -36,6 +50,8 @@ buffer.noClosed = No matching closed tab
|
|||||||
buffer.noAlternate = No alternate page
|
buffer.noAlternate = No alternate page
|
||||||
buffer.backgroundLoaded = Background tab loaded: %S
|
buffer.backgroundLoaded = Background tab loaded: %S
|
||||||
|
|
||||||
|
context.scriptGroup-1 = Script group for %S
|
||||||
|
|
||||||
command.commands = commands
|
command.commands = commands
|
||||||
|
|
||||||
command.cantDelete = Cannot delete non-user commands
|
command.cantDelete = Cannot delete non-user commands
|
||||||
@@ -66,12 +82,17 @@ command.let.unexpectedChar = E18: Unexpected characters in :let
|
|||||||
command.let.illegalVar-1 = E461: Illegal variable name: %S
|
command.let.illegalVar-1 = E461: Illegal variable name: %S
|
||||||
command.let.undefinedVar-1 = E121: Undefined variable: %S
|
command.let.undefinedVar-1 = E121: Undefined variable: %S
|
||||||
command.let.invalidExpression-1 = E15: Invalid expression: %S
|
command.let.invalidExpression-1 = E15: Invalid expression: %S
|
||||||
|
command.yank.yankedLine-1 = Yanked %S line
|
||||||
|
command.yank.yankedLines-1 = Yanked %S lines
|
||||||
command.run.noPrevious = E34: No previous command
|
command.run.noPrevious = E34: No previous command
|
||||||
command.sanitize.privateMode = Cannot sanitize items in private mode
|
command.sanitize.privateMode = Cannot sanitize items in private mode
|
||||||
command.set.numberRequired-2 = E521: Number required after =: %S=%S
|
command.set.numberRequired-2 = E521: Number required after =: %S=%S
|
||||||
command.set.errorParsing-1 = Error parsing :set command: %S
|
command.set.errorParsing-1 = Error parsing :set command: %S
|
||||||
command.set.unknownOption-1 = E518: Unknown option: %S
|
command.set.unknownOption-1 = E518: Unknown option: %S
|
||||||
|
|
||||||
|
completion.waitingFor-1 = Waiting for %S
|
||||||
|
completion.waitingForKeyPress = Waiting for key press
|
||||||
|
|
||||||
dactyl.parsingCommandLine-1 = Parsing command line options: %S
|
dactyl.parsingCommandLine-1 = Parsing command line options: %S
|
||||||
dactyl.notCommand-2 = E492: Not a %S command: %S
|
dactyl.notCommand-2 = E492: Not a %S command: %S
|
||||||
dactyl.sourcingPlugins-1 = Sourcing plugin directory: %S...
|
dactyl.sourcingPlugins-1 = Sourcing plugin directory: %S...
|
||||||
@@ -90,6 +111,13 @@ download.uknownCommand = Unknown command
|
|||||||
download.commandNotAllowed = Command not allowed
|
download.commandNotAllowed = Command not allowed
|
||||||
download.prompt.launchExternal = This will launch an executable download. Would you like to continue? (yes/[no]/always):
|
download.prompt.launchExternal = This will launch an executable download. Would you like to continue? (yes/[no]/always):
|
||||||
|
|
||||||
|
download.action.Pause = Pause
|
||||||
|
download.action.Remove = Remove
|
||||||
|
download.action.Resume = Resume
|
||||||
|
download.action.Retry = Retry
|
||||||
|
download.action.Cancel = Cancel
|
||||||
|
download.action.Delete = Delete
|
||||||
|
|
||||||
editor.noEditor = No editor specified
|
editor.noEditor = No editor specified
|
||||||
editor.prompt.editPassword = Editing a password field externally will reveal the password. Would you like to continue? (yes/[no]):
|
editor.prompt.editPassword = Editing a password field externally will reveal the password. Would you like to continue? (yes/[no]):
|
||||||
|
|
||||||
@@ -218,6 +246,7 @@ error.cantOpen-2 = Error opening %S: %S
|
|||||||
error.error-1 = Error: %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.missingQuote-1 = E114: Missing quote: %S
|
||||||
error.trailing = Trailing characters
|
error.trailing = Trailing characters
|
||||||
error.trailing-1 = Trailing characters: %S
|
error.trailing-1 = Trailing characters: %S
|
||||||
error.invalid-1 = Invalid %S
|
error.invalid-1 = Invalid %S
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ var callResult = function callResult(method) {
|
|||||||
var listener = function listener(action, event)
|
var listener = function listener(action, event)
|
||||||
function addonListener(install) {
|
function addonListener(install) {
|
||||||
this.dactyl[install.error ? "echoerr" : "echomsg"](
|
this.dactyl[install.error ? "echoerr" : "echomsg"](
|
||||||
"Add-on " + action + " " + event + ": " + (install.name || install.sourceURI.spec) +
|
_("addon.error", action, event, (install.name || install.sourceURI.spec) +
|
||||||
(install.error ? ": " + addonErrors[install.error] : ""));
|
(install.error ? ": " + addons.errors[install.error] : "")));
|
||||||
}
|
}
|
||||||
|
|
||||||
var AddonListener = Class("AddonListener", {
|
var AddonListener = Class("AddonListener", {
|
||||||
@@ -68,8 +68,8 @@ var updateAddons = Class("UpgradeListener", AddonListener, {
|
|||||||
if (!this.remaining.length)
|
if (!this.remaining.length)
|
||||||
this.dactyl.echomsg(
|
this.dactyl.echomsg(
|
||||||
this.upgrade.length
|
this.upgrade.length
|
||||||
? "Installing updates for addons: " + this.upgrade.map(function (i) i.name).join(", ")
|
? _("addon.installingUpdates", this.upgrade.map(function (i) i.name).join(", "))
|
||||||
: "No addon updates found");
|
: _("addon.noUpdates"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -151,11 +151,11 @@ var Addon = Class("Addon", {
|
|||||||
<td highlight="AddonVersion" key="version"/>
|
<td highlight="AddonVersion" key="version"/>
|
||||||
<td highlight="AddonStatus" key="status"/>
|
<td highlight="AddonStatus" key="status"/>
|
||||||
<td highlight="AddonButtons Buttons">
|
<td highlight="AddonButtons Buttons">
|
||||||
<a highlight="Button" key="enable">On </a>
|
<a highlight="Button" key="enable">{_("addon.action.On")}</a>
|
||||||
<a highlight="Button" key="disable">Off</a>
|
<a highlight="Button" key="disable">{_("addon.action.Off")}</a>
|
||||||
<a highlight="Button" key="delete">Del</a>
|
<a highlight="Button" key="delete">{_("addon.action.Del")}</a>
|
||||||
<a highlight="Button" key="update">Upd</a>
|
<a highlight="Button" key="update">{_("addon.action.Upd")}</a>
|
||||||
<a highlight="Button" key="options">Opt</a>
|
<a highlight="Button" key="options">{_("addon.action.Opt")}</a>
|
||||||
</td>
|
</td>
|
||||||
<td highlight="AddonDescription" key="description"/>
|
<td highlight="AddonDescription" key="description"/>
|
||||||
</tr>,
|
</tr>,
|
||||||
@@ -347,6 +347,11 @@ var AddonList = Class("AddonList", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var Addons = Module("addons", {
|
var Addons = Module("addons", {
|
||||||
|
errors: Class.memoize(function ()
|
||||||
|
array(["ERROR_NETWORK_FAILURE", "ERROR_INCORRECT_HASH",
|
||||||
|
"ERROR_CORRUPT_FILE", "ERROR_FILE_ACCESS"])
|
||||||
|
.map(function (e) [AddonManager[e], _("AddonManager." + e)])
|
||||||
|
.toObject())
|
||||||
}, {
|
}, {
|
||||||
}, {
|
}, {
|
||||||
commands: function (dactyl, modules, window) {
|
commands: function (dactyl, modules, window) {
|
||||||
@@ -595,12 +600,6 @@ else
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var addonErrors = array.toObject([
|
|
||||||
[AddonManager.ERROR_NETWORK_FAILURE, "A network error occurred"],
|
|
||||||
[AddonManager.ERROR_INCORRECT_HASH, "The downloaded file did not match the expected hash"],
|
|
||||||
[AddonManager.ERROR_CORRUPT_FILE, "The file appears to be corrupt"],
|
|
||||||
[AddonManager.ERROR_FILE_ACCESS, "There was an error accessing the filesystem"]]);
|
|
||||||
|
|
||||||
endModule();
|
endModule();
|
||||||
|
|
||||||
} catch(e){ if (isString(e)) e = Error(e); dump(e.fileName+":"+e.lineNumber+": "+e+"\n" + e.stack); }
|
} catch(e){ if (isString(e)) e = Error(e); dump(e.fileName+":"+e.lineNumber+": "+e+"\n" + e.stack); }
|
||||||
|
|||||||
@@ -863,9 +863,9 @@ var Commands = Module("commands", {
|
|||||||
|
|
||||||
let [count, arg, quote] = Commands.parseArg(str, null, _keepQuotes);
|
let [count, arg, quote] = Commands.parseArg(str, null, _keepQuotes);
|
||||||
if (quote == "\\" && !complete)
|
if (quote == "\\" && !complete)
|
||||||
return [, , , "Trailing \\"];
|
return [, , , _("error.trailing", "\\")];
|
||||||
if (quote && !complete)
|
if (quote && !complete)
|
||||||
return [, , , "E114: Missing quote: " + quote];
|
return [, , , _("error.missingQuote", quote)];
|
||||||
return [count, arg, quote];
|
return [count, arg, quote];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1351,7 +1351,7 @@ var Commands = Module("commands", {
|
|||||||
// dynamically get completions as specified with the command's completer function
|
// dynamically get completions as specified with the command's completer function
|
||||||
context.highlight();
|
context.highlight();
|
||||||
if (!command) {
|
if (!command) {
|
||||||
context.message = "No such command: " + match.cmd;
|
context.message = _("command.noSuch", match.cmd);
|
||||||
context.highlight(0, match.cmd.length, "SPELLCHECK");
|
context.highlight(0, match.cmd.length, "SPELLCHECK");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1591,7 +1591,7 @@ var Commands = Module("commands", {
|
|||||||
dactyl.clipboardWrite(res);
|
dactyl.clipboardWrite(res);
|
||||||
|
|
||||||
let lines = res.split("\n").length;
|
let lines = res.split("\n").length;
|
||||||
dactyl.echomsg("Yanked " + lines + " line" + (lines == 1 ? "" : "s"));
|
dactyl.echomsg(_("command.yank.yankedLine" + (lines == 1 ? "" : "s"), lines));
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
completer: function (context) modules.completion[/^:/.test(context.filter) ? "ex" : "javascript"](context),
|
completer: function (context) modules.completion[/^:/.test(context.filter) ? "ex" : "javascript"](context),
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ try {
|
|||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("completion", {
|
defineModule("completion", {
|
||||||
exports: ["CompletionContext", "Completion", "completion"],
|
exports: ["CompletionContext", "Completion", "completion"],
|
||||||
use: ["config", "template", "util"]
|
use: ["config", "messages", "template", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -331,7 +331,7 @@ var CompletionContext = Class("CompletionContext", {
|
|||||||
* The message displayed at the head of the completions for the
|
* The message displayed at the head of the completions for the
|
||||||
* current context.
|
* current context.
|
||||||
*/
|
*/
|
||||||
get message() this._message || (this.waitingForTab && this.hasItems !== false ? "Waiting for <Tab>" : null),
|
get message() this._message || (this.waitingForTab && this.hasItems !== false ? _("completion.waitingFor", "<Tab>") : null),
|
||||||
set message(val) this._message = val,
|
set message(val) this._message = val,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ var Contexts = Module("contexts", {
|
|||||||
group = this.addGroup(commands.nameRegexp
|
group = this.addGroup(commands.nameRegexp
|
||||||
.iterate(name.replace(/\.[^.]*$/, ""))
|
.iterate(name.replace(/\.[^.]*$/, ""))
|
||||||
.join("-").replace(/--+/g, "-"),
|
.join("-").replace(/--+/g, "-"),
|
||||||
"Script group for " + file.path,
|
_("context.scriptGroup", file.path),
|
||||||
null, false);
|
null, false);
|
||||||
|
|
||||||
Class.replaceProperty(self, "GROUP", group);
|
Class.replaceProperty(self, "GROUP", group);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("downloads", {
|
defineModule("downloads", {
|
||||||
exports: ["Download", "Downloads", "downloads"],
|
exports: ["Download", "Downloads", "downloads"],
|
||||||
use: ["io", "prefs", "services", "util"]
|
use: ["io", "messages", "prefs", "services", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/DownloadUtils.jsm", this);
|
Cu.import("resource://gre/modules/DownloadUtils.jsm", this);
|
||||||
@@ -39,12 +39,12 @@ var Download = Class("Download", {
|
|||||||
</td>
|
</td>
|
||||||
<td highlight="DownloadState" key="state"/>
|
<td highlight="DownloadState" key="state"/>
|
||||||
<td highlight="DownloadButtons Buttons">
|
<td highlight="DownloadButtons Buttons">
|
||||||
<a highlight="Button" key="pause">Pause</a>
|
<a highlight="Button" key="pause">{_("download.action.Pause")}</a>
|
||||||
<a highlight="Button" key="remove">Remove</a>
|
<a highlight="Button" key="remove">{_("download.action.Remove")}</a>
|
||||||
<a highlight="Button" key="resume">Resume</a>
|
<a highlight="Button" key="resume">{_("download.action.Resume")}</a>
|
||||||
<a highlight="Button" key="retry">Retry</a>
|
<a highlight="Button" key="retry">{_("download.action.Retry")}</a>
|
||||||
<a highlight="Button" key="cancel">Cancel</a>
|
<a highlight="Button" key="cancel">{_("download.action.Cancel")}</a>
|
||||||
<a highlight="Button" key="delete">Delete</a>
|
<a highlight="Button" key="delete">{_("download.action.Delete")}</a>
|
||||||
</td>
|
</td>
|
||||||
<td highlight="DownloadProgress" key="progress">
|
<td highlight="DownloadProgress" key="progress">
|
||||||
<span highlight="DownloadProgressHave" key="progressHave"
|
<span highlight="DownloadProgressHave" key="progressHave"
|
||||||
|
|||||||
@@ -385,8 +385,8 @@ var Highlights = Module("Highlight", {
|
|||||||
let group = args[0] && highlight.get(args[0]);
|
let group = args[0] && highlight.get(args[0]);
|
||||||
if (group)
|
if (group)
|
||||||
context.fork("extra", 0, this, function (context) [
|
context.fork("extra", 0, this, function (context) [
|
||||||
[String(group.extends), "Current Value"],
|
[String(group.extends), _("option.currentValue")],
|
||||||
[String(group.defaultExtends) || "", "Default Value"]
|
[String(group.defaultExtends) || "", _("option.defaultValue")]
|
||||||
]);
|
]);
|
||||||
context.fork("groups", 0, completion, "highlightGroup");
|
context.fork("groups", 0, completion, "highlightGroup");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ try {
|
|||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("javascript", {
|
defineModule("javascript", {
|
||||||
exports: ["JavaScript", "javascript"],
|
exports: ["JavaScript", "javascript"],
|
||||||
use: ["services", "template", "util"]
|
use: ["messages", "services", "template", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
let isPrototypeOf = Object.prototype.isPrototypeOf;
|
let isPrototypeOf = Object.prototype.isPrototypeOf;
|
||||||
@@ -128,7 +128,7 @@ var JavaScript = Module("javascript", {
|
|||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
util.reportError(e);
|
util.reportError(e);
|
||||||
this.context.message = "Error: " + e;
|
this.context.message = _("error.error", e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
@@ -598,7 +598,7 @@ var JavaScript = Module("javascript", {
|
|||||||
// Wait for a keypress before completing when there's no key
|
// Wait for a keypress before completing when there's no key
|
||||||
if (!this.context.tabPressed && key == "" && obj.length > 1) {
|
if (!this.context.tabPressed && key == "" && obj.length > 1) {
|
||||||
this.context.waitingForTab = true;
|
this.context.waitingForTab = true;
|
||||||
this.context.message = "Waiting for key press";
|
this.context.message = _("completion.waitingForKeyPress");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user