bug_1972371_preferences_permissions.py (1220B)
1 # Any copyright is dedicated to the Public Domain. 2 # http://creativecommons.org/publicdomain/zero/1.0/ 3 4 from fluent.migrate import COPY_PATTERN 5 from fluent.migrate.helpers import transforms_from 6 7 8 def migrate(ctx): 9 """Bug 1972371 - Migrate permissions settings content for the settings redesign part {index}.""" 10 path = "browser/browser/preferences/preferences.ftl" 11 ctx.add_transforms( 12 path, 13 path, 14 transforms_from( 15 """ 16 permissions-location2 = 17 .label = {COPY_PATTERN(from_path, "permissions-location")} 18 permissions-localhost2 = 19 .label = {COPY_PATTERN(from_path, "permissions-localhost")} 20 permissions-local-network2 = 21 .label = {COPY_PATTERN(from_path, "permissions-local-network")} 22 permissions-xr2 = 23 .label = {COPY_PATTERN(from_path, "permissions-xr")} 24 permissions-camera2 = 25 .label = {COPY_PATTERN(from_path, "permissions-camera")} 26 permissions-microphone2 = 27 .label = {COPY_PATTERN(from_path, "permissions-microphone")} 28 permissions-notification2 = 29 .label = {COPY_PATTERN(from_path, "permissions-notification")} 30 permissions-autoplay2 = 31 .label = {COPY_PATTERN(from_path, "permissions-autoplay")} 32 """, 33 from_path=path, 34 ), 35 )