Bug 1571831 - Adds some l10n missing strings.r=johannh,fluent-reviewers,flod

Differential Revision: https://phabricator.services.mozilla.com/D40909

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Carolina 2019-08-08 05:59:42 +00:00
Родитель 1274c8140e
Коммит e8b6b422b5
2 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -19,6 +19,8 @@ certificate-viewer-algorithm = Algorithm
certificate-viewer-certificate-authority = Certificate Authority
certificate-viewer-cipher-suite = Cipher Suite
certificate-viewer-common-name = Common Name
# Inc. means Incorporated, e.g GitHub is incorporated in Delaware
certificate-viewer-inc-country = Inc. Country
certificate-viewer-country = Country
certificate-viewer-curve = Curve
certificate-viewer-distribution-point = Distribution Point
@ -45,6 +47,8 @@ certificate-viewer-purposes = Purposes
certificate-viewer-qualifier = Qualifier
certificate-viewer-qualifiers = Qualifiers
certificate-viewer-required = Required
# Inc. means Incorporated, e.g GitHub is incorporated in Delaware
certificate-viewer-inc-state-province = Inc. State/Province
certificate-viewer-state-province = State/Province
certificate-viewer-sha-1 = SHA-1
certificate-viewer-sha-256 = SHA-256
@ -55,3 +59,4 @@ certificate-viewer-signature-scheme = Signature Scheme
certificate-viewer-timestamp = Timestamp
certificate-viewer-value = Value
certificate-viewer-version = Version
certificate-viewer-business-category = Business Category

Просмотреть файл

@ -23,7 +23,12 @@ export class InfoItem extends HTMLElement {
render() {
let label = this.shadowRoot.querySelector("label");
let labelText = this.item.label.replace(/\s+/g, "-").toLowerCase();
let labelText = this.item.label
.replace(/\s+/g, "-")
.replace(/\./g, "")
.replace(/\//g, "")
.replace(/--/g, "-")
.toLowerCase();
label.setAttribute("data-l10n-id", "certificate-viewer-" + labelText);
let info = this.shadowRoot.querySelector(".info");