tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug_1972367_preferences_zoom.py (750B)


      1 # Any copyright is dedicated to the Public Domain.
      2 # http://creativecommons.org/publicdomain/zero/1.0/
      3 
      4 from fluent.migrate.helpers import transforms_from
      5 
      6 
      7 def migrate(ctx):
      8    """Bug 1972367 - Convert Zoom settings section to config-based prefs, part {index}."""
      9 
     10    target = "browser/browser/preferences/preferences.ftl"
     11 
     12    ctx.add_transforms(
     13        target,
     14        target,
     15        transforms_from(
     16            """
     17 preferences-zoom-header2 =
     18    .label = {COPY_PATTERN(from_path, "preferences-zoom-header")}
     19 preferences-default-zoom-label =
     20    .label = {COPY_PATTERN(from_path, "preferences-default-zoom")}
     21    .accesskey = {COPY_PATTERN(from_path, "preferences-default-zoom.accesskey")}
     22 """,
     23            from_path=target,
     24        ),
     25    )