diff --git a/common/content/buffer.js b/common/content/buffer.js index 7ea61625..6ae6b157 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -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))]; diff --git a/common/content/commandline.js b/common/content/commandline.js index c64df4c2..fd53af33 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -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: diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 7f0a4930..19d89255 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -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]; } diff --git a/common/locale/en-US/messages.properties b/common/locale/en-US/messages.properties index 83c455b0..5194f358 100644 --- a/common/locale/en-US/messages.properties +++ b/common/locale/en-US/messages.properties @@ -49,6 +49,10 @@ buffer.multipleMatching-1 = More than one match for %S buffer.noClosed = No matching closed tab buffer.noAlternate = No alternate page buffer.backgroundLoaded = Background tab loaded: %S +buffer.noTitle = [No Title] +buffer.noName = [No Name] +buffer.bookmarked = bookmarked +buffer.prompt.uploadFile = Upload file: context.scriptGroup-1 = Script group for %S @@ -92,6 +96,8 @@ command.set.unknownOption-1 = E518: Unknown option: %S completion.waitingFor-1 = Waiting for %S completion.waitingForKeyPress = Waiting for key press +completion.matchIndex-2 = match %S of %S +completion.generating = Generating results... dactyl.parsingCommandLine-1 = Parsing command line options: %S dactyl.notCommand-2 = E492: Not a %S command: %S @@ -103,6 +109,7 @@ dactyl.noRCFile = No user RC file found dactyl.initialized-1 = %S fully initialized dactyl.sourced-1 = Sourced: %S dactyl.prompt.openMany-1 = This will open %S new tabs. Would you like to continue? (yes/[no]): +dactyl.yank-1 = Yank %S dialog.notAvailable-1 = Dialog %S not available @@ -233,6 +240,7 @@ status.link-1 = Link: %S style.none = No style found style.styles = styles +style.inline = inline time.total-1 = Total time: %S