summaryrefslogtreecommitdiffstats
path: root/comm/python/l10n/tb_fluent_migrations/completed/bug_1815489_add_back_forward_and_stop.py
blob: 8dab08d9ab6dd342ff63c708c8c48c98f2e592bc (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
31
32
33
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/

from fluent.migratetb import COPY
from fluent.migratetb.helpers import transforms_from


def migrate(ctx):
    """Bug 1815489 - Add back, forward and stop to unified toolbar fluent migration part {index}."""

    ctx.add_transforms(
        "mail/messenger/unifiedToolbarItems.ftl",
        "mail/messenger/unifiedToolbarItems.ftl",
        transforms_from(
            """
toolbar-go-back-label = { COPY(from_path, "backButton1.label") }

toolbar-go-back =
    .title = { COPY(from_path, "goBackButton.tooltip") }

toolbar-go-forward-label = { COPY(from_path, "goForwardButton1.label") }

toolbar-go-forward =
    .title = { COPY(from_path, "goForwardButton.tooltip") }

toolbar-stop-label = { COPY(from_path, "stopButton.label") }

toolbar-stop =
    .title = { COPY(from_path, "stopButton.tooltip") }
            """,
            from_path="mail/chrome/messenger/messenger.dtd",
        ),
    )