1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 07:48:00 +01:00

More ad hoc i18n work.

This commit is contained in:
Doug Kearns
2011-03-20 00:46:11 +11:00
parent 1b197039a5
commit de04fc99d4
4 changed files with 16 additions and 8 deletions

View File

@@ -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))];

View File

@@ -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:

View File

@@ -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];
}

View File

@@ -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