Revision control
Copy as Markdown
Other Tools
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Any copyright is dedicated to the Public Domain.
import fluent.syntax.ast as FTL
from fluent.migratetb.helpers import VARIABLE_REFERENCE, TERM_REFERENCE, transforms_from
from fluent.migratetb.transforms import REPLACE, PLURALS, REPLACE_IN_TEXT, COPY
def migrate(ctx):
"""Bug 2021754 - Publishing functionality broken, part {index}."""
source = target = reference = "calendar/calendar/calendar.ftl"
ctx.add_transforms(
target,
reference,
transforms_from(
"""
calendar-publish-publish-dialog-button =
.buttonlabelaccept = { COPY_PATTERN(from_path, "calendar-publish-publish-button") }
""",
from_path=source,
),
)