python/l10n/fluent_migrations/bug_1588142_about_preferences_title.py
author Kirk Steuber <ksteuber@mozilla.com>
Thu, 14 Nov 2019 00:17:13 +0000
changeset 501864 27b1ed7098093911513a6e151a91a12535bd2e7e
parent 501808 1a5f2b044f827e6063218f6f6ff6a6b7e6066106
permissions -rw-r--r--
Bug 1588142 - Move Fluent about:preferences title attribute to a title tag r=fluent-reviewers,Gijs Differential Revision: https://phabricator.services.mozilla.com/D51713

# coding=utf8

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

from __future__ import absolute_import
from fluent.migrate import COPY_PATTERN
from fluent.migrate.helpers import transforms_from

def migrate(ctx):
    """Bug 1588142 - about:preferences - migrate the root xul:window element to an html:html element, part {index}."""

    ctx.add_transforms(
        "browser/browser/preferences/preferences.ftl",
        "browser/browser/preferences/preferences.ftl",
        transforms_from(
"""
pref-page-title = {COPY_PATTERN(from_file, "pref-page.title")}
""", from_file="browser/browser/preferences/preferences.ftl"))