forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1588142 - Move Fluent about:preferences title attribute to a titl…
…e tag r=fluent-reviewers,Gijs Differential Revision: https://phabricator.services.mozilla.com/D51713 --HG-- extra : moz-landing-system : lando
- Loading branch information
Kirk Steuber
committed
Nov 14, 2019
1 parent
2ad7a54
commit 3beae18
Showing
3 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
python/l10n/fluent_migrations/bug_1588142_about_preferences_title.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 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")) |