blob: 9be30375500b0a626b8ae8285fbdb361e008ea5b (
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
|
# 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 1818322 - Create MozTabList and MozTabRow reusable components, part {index}."""
ctx.add_transforms(
"toolkit/toolkit/global/mozTabList.ftl",
"toolkit/toolkit/global/mozTabList.ftl",
transforms_from(
"""
mztabrow-tabs-list-tab =
.title = {COPY_PATTERN(from_path, "firefoxview-tabs-list-tab-button.title")}
mztabrow-dismiss-tab-button =
.title = {COPY_PATTERN(from_path, "firefoxview-closed-tabs-dismiss-tab.title")}
mztabrow-just-now-timestamp = {COPY_PATTERN(from_path, "firefoxview-just-now-timestamp")}
""",
from_path="browser/browser/firefoxView.ftl",
),
)
|