summaryrefslogtreecommitdiffstats
path: root/python/l10n/fluent_migrations/bug_1860606_remove_migration_ftl.py
blob: 3ad99a87b293a10ad7f79ea177f5458fd2ebe94e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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,
        ),
    )