summaryrefslogtreecommitdiffstats
path: root/python/l10n/fluent_migrations/bug_1577257_profiler_title.py
blob: 4091e596da53f1767f6ca89732c6d429a8cbd629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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 1577257 - Share logic behind panel headers across the UI, part {index}"""
    ctx.add_transforms(
        "browser/browser/appmenu.ftl",
        "browser/browser/appmenu.ftl",
        transforms_from(
            """
profiler-popup-header-text =
    { COPY_PATTERN(from_path, "profiler-popup-title.value") }
""",
            from_path="browser/browser/appmenu.ftl",
        ),
    )