Created
November 7, 2017 15:10
-
-
Save stasm/a1eba86c9f2c5726453eb7206647b11a to your computer and use it in GitHub Desktop.
Migration stub for bug 1411012
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
# coding=utf8 | |
import fluent.syntax.ast as FTL | |
from fluent.migrate import COPY | |
def migrate(ctx): | |
"""Bug 1411012 - Migrate privacy settings to FTL, part {index}""" | |
ctx.maybe_add_localization( | |
"browser/chrome/browser/preferences/privacy.dtd") | |
ctx.add_transforms( | |
"browser/browser/preferences/privacy.ftl", | |
"browser/locales/en-US/browser/preferences/privacy.ftl", | |
[ | |
FTL.Message( | |
id=FTL.Identifier("dnt-description"), | |
value=COPY( | |
"browser/chrome/browser/preferences/privacy.dtd", | |
"doNotTrack.description" | |
) | |
), | |
# …add more transforms here… | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment