fune/python/l10n/fluent_migrations/bug_1860606_remove_migration_ftl.py
Mike Conley 3ecc7966f4 Bug 1860606 - Get rid of migration.ftl in favour of migrationWizard.ftl. r=kpatenio,fluent-reviewers,bolsson
migration.ftl was used by the old, legacy XUL migration dialog that was removed
in bug 1824851.

There were still a few strings being used by migration.ftl, but I've moved those
over to migrationWizard.ftl, and gone ahead and just removed the old file.

Differential Revision: https://phabricator.services.mozilla.com/D192509
2023-11-02 22:03:26 +00:00

27 lines
939 B
Python

# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
from fluent.migrate.helpers import transforms_from
def migrate(ctx):
"""Bug 1860606 - Get rid of migration.ftl in favour of migrationWizard.ftl, part {index}."""
source = "browser/browser/migration.ftl"
target = "browser/browser/migrationWizard.ftl"
ctx.add_transforms(
target,
target,
transforms_from(
"""
migration-source-name-ie = {COPY_PATTERN(from_path, "source-name-ie")}
migration-source-name-edge = {COPY_PATTERN(from_path, "source-name-edge")}
migration-source-name-chrome = {COPY_PATTERN(from_path, "source-name-chrome")}
migration-imported-safari-reading-list = {COPY_PATTERN(from_path, "imported-safari-reading-list")}
migration-imported-edge-reading-list = {COPY_PATTERN(from_path, "imported-edge-reading-list")}
""",
from_path=source,
),
)