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:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user