mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:27:59 +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);
|
||||
|
||||
@@ -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...
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user