[Pkg-privacy-commits] [xul-ext-monkeysphere] 115/296: updating default status messages

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:31 UTC 2015


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

infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.

commit d4b5dd109de3ecb9cac833dec3ef03f3959874a4
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Sat Mar 6 13:14:20 2010 -0500

    updating default status messages
---
 chrome/content/monkeysphere.js | 11 ++++-------
 chrome/locale/en-US/messages   |  2 +-
 2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index 8317e69..23fc637 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -242,13 +242,10 @@ var monkeysphere = {
 ////////////////////////////////////////////////////////////
   
   getDefaultStatusText: function(state) {
-    var labels  = {
-      monkeysphere.states.ERROR:  "statusError",
-      monkeysphere.states.NEUTRAL: "statusNeutral",
-      monkeysphere.states.INPROGRESS: "statusInProgress",
-      monkeysphere.states.VALID: "statusValid",
-      monkeysphere.states.NOTVALID: "statusNotValid"
-    };
+    var labels = {};
+    for (state in monkeysphere.states) {
+      labels[monkeysphere.states.state] = "status" + state;
+    }
     monkeysphere.messages.getString(labels[state] || "xulError");
   },
 
diff --git a/chrome/locale/en-US/messages b/chrome/locale/en-US/messages
index a6dd3d2..f37701d 100644
--- a/chrome/locale/en-US/messages
+++ b/chrome/locale/en-US/messages
@@ -17,4 +17,4 @@ statusNonHTTPS=Monkeysphere: non-https website (scheme is '%1$S').
 statusNoCert=Monkeysphere: unable to retrieve a certificate for %1$S
 statusAlreadyValid=Monkeysphere: site already trusted.
 statusNeedsPermission=Monkeysphere: permission required to query validation agent.
-statusInProgress=Monkeysphere: querying validation agent...
+statusINPROGRESS=Monkeysphere: querying validation agent...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git



More information about the Pkg-privacy-commits mailing list