Skip to content
Snippets Groups Projects
Commit e0d23ab3 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! Tor Browser localization migration scripts.

TB 43531: Convert bridge dialog button strings to use "label" attribute.
parent 5beb812b
Branches
Tags
1 merge request!1500TB 43415: Rebased onto 134.0a1
from fluent.migrate.helpers import transforms_from
def migrate(ctx):
# Convert
#
# my-button = MY TEXT
#
# to
#
# my-button2 =
# .label = MY TEXT
ctx.add_transforms(
"tor-browser.ftl",
"tor-browser.ftl",
transforms_from(
"""
bridge-dialog-button-connect2 =
.label = { COPY_PATTERN(path, "bridge-dialog-button-connect") }
bridge-dialog-button-accept2 =
.label = { COPY_PATTERN(path, "bridge-dialog-button-accept") }
bridge-dialog-button-submit2 =
.label = { COPY_PATTERN(path, "bridge-dialog-button-submit") }
""",
path="tor-browser.ftl",
),
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment