Bug 1565266 - Adds 'certificate-viewer-' prefix and adds certificate labels to Fluent IDs. r=johannh,fluent-reviewers,flod

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
dleblanccyr 2019-07-14 17:22:47 +00:00
Родитель 9522efa85a
Коммит 362d3dfbda
3 изменённых файлов: 48 добавлений и 2 удалений

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

@ -7,3 +7,46 @@
### and strings are likely to change often.
certificate-viewer-certificate-section-title = Certificate
## Certificate information labels
certificate-viewer-algorithm = Algorithm
certificate-viewer-certificate-authority = Certificate Authority
certificate-viewer-cipher-suite = Cipher Suite
certificate-viewer-common-name = Common Name
certificate-viewer-country = Country
certificate-viewer-curve = Curve
certificate-viewer-distribution-point = Distribution Point
certificate-viewer-dns-name = DNS Name
certificate-viewer-exponent = Exponent
certificate-viewer-id = ID
certificate-viewer-key-exchange-group = Key Exchange Group
certificate-viewer-key-id = Key ID
certificate-viewer-key-size = Key Size
certificate-viewer-locality = Locality
certificate-viewer-location = Location
certificate-viewer-logid = Log ID
certificate-viewer-method = Method
certificate-viewer-modulus = Modulus
certificate-viewer-name = Name
certificate-viewer-not-after = Not After
certificate-viewer-not-before = Not Before
certificate-viewer-organization = Organization
certificate-viewer-organizational-unit = Organizational Unit
certificate-viewer-policy = Policy
certificate-viewer-protocol = Protocol
certificate-viewer-public-value = Public Value
certificate-viewer-purposes = Purposes
certificate-viewer-qualifier = Qualifier
certificate-viewer-qualifiers = Qualifiers
certificate-viewer-required = Required
certificate-viewer-state-province = State/Province
certificate-viewer-sha-1 = SHA-1
certificate-viewer-sha-256 = SHA-256
certificate-viewer-serial-number = Serial Number
certificate-viewer-signature-algorithm = Signature Algorithm
certificate-viewer-signaturealgorithm = Signature Algorithm
certificate-viewer-signature-scheme = Signature Scheme
certificate-viewer-timestamp = Timestamp
certificate-viewer-value = Value
certificate-viewer-version = Version

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

@ -29,7 +29,10 @@ class CertificateSection extends HTMLElement {
let certificateTabs = this.shadowRoot.querySelector(".certificate-tabs");
let title = this.shadowRoot.querySelector(".title");
title.setAttribute("data-l10n-id", "certificate-section-title");
title.setAttribute(
"data-l10n-id",
"certificate-viewer-certificate-section-title"
);
// TODO: Render based on certificate error.
// https://bugzilla.mozilla.org/show_bug.cgi?id=1560513

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

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