mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +09:00
[Pale-Moon] Issue #1717 - Localize Padlock Tooltip
This commit is contained in:
parent
a3117f5b44
commit
024f61bf38
2 changed files with 29 additions and 5 deletions
|
|
@ -133,18 +133,37 @@ var padlock_PadLock =
|
|||
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 = "";
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue