summaryrefslogtreecommitdiffstats
path: root/comm/python/l10n/tb_fluent_migrations/completed/bug_1703164_calendar_uri_redirect_dialog.py
diff options
context:
space:
mode:
Diffstat (limited to 'comm/python/l10n/tb_fluent_migrations/completed/bug_1703164_calendar_uri_redirect_dialog.py')
-rw-r--r--comm/python/l10n/tb_fluent_migrations/completed/bug_1703164_calendar_uri_redirect_dialog.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/comm/python/l10n/tb_fluent_migrations/completed/bug_1703164_calendar_uri_redirect_dialog.py b/comm/python/l10n/tb_fluent_migrations/completed/bug_1703164_calendar_uri_redirect_dialog.py
new file mode 100644
index 0000000000..cd4e681da0
--- /dev/null
+++ b/comm/python/l10n/tb_fluent_migrations/completed/bug_1703164_calendar_uri_redirect_dialog.py
@@ -0,0 +1,20 @@
+# Any copyright is dedicated to the Public Domain.
+# http://creativecommons.org/publicdomain/zero/1.0/
+
+from fluent.migrate import COPY_PATTERN
+from fluent.migrate.helpers import transforms_from
+
+
+def migrate(ctx):
+ """Bug 1703164 - convert calendar/base/content/dialogs/calendar-uri-redirect-dialog.xhtml to top level html"""
+
+ ctx.add_transforms(
+ "calendar/calendar/calendar-uri-redirect-dialog.ftl",
+ "calendar/calendar/calendar-uri-redirect-dialog.ftl",
+ transforms_from(
+ """
+calendar-uri-redirect-window-title = {{COPY_PATTERN(from_path, "calendar-uri-redirect-window.title")}}
+ """,
+ from_path="calendar/calendar/calendar-uri-redirect-dialog.ftl",
+ ),
+ )