tor-browser

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

bug_2007194_about_translations_label_attrs.py (839B)


      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 2007194 - Migrate about:translations to moz-select, part {index}."""
      9 
     10    source = "toolkit/toolkit/about/aboutTranslations.ftl"
     11    target = source
     12 
     13    ctx.add_transforms(
     14        target,
     15        source,
     16        transforms_from(
     17            """
     18 about-translations-detect-default-label =
     19  .label = { COPY_PATTERN(from_path, "about-translations-detect-default") }
     20 
     21 about-translations-detect-language-label =
     22  .label = { COPY_PATTERN(from_path, "about-translations-detect-language") }
     23 
     24 about-translations-select-label =
     25  .label = { COPY_PATTERN(from_path, "about-translations-select") }
     26            """,
     27            from_path=source,
     28        ),
     29    )