Skip to content

Commit 4fc8c81

Browse files
committed
Bug 1862982 - fix fluent schema for cookie banner blocker cancel button. r=fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D193235
1 parent c038ce2 commit 4fc8c81

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

browser/components/controlcenter/content/protectionsPanel.inc.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397
</vbox>
398398
<html:moz-button-group class="panel-footer protections-popup-cookieBannerView-footer">
399399
<button id="protections-popup-cookieBannerView-cancel"
400-
data-l10n-id="protections-panel-cookie-banner-view-cancel"
400+
data-l10n-id="protections-panel-cookie-banner-view-cancel-label"
401401
oncommand="gProtectionsHandler._protectionsPopupMultiView.goBack();"
402402
class="footer-button" />
403403
<button id="protections-popup-cookieBannerView-enable-button"

browser/locales/en-US/browser/protectionsPanel.ftl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ protections-panel-cookie-banner-blocker-view-turn-off-for-site = Turn off Cookie
143143
protections-panel-cookie-banner-blocker-view-turn-on-for-site = Turn on Cookie Banner Blocker for this site?
144144
protections-panel-cookie-banner-view-cookie-clear-warning = { -brand-short-name } will clear this site’s cookies and refresh the page. Clearing all cookies may sign you out or empty shopping carts.
145145
protections-panel-cookie-banner-blocker-view-turn-on-description = Turn on and { -brand-short-name } will try to automatically refuse cookie banners on this site.
146-
protections-panel-cookie-banner-view-cancel = Cancel
146+
protections-panel-cookie-banner-view-cancel-label =
147+
.label = Cancel
147148
protections-panel-cookie-banner-view-turn-off-label =
148149
.label = Turn Off
149150
protections-panel-cookie-banner-view-turn-on-label =
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Any copyright is dedicated to the Public Domain.
2+
# http://creativecommons.org/publicdomain/zero/1.0/
3+
4+
from fluent.migrate.helpers import transforms_from
5+
6+
7+
def migrate(ctx):
8+
"""Bug 1862982 - Fix fluent schema for cookie banner cancel button, part {index}."""
9+
10+
file = "browser/browser/protectionsPanel.ftl"
11+
ctx.add_transforms(
12+
file,
13+
file,
14+
transforms_from(
15+
"""
16+
protections-panel-cookie-banner-view-cancel-label =
17+
.label = {COPY_PATTERN(from_path, "protections-panel-cookie-banner-view-cancel")}
18+
""",
19+
from_path=file,
20+
),
21+
)

0 commit comments

Comments
 (0)