Bug 1639615 - Update Summary to reflect if protections are turned on/off. r=prathiksha,fluent-reviewers,flod

Differential Revision: https://phabricator.services.mozilla.com/D76170
This commit is contained in:
Erica Wright 2020-05-22 06:29:03 +00:00
Родитель 2a0719a650
Коммит ec9e227cc6
3 изменённых файлов: 8 добавлений и 1 удалений

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

@ -26,7 +26,7 @@
<body>
<div id="report-content">
<h1 id="report-title" data-l10n-id="protection-report-page-content-title"></h1>
<p id="report-summary" data-l10n-id="protection-report-page-summary"></p>
<p id="report-summary" data-l10n-id="protection-report-page-summary-default"></p>
<p id="protection-settings" data-l10n-id="protection-report-settings-link" role="link" tabindex="0"></p>
<div class="card card-no-hover etp-card">
<div class="card-header">

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

@ -255,6 +255,9 @@ document.addEventListener("DOMContentLoaded", e => {
document
.querySelector(".etp-card .card-title")
.setAttribute("data-l10n-id", "etp-card-title-custom-not-blocking");
document
.getElementById("report-summary")
.setAttribute("data-l10n-id", "protection-report-page-summary");
document.querySelector(".etp-card").classList.add("custom-not-blocking");
// Hide the link to settings from the header, so we are not showing two links.

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

@ -27,7 +27,11 @@ graph-week-summary-private-window = Trackers { -brand-short-name } blocked this
protection-report-webpage-title = Protections Dashboard
protection-report-page-content-title = Protections Dashboard
# This message shows when all privacy protections are turned off, which is why we use the word "can", Firefox is able to protect your privacy, but it is currently not.
protection-report-page-summary = { -brand-short-name } can protect your privacy behind the scenes while you browse. This is a personalized summary of those protections, including tools to take control of your online security.
# This message shows when at least some protections are turned on, we are more assertive compared to the message above, Firefox is actively protecting you.
protection-report-page-summary-default = { -brand-short-name } protects your privacy behind the scenes while you browse. This is a personalized summary of those protections, including tools to take control of your online security.
protection-report-settings-link = Manage your privacy and security settings
etp-card-title-always = Enhanced Tracking Protection: Always On