Bug 1810052 - update strings for protections panel and expose to localization. r=fluent-reviewers,flod

Differential Revision: https://phabricator.services.mozilla.com/D168011
This commit is contained in:
DJ 2023-02-06 19:09:01 +00:00
parent be70954bd4
commit 1e91f6882d
6 changed files with 24 additions and 28 deletions

View File

@ -71,7 +71,6 @@
<link rel="localization" href="browser/browserSets.ftl"/>
<link rel="localization" href="browser/menubar.ftl"/>
<link rel="localization" href="browser/protectionsPanel.ftl"/>
<link rel="localization" href="preview/protectionsPanel.ftl"/>
<link rel="localization" href="browser/appmenu.ftl"/>
<link rel="localization" href="browser/panelUI.ftl"/>
<link rel="localization" href="preview/identityCredentialNotification.ftl"/>

View File

@ -1,25 +0,0 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
### These are additional strings for the protections panel which is opened through the shield icon in the url bar.
protections-panel-cookie-banner-handling-header = Cookie Banner Reduction
protections-panel-cookie-banner-handling-enabled = On for this site
protections-panel-cookie-banner-handling-disabled = Off for this site
protections-panel-cookie-banner-handling-undetected = No cookie banner detected
protections-panel-cookie-banner-view-title =
.title = Cookie Banner Reduction
protections-panel-cookie-banner-view-go-back =
.aria-label = Back
# Variables
# $host (String): the hostname of the site that is being displayed.
protections-panel-cookie-banner-view-turn-off-for-site = Turn off Cookie Banner Reduction for { $host }?
# Variables
# $host (String): the hostname of the site that is being displayed.
protections-panel-cookie-banner-view-turn-on-for-site = Turn on Cookie Banner Reduction for { $host }?
protections-panel-cookie-banner-view-cookie-clear-warning = { -brand-shorter-name } will clear this sites cookies and refresh the page. Clearing all cookies may sign you out or empty shopping carts.
protections-panel-cookie-banner-view-cancel = Cancel
protections-panel-cookie-banner-view-turn-off = Turn off
protections-panel-cookie-banner-view-turn-on = Turn on

View File

@ -410,6 +410,7 @@
<description id="cookieBannerView-disable-site" data-l10n-id="protections-panel-cookie-banner-view-turn-off-for-site" data-l10n-args='{"host":""}'></description>
<description id="cookieBannerView-enable-site" data-l10n-id="protections-panel-cookie-banner-view-turn-on-for-site" data-l10n-args='{"host":""}'></description>
<description id="cookieBannerView-disable-site-warning" data-l10n-id="protections-panel-cookie-banner-view-cookie-clear-warning"></description>
<description id="cookieBannerView-enable-site-description" data-l10n-id="protections-panel-cookie-banner-view-turn-on-description"></description>
</vbox>
<vbox class="panel-footer protections-popup-cookieBannerView-footer">
<button id="protections-popup-cookieBannerView-cancel"

View File

@ -110,3 +110,24 @@ protections-panel-content-blocking-breakage-report-view-cancel =
.label = Cancel
protections-panel-content-blocking-breakage-report-view-send-report =
.label = Send Report
# Cookie Banner Handling
protections-panel-cookie-banner-handling-header = Cookie Banner Reduction
protections-panel-cookie-banner-handling-enabled = On for this site
protections-panel-cookie-banner-handling-disabled = Off for this site
protections-panel-cookie-banner-handling-undetected = Site currently not supported
protections-panel-cookie-banner-view-title =
.title = Cookie Banner Reduction
protections-panel-cookie-banner-view-go-back =
.aria-label = Back
# Variables
# $host (String): the hostname of the site that is being displayed.
protections-panel-cookie-banner-view-turn-off-for-site = Turn off Cookie Banner Reduction for { $host }?
protections-panel-cookie-banner-view-turn-on-for-site = Turn on Cookie Banner Reduction for this site?
protections-panel-cookie-banner-view-cookie-clear-warning = { -brand-short-name } will clear this sites cookies and refresh the page. Clearing all cookies may sign you out or empty shopping carts.
protections-panel-cookie-banner-view-turn-on-description = { -brand-short-name } tries to automatically reject all cookie requests on supported sites.
protections-panel-cookie-banner-view-cancel = Cancel
protections-panel-cookie-banner-view-turn-off = Turn Off
protections-panel-cookie-banner-view-turn-on = Turn On

View File

@ -13,7 +13,6 @@
preview/interventions.ftl (../components/urlbar/content/interventions.ftl)
preview/firefoxSuggest.ftl (../components/urlbar/content/firefoxSuggest.ftl)
preview/identityCredentialNotification.ftl (../components/credentialmanager/identityCredentialNotification.ftl)
preview/protectionsPanel.ftl (../base/content/protectionsPanel.ftl)
preview/cookieBannerPreferences.ftl (../components/preferences/cookieBannerPreferences.ftl)
locales-preview/migrationWizard.ftl (../locales-preview/migrationWizard.ftl)
browser (%browser/**/*.ftl)

View File

@ -854,7 +854,8 @@
/* Cookie banner enabled for site, so hide enable controls */
#protections-popup-cookieBannerView:not([hasException]) #protections-popup-cookieBannerView-enable-button,
#protections-popup-cookieBannerView:not([hasException]) description#cookieBannerView-enable-site {
#protections-popup-cookieBannerView:not([hasException]) description#cookieBannerView-enable-site,
#protections-popup-cookieBannerView:not([hasException]) description#cookieBannerView-enable-site-description {
display: none;
}