[Pkg-mozext-commits] [perspectives-extension] 09/22: Pers_notify - Add button to hide notification boxes

David Prévot taffit at moszumanska.debian.org
Wed Feb 26 22:23:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch debian
in repository perspectives-extension.

commit 3d0bdd0bca72c27f2d88a1564145951b1edbb299
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Mon Feb 10 20:17:05 2014 -0700

    Pers_notify - Add button to hide notification boxes
    
    That's a friendlier UI than forcing them to go edit preferences
---
 plugin/chrome/content/notify.js                | 8 ++++++++
 plugin/chrome/locale/de/notaries.properties    | 1 +
 plugin/chrome/locale/en-US/notaries.properties | 1 +
 plugin/chrome/locale/es-MX/notaries.properties | 1 +
 plugin/chrome/locale/fi/notaries.properties    | 1 +
 plugin/chrome/locale/fr/notaries.properties    | 1 +
 plugin/chrome/locale/nl/notaries.properties    | 1 +
 plugin/chrome/locale/zh-CN/notaries.properties | 1 +
 8 files changed, 15 insertions(+)

diff --git a/plugin/chrome/content/notify.js b/plugin/chrome/content/notify.js
index b483a76..96ff2f8 100644
--- a/plugin/chrome/content/notify.js
+++ b/plugin/chrome/content/notify.js
@@ -188,6 +188,14 @@ var Pers_notify = {
 						ti.browser.loadOneTab("chrome://perspectives/content/help.xhtml",
 									 null, null, null, false);
 					} 
+				},
+				{
+					label: Perspectives.strbundle.getString("hideNotificationReminders"),
+					accessKey : "",
+					callback: function() {
+						Perspectives.root_prefs.
+							setBoolPref("extensions.perspectives.show_permission_reminder", false);
+					}
 				}
 			];
 			this.notifyGeneric(ti.browser, priority, message, buttons);
diff --git a/plugin/chrome/locale/de/notaries.properties b/plugin/chrome/locale/de/notaries.properties
index 12655c4..993d2c9 100644
--- a/plugin/chrome/locale/de/notaries.properties
+++ b/plugin/chrome/locale/de/notaries.properties
@@ -59,3 +59,4 @@ updatePromptTitle=Perspectives Update
 updatePrompt=Thank you for updating Perspectives. As of Perspectives 4.0, the default setting is to contact notaries for *all* HTTPS sites rather than only when there is a certificate error.\n\nDo you want to contact notaries for all HTTPS sites?\n(This can be changed at any time in the Preferences window)
 updatePromptButtonYes=Yes, contact notaries for all HTTPS sites
 updatePromptButtonNo=No, only check for websites with certificate errors
+hideNotificationReminders=Hide these messages
diff --git a/plugin/chrome/locale/en-US/notaries.properties b/plugin/chrome/locale/en-US/notaries.properties
index 1c0c286..e41c065 100755
--- a/plugin/chrome/locale/en-US/notaries.properties
+++ b/plugin/chrome/locale/en-US/notaries.properties
@@ -4,6 +4,7 @@ unableToVerify=Suspected attack: Perspectives was unable to verify the security
 reportThis=Report This
 yesContactNotaries=Yes, contact Notaries
 learnMore=Learn More
+hideNotificationReminders=Hide these messages
 noRepliesReceived=Warning: Perspectives received no notary replies. This may be an attack or you may be behind a firewall/proxy that blocks notary requests.
 firewallHelp=Firewall/Proxy Help
 noDataError=Perspectives: No Data. Browser provided an empty URI for this connection. Try hitting refresh.
diff --git a/plugin/chrome/locale/es-MX/notaries.properties b/plugin/chrome/locale/es-MX/notaries.properties
index 11a528c..587f15f 100644
--- a/plugin/chrome/locale/es-MX/notaries.properties
+++ b/plugin/chrome/locale/es-MX/notaries.properties
@@ -60,3 +60,4 @@ updatePromptTitle=Perspectives Update
 updatePrompt=Thank you for updating Perspectives. As of Perspectives 4.0, the default setting is to contact notaries for *all* HTTPS sites rather than only when there is a certificate error.\n\nDo you want to contact notaries for all HTTPS sites?\n(This can be changed at any time in the Preferences window)
 updatePromptButtonYes=Yes, contact notaries for all HTTPS sites
 updatePromptButtonNo=No, only check for websites with certificate errors
+hideNotificationReminders=Hide these messages
diff --git a/plugin/chrome/locale/fi/notaries.properties b/plugin/chrome/locale/fi/notaries.properties
index ecb5d35..96c403e 100644
--- a/plugin/chrome/locale/fi/notaries.properties
+++ b/plugin/chrome/locale/fi/notaries.properties
@@ -4,6 +4,7 @@ unableToVerify=Suspected attack: Perspectives was unable to verify the security
 reportThis=Report This
 yesContactNotaries=Yes, contact Notaries
 learnMore=Learn More
+hideNotificationReminders=Hide these messages
 noRepliesReceived=Warning: Perspectives received no notary replies. This may be an attack or you may be behind a firewall/proxy that blocks notary requests.
 firewallHelp=Firewall/Proxy Help
 noDataError=Perspectives: No Data. Browser provided an empty URI for this connection. Try hitting refresh.
diff --git a/plugin/chrome/locale/fr/notaries.properties b/plugin/chrome/locale/fr/notaries.properties
index 829d546..3997924 100644
--- a/plugin/chrome/locale/fr/notaries.properties
+++ b/plugin/chrome/locale/fr/notaries.properties
@@ -58,3 +58,4 @@ updatePromptTitle=Perspectives Update
 updatePrompt=Thank you for updating Perspectives. As of Perspectives 4.0, the default setting is to contact notaries for *all* HTTPS sites rather than only when there is a certificate error.\n\nDo you want to contact notaries for all HTTPS sites?\n(This can be changed at any time in the Preferences window)
 updatePromptButtonYes=Yes, contact notaries for all HTTPS sites
 updatePromptButtonNo=No, only check for websites with certificate errors
+hideNotificationReminders=Hide these messages
diff --git a/plugin/chrome/locale/nl/notaries.properties b/plugin/chrome/locale/nl/notaries.properties
index 66a87ea..88cd3f1 100644
--- a/plugin/chrome/locale/nl/notaries.properties
+++ b/plugin/chrome/locale/nl/notaries.properties
@@ -57,3 +57,4 @@ updatePromptTitle=Perspectives Update
 updatePrompt=Thank you for updating Perspectives. As of Perspectives 4.0, the default setting is to contact notaries for *all* HTTPS sites rather than only when there is a certificate error.\n\nDo you want to contact notaries for all HTTPS sites?\n(This can be changed at any time in the Preferences window)
 updatePromptButtonYes=Yes, contact notaries for all HTTPS sites
 updatePromptButtonNo=No, only check for websites with certificate errors
+hideNotificationReminders=Hide these messages
diff --git a/plugin/chrome/locale/zh-CN/notaries.properties b/plugin/chrome/locale/zh-CN/notaries.properties
index cd75b76..1798f91 100755
--- a/plugin/chrome/locale/zh-CN/notaries.properties
+++ b/plugin/chrome/locale/zh-CN/notaries.properties
@@ -57,3 +57,4 @@ updatePromptTitle=Perspectives Update
 updatePrompt=Thank you for updating Perspectives. As of Perspectives 4.0, the default setting is to contact notaries for *all* HTTPS sites rather than only when there is a certificate error.\n\nDo you want to contact notaries for all HTTPS sites?\n(This can be changed at any time in the Preferences window)
 updatePromptButtonYes=Yes, contact notaries for all HTTPS sites
 updatePromptButtonNo=No, only check for websites with certificate errors
+hideNotificationReminders=Hide these messages

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git



More information about the Pkg-mozext-commits mailing list