Bug 1890689 Don't pretend to pre-buffer with DynamicResampler r=pehrsons
[gecko.git] / python / l10n / fluent_migrations / bug_1812135_newtab_moz_toggle_labels.py
blob27db47b0b5d4583ff81a60aaa9b522d8ee8669ef
1 # Any copyright is dedicated to the Public Domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
4 import fluent.syntax.ast as FTL
5 from fluent.migrate.helpers import transforms_from
8 def migrate(ctx):
9 """Bug 1812135 - Convert some newtab customiation panel strings to use a label, part {index}"""
11 translations_ftl = "browser/browser/newtab/newtab.ftl"
13 ctx.add_transforms(
14 translations_ftl,
15 translations_ftl,
16 transforms_from(
17 """
18 newtab-custom-shortcuts-toggle =
19 .label = {COPY_PATTERN(from_path, "newtab-custom-shortcuts-title")}
20 .description = {COPY_PATTERN(from_path, "newtab-custom-shortcuts-subtitle")}
21 newtab-custom-pocket-toggle =
22 .label = {COPY_PATTERN(from_path, "newtab-custom-pocket-title")}
23 .description = {COPY_PATTERN(from_path, "newtab-custom-pocket-subtitle")}
24 newtab-custom-recent-toggle =
25 .label = {COPY_PATTERN(from_path, "newtab-custom-recent-title")}
26 .description = {COPY_PATTERN(from_path, "newtab-custom-recent-subtitle")}
27 """,
28 from_path=translations_ftl,