summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:01:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:01:59 +0000
commit85310221f0512bf1aeefc49ead8a1e11bda55990 (patch)
tree70a3efbfee6c7cbeb626185b35166d2c376b4bb8 /python
parentAdding upstream version 126.0. (diff)
downloadfirefox-85310221f0512bf1aeefc49ead8a1e11bda55990.tar.xz
firefox-85310221f0512bf1aeefc49ead8a1e11bda55990.zip
Adding upstream version 126.0.1.upstream/126.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'python')
-rw-r--r--python/l10n/fluent_migrations/bug_1893022_select_translations_release.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/python/l10n/fluent_migrations/bug_1893022_select_translations_release.py b/python/l10n/fluent_migrations/bug_1893022_select_translations_release.py
new file mode 100644
index 0000000000..4ea9ff86f8
--- /dev/null
+++ b/python/l10n/fluent_migrations/bug_1893022_select_translations_release.py
@@ -0,0 +1,34 @@
+# Any copyright is dedicated to the Public Domain.
+# http://creativecommons.org/publicdomain/zero/1.0/
+
+import fluent.syntax.ast as FTL
+from fluent.migrate.helpers import transforms_from
+
+
+def migrate(ctx):
+ """Bug 1893022 - Move Select Translations Fluent Strings out of Preview, part {index}"""
+
+ translations_ftl = "browser/browser/translations.ftl"
+
+ ctx.add_transforms(
+ translations_ftl,
+ translations_ftl,
+ transforms_from(
+ """
+select-translations-panel-translation-failure-message =
+ .message = {COPY_PATTERN(from_path, "translations-panel-error-translating")}
+select-translations-panel-unsupported-language-message-known =
+ .message = {COPY_PATTERN(from_path, "translations-panel-error-unsupported-hint-known")}
+select-translations-panel-unsupported-language-message-unknown =
+ .message = {COPY_PATTERN(from_path, "translations-panel-error-unsupported-hint-unknown")}
+
+select-translations-panel-cancel-button =
+ .label = {COPY_PATTERN(from_path, "translations-panel-translate-cancel.label")}
+select-translations-panel-translate-button =
+ .label = {COPY_PATTERN(from_path, "translations-panel-translate-button.label")}
+select-translations-panel-try-again-button =
+ .label = {COPY_PATTERN(from_path, "translations-panel-error-load-languages-hint-button.label")}
+""",
+ from_path=translations_ftl,
+ ),
+ )