Skip to content

Instantly share code, notes, and snippets.

@stasm
Created November 7, 2017 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stasm/a1eba86c9f2c5726453eb7206647b11a to your computer and use it in GitHub Desktop.
Save stasm/a1eba86c9f2c5726453eb7206647b11a to your computer and use it in GitHub Desktop.
Migration stub for bug 1411012
# 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