summaryrefslogtreecommitdiffstats
path: root/comm/python/l10n/tb_fluent_migrations/completed/bug_1803705_thread_pane.py
blob: b3f41b1c5a4684fd3ddb8370653ae9ec42af501e (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# coding=utf8

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

from fluent.migrate.helpers import transforms_from
from fluent.migrate import COPY


def migrate(ctx):
    """Bug 1803705 - Migrate thread tree strings to fluent, part {index}."""

    ctx.add_transforms(
        "mail/messenger/treeView.ftl",
        "mail/messenger/treeView.ftl",
        transforms_from(
            """
tree-list-view-column-picker =
    .title = { COPY(from_path, "columnChooser2.tooltip") }
""",
            from_path="mail/chrome/messenger/messenger.dtd",
        ),
    )

    ctx.add_transforms(
        "mail/messenger/about3Pane.ftl",
        "mail/messenger/about3Pane.ftl",
        transforms_from(
            """
threadpane-column-header-select =
    .title = { COPY(from_path, "selectColumn.tooltip") }
threadpane-column-label-select =
    .label = { COPY(from_path, "selectColumn.label") }
threadpane-column-label-thread =
    .label = { COPY(from_path, "threadColumn.label") }
threadpane-column-header-flagged =
    .title = { COPY(from_path, "starredColumn2.tooltip") }
threadpane-column-label-flagged =
    .label = { COPY(from_path, "starredColumn.label") }
threadpane-column-header-attachments =
    .title = { COPY(from_path, "attachmentColumn2.tooltip") }
threadpane-column-label-attachments =
    .label = { COPY(from_path, "attachmentColumn.label") }
threadpane-column-header-sender = { COPY(from_path, "fromColumn.label") }
    .title = { COPY(from_path, "fromColumn2.tooltip") }
threadpane-column-label-sender =
    .label = { COPY(from_path, "fromColumn.label") }
threadpane-column-header-recipient = { COPY(from_path, "recipientColumn.label") }
    .title = { COPY(from_path, "recipientColumn2.tooltip") }
threadpane-column-label-recipient =
    .label = { COPY(from_path, "recipientColumn.label") }
threadpane-column-header-correspondents = { COPY(from_path, "correspondentColumn.label") }
    .title = { COPY(from_path, "correspondentColumn2.tooltip") }
threadpane-column-label-correspondents =
    .label = { COPY(from_path, "correspondentColumn.label") }
threadpane-column-header-subject = { COPY(from_path, "subjectColumn.label") }
    .title = { COPY(from_path, "subjectColumn2.tooltip") }
threadpane-column-label-subject =
    .label = { COPY(from_path, "subjectColumn.label") }
threadpane-column-header-date = { COPY(from_path, "dateColumn.label") }
    .title = { COPY(from_path, "dateColumn2.tooltip") }
threadpane-column-label-date =
    .label = { COPY(from_path, "dateColumn.label") }
threadpane-column-header-received = { COPY(from_path, "receivedColumn.label") }
    .title = { COPY(from_path, "receivedColumn2.tooltip") }
threadpane-column-label-received =
    .label = { COPY(from_path, "receivedColumn.label") }
threadpane-column-header-status = { COPY(from_path, "statusColumn.label") }
    .title = { COPY(from_path, "statusColumn2.tooltip") }
threadpane-column-label-status =
    .label = { COPY(from_path, "statusColumn.label") }
threadpane-column-header-size = { COPY(from_path, "sizeColumn.label") }
    .title = { COPY(from_path, "sizeColumn2.tooltip") }
threadpane-column-label-size =
    .label = { COPY(from_path, "sizeColumn.label") }
threadpane-column-header-tags = { COPY(from_path, "tagsColumn.label") }
    .title = { COPY(from_path, "tagsColumn2.tooltip") }
threadpane-column-label-tags =
    .label = { COPY(from_path, "tagsColumn.label") }
threadpane-column-header-account = { COPY(from_path, "accountColumn.label") }
    .title = { COPY(from_path, "accountColumn2.tooltip") }
threadpane-column-label-account =
    .label = { COPY(from_path, "accountColumn.label") }
threadpane-column-header-priority = { COPY(from_path, "priorityColumn.label") }
    .title = { COPY(from_path, "priorityColumn2.tooltip") }
threadpane-column-label-priority =
    .label = { COPY(from_path, "priorityColumn.label") }
threadpane-column-header-unread = { COPY(from_path, "unreadColumn.label") }
    .title = { COPY(from_path, "unreadColumn2.tooltip") }
threadpane-column-label-unread =
    .label = { COPY(from_path, "unreadColumn.label") }
threadpane-column-header-total = { COPY(from_path, "totalColumn.label") }
    .title = { COPY(from_path, "totalColumn2.tooltip") }
threadpane-column-label-total =
    .label = { COPY(from_path, "totalColumn.label") }
threadpane-column-header-location = { COPY(from_path, "locationColumn.label") }
    .title = { COPY(from_path, "locationColumn2.tooltip") }
threadpane-column-label-location =
    .label = { COPY(from_path, "locationColumn.label") }
threadpane-column-header-id = { COPY(from_path, "idColumn.label") }
    .title = { COPY(from_path, "idColumn2.tooltip") }
threadpane-column-label-id =
    .label = { COPY(from_path, "idColumn.label") }
threadpane-column-header-delete =
    .title = { COPY(from_path, "deleteColumn.tooltip") }
threadpane-column-label-delete =
    .label = { COPY(from_path, "deleteColumn.label") }
""",
            from_path="mail/chrome/messenger/messenger.dtd",
        ),
    )