diff --git a/browser/base/content/browser.xhtml b/browser/base/content/browser.xhtml
index 26f686bfd4b2..a000940d38a8 100644
--- a/browser/base/content/browser.xhtml
+++ b/browser/base/content/browser.xhtml
@@ -90,7 +90,6 @@
-
diff --git a/browser/base/content/webext-panels.xhtml b/browser/base/content/webext-panels.xhtml
index f421d9bf80b4..1b97794a8dc8 100644
--- a/browser/base/content/webext-panels.xhtml
+++ b/browser/base/content/webext-panels.xhtml
@@ -28,7 +28,7 @@
-
+
diff --git a/browser/locales-preview/select-translations.ftl b/browser/locales-preview/select-translations.ftl
deleted file mode 100644
index 178973a26aae..000000000000
--- a/browser/locales-preview/select-translations.ftl
+++ /dev/null
@@ -1,102 +0,0 @@
-# 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/.
-
-
-# Text displayed in the right-click context menu for translating
-# selected text to a yet-to-be-determined language.
-main-context-menu-translate-selection =
- .label = Translate Selection…
- .accesskey = n
-
-# Text displayed in the right-click context menu for translating
-# selected text to a target language.
-#
-# Variables:
-# $language (string) - The localized display name of the target language
-main-context-menu-translate-selection-to-language =
- .label = Translate Selection to { $language }
- .accesskey = n
-
-# Text displayed in the right-click context menu for translating
-# the text of a hyperlink to a yet-to-be-determined language.
-main-context-menu-translate-link-text =
- .label = Translate Link Text…
- .accesskey = n
-
-# Text displayed in the right-click context menu for translating
-# the text of a hyperlink to a target language.
-#
-# Variables:
-# $language (string) - The localized display name of the target language
-main-context-menu-translate-link-text-to-language =
- .label = Translate Link Text to { $language }
- .accesskey = n
-
-# Text displayed in the select translations panel header.
-select-translations-panel-header = Translation
-
-# Text displayed above the from-language dropdown menu.
-select-translations-panel-from-label = From
-
-# Text displayed above the to-language dropdown menu.
-select-translations-panel-to-label = To
-
-# Text displayed above the try-another-source-language dropdown menu.
-select-translations-panel-try-another-language-label = Try another source language
-
-# Text displayed on the cancel button.
-select-translations-panel-cancel-button =
- .label = Cancel
-
-# Text displayed on the copy button before it is clicked.
-select-translations-panel-copy-button =
- .label = Copy
-
-# Text displayed on the copy button after it is clicked.
-select-translations-panel-copy-button-copied =
- .label = Copied
-
-# Text displayed on the done button.
-select-translations-panel-done-button =
- .label = Done
-
-# Text displayed on the translate-full-page button.
-select-translations-panel-translate-full-page-button =
- .label = Translate full page
-
-# Text displayed on the translate button.
-select-translations-panel-translate-button =
- .label = Translate
-
-# Text displayed on the try-again button.
-select-translations-panel-try-again-button =
- .label = Try again
-
-# Text displayed as a placeholder when the panel is idle.
-select-translations-panel-idle-placeholder-text = Translated text will appear here.
-
-# Text displayed as a placeholder when the panel is actively translating.
-select-translations-panel-translating-placeholder-text = Translating…
-
-select-translations-panel-init-failure-message =
- .message = Couldn’t load languages. Check your internet connection and try again.
-
-# Text displayed when the translation fails to complete.
-select-translations-panel-translation-failure-message =
- .message = There was a problem translating. Please try again.
-
-# If your language requires declining the language name, a possible solution
-# is to adapt the structure of the phrase, or use a support noun, e.g.
-# `Sorry, we don't support the language yet: { $language }
-#
-# Variables:
-# $language (string) - The language of the document.
-select-translations-panel-unsupported-language-message-known =
- .message = Sorry, we don’t support { $language } yet.
-select-translations-panel-unsupported-language-message-unknown =
- .message = Sorry, we don’t support this language yet.
-
-# Text displayed on the menuitem that opens the Translation Settings page.
-select-translations-panel-open-translations-settings-menuitem =
- .label = Translation settings
diff --git a/browser/locales/en-US/browser/translations.ftl b/browser/locales/en-US/browser/translations.ftl
index 2b86957e29bd..efd9353d9922 100644
--- a/browser/locales/en-US/browser/translations.ftl
+++ b/browser/locales/en-US/browser/translations.ftl
@@ -166,3 +166,96 @@ translations-settings-remove-all-sites-button =
translations-settings-close-dialog =
.buttonlabelaccept = Close
.buttonaccesskeyaccept = C
+
+# Text displayed in the right-click context menu for translating
+# selected text to a yet-to-be-determined language.
+main-context-menu-translate-selection =
+ .label = Translate Selection…
+ .accesskey = n
+
+# Text displayed in the right-click context menu for translating
+# selected text to a target language.
+#
+# Variables:
+# $language (string) - The localized display name of the target language
+main-context-menu-translate-selection-to-language =
+ .label = Translate Selection to { $language }
+ .accesskey = n
+
+# Text displayed in the right-click context menu for translating
+# the text of a hyperlink to a yet-to-be-determined language.
+main-context-menu-translate-link-text =
+ .label = Translate Link Text…
+ .accesskey = n
+
+# Text displayed in the right-click context menu for translating
+# the text of a hyperlink to a target language.
+#
+# Variables:
+# $language (string) - The localized display name of the target language
+main-context-menu-translate-link-text-to-language =
+ .label = Translate Link Text to { $language }
+ .accesskey = n
+
+# Text displayed in the select translations panel header.
+select-translations-panel-header = Translation
+
+# Text displayed above the from-language dropdown menu.
+select-translations-panel-from-label = From
+
+# Text displayed above the to-language dropdown menu.
+select-translations-panel-to-label = To
+
+# Text displayed above the try-another-source-language dropdown menu.
+select-translations-panel-try-another-language-label = Try another source language
+
+select-translations-panel-cancel-button =
+ .label = Cancel
+
+# Text displayed on the copy button before it is clicked.
+select-translations-panel-copy-button =
+ .label = Copy
+
+# Text displayed on the copy button after it is clicked.
+select-translations-panel-copy-button-copied =
+ .label = Copied
+
+select-translations-panel-done-button =
+ .label = Done
+
+select-translations-panel-translate-full-page-button =
+ .label = Translate full page
+
+select-translations-panel-translate-button =
+ .label = Translate
+
+select-translations-panel-try-again-button =
+ .label = Try again
+
+# Text displayed as a placeholder when the panel is idle.
+select-translations-panel-idle-placeholder-text = Translated text will appear here.
+
+# Text displayed as a placeholder when the panel is actively translating.
+select-translations-panel-translating-placeholder-text = Translating…
+
+select-translations-panel-init-failure-message =
+ .message = Couldn’t load languages. Check your internet connection and try again.
+
+# Text displayed when the translation fails to complete.
+select-translations-panel-translation-failure-message =
+ .message = There was a problem translating. Please try again.
+
+# If your language requires declining the language name, a possible solution
+# is to adapt the structure of the phrase, or use a support noun, e.g.
+# `Sorry, we don't support the language yet: { $language }
+#
+# Variables:
+# $language (string) - The language of the document.
+select-translations-panel-unsupported-language-message-known =
+ .message = Sorry, we don’t support { $language } yet.
+select-translations-panel-unsupported-language-message-unknown =
+ .message = Sorry, we don’t support this language yet.
+
+# Text displayed on the menuitem that opens the Translation Settings page.
+select-translations-panel-open-translations-settings-menuitem =
+ .label = Translation settings
diff --git a/browser/locales/jar.mn b/browser/locales/jar.mn
index 51cd7853b04b..c3b7556aa3f7 100644
--- a/browser/locales/jar.mn
+++ b/browser/locales/jar.mn
@@ -15,7 +15,6 @@
preview/shopping.ftl (../components/shopping/content/shopping.ftl)
preview/sidebar.ftl (../components/sidebar/sidebar.ftl)
preview/onboarding.ftl (../components/aboutwelcome/content/onboarding.ftl)
- preview/select-translations.ftl (../locales-preview/select-translations.ftl)
preview/translations.ftl (../locales-preview/translations.ftl)
browser (%browser/**/*.ftl)
preview/profiles.ftl (../components/profiles/content/profiles.ftl)
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 000000000000..4ea9ff86f875
--- /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,
+ ),
+ )