summaryrefslogtreecommitdiffstats
path: root/comm/python/l10n/tb_fluent_migrations/completed/bug_1834662_cal_enable78.py
blob: b3f6c420c67e989c82f54bb8d0e5c5e592bfaa90 (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
28
29
30
#  This Source Code Form is subject to the terms of the Mozilla Public
#  License, v. 2.0. If a copy of the MPL was not distributed with this
#  file, You can obtain one at https://mozilla.org/MPL/2.0/.

# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/

import fluent.syntax.ast as FTL
from fluent.migratetb.helpers import VARIABLE_REFERENCE, transforms_from
from fluent.migratetb.transforms import REPLACE
from fluent.migratetb.transforms import COPY


def migrate(ctx):
    """Bug 1834662 - Migrate calendar enable button, part {index}."""
    target = reference = "calendar/calendar/calendar-widgets.ftl"

    ctx.add_transforms(
        target,
        reference,
        [
            FTL.Message(
                id=FTL.Identifier("calendar-enable-button"),
                value=COPY(
                    "mail/chrome/messenger/addons.properties",
                    "webextPerms.sideloadEnable.label",
                ),
            ),
        ],
    )