Browse Source

[Pale-Moon] Issue #1717 - Localize Padlock Tooltip

pull/24/head
Andy 2 years ago committed by Roy Tam
parent
commit
024f61bf38
  1. 29
      application/palemoon/base/content/padlock.js
  2. 5
      application/palemoon/locales/en-US/chrome/browser/browser.properties

29
application/palemoon/base/content/padlock.js

@ -132,19 +132,38 @@ var padlock_PadLock =
secbut.hidden = true;
secbut.removeAttribute("level");
}
let s_ev = "Extended Validated";
let s_hi = "Secure";
let s_lo = "Weak security";
let s_no = "Not secure";
let gLocale = document.getElementById("bundle_browser");
if(!!gLocale) {
let n_ev = gLocale.getString("identity.padlock.ev");
if(n_ev != null)
s_ev = n_ev;
let n_hi = gLocale.getString("identity.padlock.high");
if(n_hi != null)
s_hi = n_hi;
let n_lo = gLocale.getString("identity.padlock.low");
if(n_lo != null)
s_lo = n_lo;
let n_no = gLocale.getString("identity.padlock.broken");
if(n_no != null)
s_no = n_no;
}
switch (level) {
case "ev":
sectooltip = "Extended Validated";
sectooltip = s_ev;
break;
case "high":
sectooltip = "Secure";
sectooltip = s_hi;
break;
case "low":
sectooltip = "Weak security";
sectooltip = s_lo;
break;
case "broken":
sectooltip = "Not secure";
sectooltip = s_no;
break;
default:
sectooltip = "";

5
application/palemoon/locales/en-US/chrome/browser/browser.properties

@ -280,6 +280,11 @@ identity.mixed_content=Your connection to this site is only partially encrypted,
identity.unknown.tooltip=This website does not supply identity information.
identity.padlock.ev=Extended Validated
identity.padlock.high=Secure
identity.padlock.low=Weak security
identity.padlock.broken=Not secure
identity.ownerUnknown2=(unknown)
# Edit Bookmark UI

Loading…
Cancel
Save