tor-browser

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

bug_1973214_newtab_add_shortcut_title.py (658B)


      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 1973214 - Migrate add shortcut tooltip, part {index}"""
      9 
     10    source = "browser/browser/newtab/newtab.ftl"
     11    target = source
     12 
     13    ctx.add_transforms(
     14        target,
     15        target,
     16        transforms_from(
     17            """
     18 newtab-topsites-add-shortcut-title =
     19    .title = {COPY_PATTERN(from_path, "newtab-topsites-add-shortcut-label")}
     20    .aria-label = {COPY_PATTERN(from_path, "newtab-topsites-add-shortcut-label")}
     21 """,
     22            from_path=source,
     23        ),
     24    )