bug_1972069_search_suggestions.py (621B)
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 1972069 - Convert search engine suggestions section of search settings to config-based prefs, part {index}.""" 9 10 target = "browser/browser/preferences/preferences.ftl" 11 12 ctx.add_transforms( 13 target, 14 target, 15 transforms_from( 16 """ 17 search-suggestions-cant-show-2 = 18 .message = {COPY_PATTERN(from_path, "search-suggestions-cant-show.message")} 19 """, 20 from_path=target, 21 ), 22 )