summaryrefslogtreecommitdiffstats
path: root/python/l10n/fluent_migrations/bug_1867819_formautofill.py
blob: 1b4d9606f15ac0fe9f106d5208cd494e3b994b82 (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
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/

import fluent.syntax.ast as FTL
from fluent.migrate.transforms import COPY


def migrate(ctx):
    """Bug 1867819 - Convert formautofill.properties to Fluent, part {index}."""

    source = "browser/extensions/formautofill/formautofill.properties"
    target = "toolkit/toolkit/formautofill/formAutofill.ftl"
    ctx.add_transforms(
        target,
        target,
        [
            FTL.Message(
                id=FTL.Identifier("autofill-options-link"),
                value=COPY(source, "autofillOptionsLink"),
            ),
            FTL.Message(
                id=FTL.Identifier("autofill-options-link-osx"),
                value=COPY(source, "autofillOptionsLinkOSX"),
            ),
        ],
    )