mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 20:24:12 +01:00
More ad hoc i18n work.
This commit is contained in:
@@ -807,15 +807,15 @@ var Buffer = Module("buffer", {
|
||||
showPageInfo: function showPageInfo(verbose, sections) {
|
||||
// Ctrl-g single line output
|
||||
if (!verbose) {
|
||||
let file = content.location.pathname.split("/").pop() || "[No Name]";
|
||||
let title = content.document.title || "[No Title]";
|
||||
let file = content.location.pathname.split("/").pop() || _("buffer.noName");
|
||||
let title = content.document.title || _("buffer.noTitle");
|
||||
|
||||
let info = template.map("gf",
|
||||
function (opt) template.map(buffer.pageInfo[opt].action(), util.identity, ", "),
|
||||
", ");
|
||||
|
||||
if (bookmarkcache.isBookmarked(this.URL))
|
||||
info += ", bookmarked";
|
||||
info += ", " + _("buffer.bookmarked");
|
||||
|
||||
let pageInfoText = <>{file.quote()} [{info}] {title}</>;
|
||||
dactyl.echo(pageInfoText, commandline.FORCE_SINGLELINE);
|
||||
@@ -1221,7 +1221,7 @@ var Buffer = Module("buffer", {
|
||||
},
|
||||
|
||||
openUploadPrompt: function openUploadPrompt(elem) {
|
||||
io.CommandFileMode("Upload file: ", {
|
||||
io.CommandFileMode(_("buffer.prompt.uploadFile") + " ", {
|
||||
onSubmit: function onSubmit(path) {
|
||||
let file = io.File(path);
|
||||
dactyl.assert(file.exists());
|
||||
@@ -1443,7 +1443,7 @@ var Buffer = Module("buffer", {
|
||||
let styles = iter([s.title, []] for (s in values(buffer.alternateStyleSheets))).toObject();
|
||||
|
||||
buffer.alternateStyleSheets.forEach(function (style) {
|
||||
styles[style.title].push(style.href || "inline");
|
||||
styles[style.title].push(style.href || _("style.inline"));
|
||||
});
|
||||
|
||||
context.completions = [[title, href.join(", ")] for ([title, href] in Iterator(styles))];
|
||||
|
||||
@@ -1305,7 +1305,7 @@ var CommandLine = Module("commandline", {
|
||||
if (this.selected == null)
|
||||
statusline.progress = "";
|
||||
else
|
||||
statusline.progress = "match " + (this.selected + 1) + " of " + this.items.length;
|
||||
statusline.progress = _("completion.matchIndex", this.selected + 1, this.items.length);
|
||||
}
|
||||
|
||||
if (this.items.length == 0)
|
||||
@@ -1816,7 +1816,7 @@ var ItemList = Class("ItemList", {
|
||||
|
||||
onKeyPress: function onKeyPress(event) false
|
||||
}, {
|
||||
WAITING_MESSAGE: "Generating results..."
|
||||
WAITING_MESSAGE: _("completion.generating")
|
||||
});
|
||||
|
||||
// vim: set fdm=marker sw=4 ts=4 et:
|
||||
|
||||
@@ -308,7 +308,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
clipboardHelper.copyString(str);
|
||||
|
||||
if (verbose) {
|
||||
let message = { message: "Yanked " + str };
|
||||
let message = { message: _("dactyl.yank", str) };
|
||||
try {
|
||||
message.domains = [util.newURI(str).host];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user