tor-browser

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

bug_2005798_pdf_annotations.py (723B)


      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 2005798 - Remove label property from PDF Annotations strings, part {index}."""
      9 
     10    source = "browser/browser/newtab/asrouter.ftl"
     11    target = source
     12 
     13    ctx.add_transforms(
     14        target,
     15        target,
     16        transforms_from(
     17            """
     18 annotations-make-default-pdf-primary-cta-label = {COPY_PATTERN(from_path, "annotations-make-default-pdf-primary-cta.label")}
     19 annotations-make-default-pdf-next-label = {COPY_PATTERN(from_path, "annotations-make-default-pdf-next.label")}
     20 """,
     21            from_path=source,
     22        ),
     23    )