1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 04:35:46 +01:00

Move input prompt strings to the properties file.

This commit is contained in:
Doug Kearns
2011-03-13 13:45:47 +11:00
parent cffbae4e1b
commit 3d09a0e843
5 changed files with 16 additions and 12 deletions

View File

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

View File

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

View File

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