Bug 1890689 Don't pretend to pre-buffer with DynamicResampler r=pehrsons
[gecko.git] / python / l10n / fluent_migrations / bug_1856014_protectionsPanel_fixButtonLabels.py
blobd5541e91deed6bdab4717fc4c961eabd8a102aaa
1 # Any copyright is dedicated to the Public Domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
4 from fluent.migrate.helpers import transforms_from
7 def migrate(ctx):
8 """Bug 1856014 - Fix fluent schema for strings in protections panel, part {index}."""
10 file = "browser/browser/protectionsPanel.ftl"
11 ctx.add_transforms(
12 file,
13 file,
14 transforms_from(
15 """
16 protections-panel-not-blocking-why-etp-on-tooltip-label =
17 .label = {COPY_PATTERN(from_path, "protections-panel-not-blocking-why-etp-on-tooltip")}
18 protections-panel-not-blocking-why-etp-off-tooltip-label =
19 .label = {COPY_PATTERN(from_path, "protections-panel-not-blocking-why-etp-off-tooltip")}
20 """,
21 from_path=file,
24 ctx.add_transforms(
25 file,
26 file,
27 transforms_from(
28 """
29 protections-panel-cookie-banner-view-turn-off-label =
30 .label = {COPY_PATTERN(from_path, "protections-panel-cookie-banner-view-turn-off")}
31 protections-panel-cookie-banner-view-turn-on-label =
32 .label = {COPY_PATTERN(from_path, "protections-panel-cookie-banner-view-turn-on")}
33 """,
34 from_path=file,