bug_1998829_settings_redesign_stories_description.py (698B)
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 1998829 - Add 'Stories' section to Firefox Home Settings Redesign, part {index}""" 9 10 source = "browser/browser/preferences/preferences.ftl" 11 target = source 12 13 ctx.add_transforms( 14 target, 15 target, 16 transforms_from( 17 """ 18 home-prefs-stories-header2 = 19 .label = { COPY_PATTERN(from_path, "home-prefs-stories-header.label")} 20 .description = { COPY_PATTERN(from_path, "home-prefs-recommended-by-description-generic")} 21 """, 22 from_path=source, 23 ), 24 )