Source code
Revision control
Copy as Markdown
Other Tools
# Any copyright is dedicated to the Public Domain.
from fluent.migrate.helpers import transforms_from
def migrate(ctx):
source = "browser/browser/preferences/preferences.ftl"
target = source
ctx.add_transforms(
target,
target,
transforms_from(
"""
update-application-radio-group =
.aria-label = {COPY_PATTERN(from_path, "update-application-installation.label")}
history-mode-radio-group =
.aria-label = {COPY_PATTERN(from_path, "history-group.label")}
preferences-doh-radio-group =
.aria-label = {COPY_PATTERN(from_path, "preferences-doh-group-message2")}
preferences-etp-level-radio-group =
.aria-label = {COPY_PATTERN(from_path, "preferences-etp-status-header.label")}
""",
from_path=source,
),
)
source = "browser/browser/aiFeatures.ftl"
target = source
ctx.add_transforms(
target,
target,
transforms_from(
"""
smart-window-model-radio-group =
.aria-label = {COPY_PATTERN(from_path, "smart-window-model-section.label")}
""",
from_path=source,
),
)