tor-browser

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

bug_1983284_window_title.py (712B)


      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 1983284 - Process content title in JS instead of Fluent, part {index}."""
      9 
     10    source = "browser/browser/browser.ftl"
     11    target = source
     12 
     13    ctx.add_transforms(
     14        target,
     15        target,
     16        transforms_from(
     17            """
     18 browser-main-private-window-title = { PLATFORM() ->
     19      [macos] {COPY_PATTERN(from_path, "browser-main-window-titles-mac.data-title-private")}
     20     *[other] {COPY_PATTERN(from_path, "browser-main-window-titles.data-title-private")}
     21  }
     22 """,
     23            from_path=source,
     24        ),
     25    )