blob: a10aa1ae8df598268308c8f11ee93ef5d778844c (
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
|
# 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_PATTERN
def migrate(ctx):
"""Bug 1347955 - Move the logging sub-page of about:networking to about:logging, part {index}"""
ctx.add_transforms(
"toolkit/toolkit/about/aboutLogging.ftl",
"toolkit/toolkit/about/aboutLogging.ftl",
transforms_from(
"""
about-logging-current-log-file =
{COPY_PATTERN(from_path, "about-networking-current-log-file")}
about-logging-current-log-modules =
{COPY_PATTERN(from_path, "about-networking-current-log-modules")}
about-logging-set-log-file =
{COPY_PATTERN(from_path, "about-networking-set-log-file")}
about-logging-set-log-modules =
{COPY_PATTERN(from_path, "about-networking-set-log-modules")}
about-logging-start-logging =
{COPY_PATTERN(from_path, "about-networking-start-logging")}
about-logging-stop-logging =
{COPY_PATTERN(from_path, "about-networking-stop-logging")}
about-logging-log-tutorial =
{COPY_PATTERN(from_path, "about-networking-log-tutorial")}
""",
from_path="toolkit/toolkit/about/aboutNetworking.ftl",
),
)
|