tor-browser

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

bug_1995577_rename_preferences_addressbar_suggest_all.py (815B)


      1 # Any copyright is dedicated to the Public Domain.
      2 # http://creativecommons.org/publicdomain/zero/1.0/
      3 
      4 from fluent.migrate import COPY_PATTERN
      5 from fluent.migrate.helpers import transforms_from
      6 
      7 
      8 def migrate(ctx):
      9    """Bug 1995577 - Update the settings UI for the new `browser.urlbar.suggest.quicksuggest.all` pref, part {index}."""
     10    source = "browser/browser/preferences/preferences.ftl"
     11    target = source
     12 
     13    ctx.add_transforms(
     14        target,
     15        source,
     16        transforms_from(
     17            """
     18 addressbar-locbar-suggest-all-option =
     19    .label = {COPY_PATTERN(from_path, "addressbar-locbar-suggest-nonsponsored-option.label")}
     20 addressbar-locbar-suggest-all-option-desc = {COPY_PATTERN(from_path, "addressbar-locbar-suggest-nonsponsored-desc")}
     21 """,
     22            from_path=source,
     23        ),
     24    )