diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index ade210df..688c35e0 100644 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -485,7 +485,7 @@ var Bookmarks = Module("bookmarks", { "Delete a bookmark", function (args) { if (args.bang) - commandline.input("This will delete all bookmarks. Would you like to continue? (yes/[no]) ", + commandline.input(_("bookmark.prompt.deleteAll") + " ", function (resp) { if (resp && resp.match(/^y(es)?$/i)) { bookmarks.remove(Object.keys(bookmarkcache.bookmarks)); diff --git a/common/content/dactyl.js b/common/content/dactyl.js index c71b3d99..95356359 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1199,7 +1199,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { urls = dactyl.parseURLs(urls); if (urls.length > prefs.get("browser.tabs.maxOpenBeforeWarn", 20) && !force) - return commandline.input("This will open " + urls.length + " new tabs. Would you like to continue? (yes/[no]) ", + return commandline.input(_("dactyl.prompt.openMany", urls.length) + " ", function (resp) { if (resp && resp.match(/^y(es)?$/i)) dactyl.open(urls, params, true); diff --git a/common/content/editor.js b/common/content/editor.js index 1b62fac8..7c7a79d2 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -257,7 +257,7 @@ var Editor = Module("editor", { let line, column; if (!forceEditing && textBox && textBox.type == "password") { - commandline.input("Editing a password field externally will reveal the password. Would you like to continue? (yes/[no]): ", + commandline.input(_("editor.prompt.editPassword") + " ", function (resp) { if (resp && resp.match(/^y(es)?$/i)) editor.editFieldExternally(true); diff --git a/common/locale/en-US/messages.properties b/common/locale/en-US/messages.properties index 720050a9..3edee715 100644 --- a/common/locale/en-US/messages.properties +++ b/common/locale/en-US/messages.properties @@ -25,6 +25,7 @@ bookmark.allGone = All bookmarks deleted bookmark.removed-1 = Removed bookmark: %S bookmark.added-1 = Added bookmark: %S bookmark.deleted-1 = %S bookmark(s) deleted +bookmark.prompt.deleteAll = This will delete all bookmarks. Would you like to continue? (yes/[no]): buffer.fewerTab-1 = %S fewer tab buffer.fewerTabs-1 = %S fewer tabs @@ -82,21 +83,17 @@ dactyl.commandlineOpts-1 = Command-line options: %S 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]): dialog.notAvailable-1 = Dialog %S not available # TODO: merge with addon.*? download.uknownCommand = Unknown command download.commandNotAllowed = Command not allowed - -group.cantChangeBuiltin-1 = Cannot change %S in the builtin group -group.cantModifyBuiltin = Cannot modify builtin group -group.cantRemoveBuiltin = Cannot remove builtin group -group.noSuch-1 = No such group: %S -group.invalidName-1 = Invalid group name: %S -group.noCurrent = No current group +download.prompt.launchExternal = This will launch an executable download. Would you like to continue? (yes/[no]/always): editor.noEditor = No editor specified +editor.prompt.editPassword = Editing a password field externally will reveal the password. Would you like to continue? (yes/[no]): emenu.notFound-1 = Menu not found: %S @@ -107,6 +104,13 @@ finder.notFound-1 = E486: Pattern not found: %S finder.atTop = find hit TOP, continuing at BOTTOM finder.atBottom = find hit BOTTOM, continuing at TOP +group.cantChangeBuiltin-1 = Cannot change %S in the builtin group +group.cantModifyBuiltin = Cannot modify builtin group +group.cantRemoveBuiltin = Cannot remove builtin group +group.noSuch-1 = No such group: %S +group.invalidName-1 = Invalid group name: %S +group.noCurrent = No current group + help.dontPanic = E478: Don't panic! help.noFile-1 = Sorry, help file %S not found help.noTopic-1 = Sorry, no help for %S @@ -180,7 +184,7 @@ plugin.searchingFor-1 = Searching for %S plugin.searchingForIn-2 = Searching for %S in %S plugin.notReplacingContext-1 = Not replacing plugin context for %S -pref.prompt.resetAll-1 = Warning: Resetting all preferences may make %S unusable. Continue (yes/[no]): +pref.prompt.resetAll-1 = Warning: Resetting all preferences may make %S unusable. Would you like to continue (yes/[no]): print.toFile-1 = Printing to file: %S print.sending = Sending to printer... diff --git a/common/modules/downloads.jsm b/common/modules/downloads.jsm index 3a829aa0..62fc59d3 100644 --- a/common/modules/downloads.jsm +++ b/common/modules/downloads.jsm @@ -106,7 +106,7 @@ var Download = Class("Download", { let file = io.File(this.targetFile); if (file.isExecutable() && prefs.get("browser.download.manager.alertOnEXEOpen", true)) - this.list.modules.commandline.input("This will launch an executable download. Continue? (yes/[no]/always) ", + this.list.modules.commandline.input(_("download.prompt.launchExecutable") + " ", function (resp) { if (/^a(lways)$/i.test(resp)) { prefs.set("browser.download.manager.alertOnEXEOpen", false);