bug_2009047_newtab_widget_manage_title.py (702B)
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 2009047 - Add strings for Manage Widgets panel in Customize panel, part {index}""" 9 10 source = "browser/browser/newtab/newtab.ftl" 11 target = source 12 13 ctx.add_transforms( 14 target, 15 target, 16 transforms_from( 17 """ 18 newtab-custom-widget-section-toggle = 19 .label = { COPY_PATTERN(from_path, "newtab-custom-widget-section-title") } 20 21 newtab-widget-manage-title = { COPY_PATTERN(from_path, "newtab-custom-widget-section-title") } 22 """, 23 from_path=source, 24 ), 25 )