summaryrefslogtreecommitdiffstats
path: root/python/l10n/fluent_migrations
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /python/l10n/fluent_migrations
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'python/l10n/fluent_migrations')
-rw-r--r--python/l10n/fluent_migrations/bug_1892125_screenshots_migrations.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/python/l10n/fluent_migrations/bug_1892125_screenshots_migrations.py b/python/l10n/fluent_migrations/bug_1892125_screenshots_migrations.py
new file mode 100644
index 0000000000..d4379026dc
--- /dev/null
+++ b/python/l10n/fluent_migrations/bug_1892125_screenshots_migrations.py
@@ -0,0 +1,28 @@
+# Any copyright is dedicated to the Public Domain.
+# http://creativecommons.org/publicdomain/zero/1.0/
+
+from fluent.migrate.helpers import transforms_from
+
+
+def migrate(ctx):
+ """Bug 1892125 - Update copy and download strings, part {index}."""
+
+ source = "browser/browser/screenshots.ftl"
+ target = "browser/browser/screenshots.ftl"
+
+ ctx.add_transforms(
+ target,
+ target,
+ transforms_from(
+ """
+screenshots-component-copy-button-2 = {COPY_PATTERN(from_path, "screenshots-component-copy-button-label")}
+ .title = {COPY_PATTERN(from_path, "screenshots-component-copy-button.title")}
+ .aria-label = {COPY_PATTERN(from_path, "screenshots-component-copy-button.aria-label")}
+
+screenshots-component-download-button-2 = {COPY_PATTERN(from_path, "screenshots-component-download-button-label")}
+ .title = {COPY_PATTERN(from_path, "screenshots-component-download-button.title")}
+ .aria-label = {COPY_PATTERN(from_path, "screenshots-component-download-button.aria-label")}
+""",
+ from_path=source,
+ ),
+ )