tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 88f2bd36ece7c0cc999d565605e402893f419390
parent 01a985b85b499c01a026671a57d2cadc3aad8354
Author: Erik Nordin <enordin@mozilla.com>
Date:   Wed, 10 Dec 2025 14:15:55 +0000

Bug 2004962 - Move about:translations Fluent strings out of preview r=fluent-reviewers,bolsson

This commit moves all of the strings for the `about:translations`
page, which are currently in a preview directory, into the en-US
locale directory so that they can be localized into other supported
locales, in preparation for release.

Differential Revision: https://phabricator.services.mozilla.com/D275628

Diffstat:
Mtoolkit/components/translations/content/about-translations.html | 4++--
Dtoolkit/locales-preview/aboutTranslations.ftl | 41-----------------------------------------
Atoolkit/locales/en-US/toolkit/about/aboutTranslations.ftl | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
Mtoolkit/locales/jar.mn | 1-
4 files changed, 53 insertions(+), 44 deletions(-)

diff --git a/toolkit/components/translations/content/about-translations.html b/toolkit/components/translations/content/about-translations.html @@ -21,7 +21,7 @@ /> <link rel="localization" href="branding/brand.ftl" /> <link rel="localization" href="toolkit/global/mozMessageBar.ftl" /> - <link rel="localization" href="locales-preview/aboutTranslations.ftl" /> + <link rel="localization" href="toolkit/about/aboutTranslations.ftl" /> <script type="module" src="chrome://global/content/translations/about-translations.mjs" @@ -125,7 +125,7 @@ <textarea id="about-translations-target-textarea" class="about-translations-textarea" - data-l10n-id="about-translations-result-placeholder" + data-l10n-id="about-translations-output-placeholder" readonly ></textarea> </section> diff --git a/toolkit/locales-preview/aboutTranslations.ftl b/toolkit/locales-preview/aboutTranslations.ftl @@ -1,41 +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 http://mozilla.org/MPL/2.0/. - -# The title of the about:translations page, referencing the translations feature. -about-translations-title = { -brand-short-name } translations -about-translations-description = Instant translations that respect your privacy. -about-translations-learn-more-link = Learn more -# The title attribute for the swap languages button, that swaps the -# source and target languages, reversing the translation direction. -about-translations-swap-languages = - .title = Swap languages -about-translations-result-placeholder = - .placeholder = Translation -about-translations-translating-message = Translating… -# Text displayed on source-language selector when no language is identified. -about-translations-detect-default = Detect language -# Text displayed on source-language selector when a language is identified. -# Variables: -# $language (string) - The localized display name of the detected language -about-translations-detect-language = { $language } (detected) -# Text displayed on to-language dropdown when no language is selected -about-translations-select = Select language -about-translations-input-placeholder = - .placeholder = Add text to translate -about-translations-no-support = - .message = Your device does not meet the minimum requirements to use this feature. Try on another device. -about-translations-engine-error = - .message = The translations engine failed to load. - -# Error message displayed when the language list fails to load. -about-translations-language-load-error-message = - .heading = Couldn’t load languages. - .message = Check your internet connection and try again. -about-translations-language-load-error-button = Try again - -# Info message displayed when Translations is not supported on this device. -about-translations-unsupported-info-message = - .heading = Translation isn’t available on this device. - .message = Try switching to a different device. -about-translations-unsupported-info-button = Learn more diff --git a/toolkit/locales/en-US/toolkit/about/aboutTranslations.ftl b/toolkit/locales/en-US/toolkit/about/aboutTranslations.ftl @@ -0,0 +1,51 @@ +# 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 http://mozilla.org/MPL/2.0/. + +# The title of the about:translations page. +about-translations-title = { -brand-short-name } translations + +# The brief description of the Translations functionality on the page. +about-translations-description = Instant translations that respect your privacy. +about-translations-learn-more-link = Learn more + +# An info message displayed if the device's hardware is not compatible with the Translations feature requirements. +about-translations-unsupported-info-message = + .heading = Translation isn’t available on this device. + .message = Try switching to a different device. +about-translations-unsupported-info-button = Learn more + +# An error message displayed when the language list fails to load. +about-translations-language-load-error-message = + .heading = Couldn’t load languages. + .message = Check your internet connection and try again. +about-translations-language-load-error-button = Try again + +# Placeholder text shown in the source-language text area when the user has not typed any text. +about-translations-input-placeholder = + .placeholder = Add text to translate + +# Text displayed on the source-language selector when no explicit option is selected +# and no language has been identified from the content of the source-language text area. +about-translations-detect-default = Detect language + +# Text displayed on the source-language selector when no explicit option is selected +# and a valid language has been identified from the content of the source-language text area. +# Variables: +# $language (string) - The localized display name of the detected language +about-translations-detect-language = { $language } (detected) + +# Placeholder text shown in the target-language output area when no translation has occurred. +about-translations-output-placeholder = + .placeholder = Translation + +# Text displayed on target-language selector when no language option is selected. +about-translations-select = Select language + +# A message displayed in the target-language output area while waiting for the translation to complete. +about-translations-translating-message = Translating… + +# The title attribute for the swap languages button, which swaps the selected +# source and target languages, reversing the direction of translation. +about-translations-swap-languages = + .title = Swap languages diff --git a/toolkit/locales/jar.mn b/toolkit/locales/jar.mn @@ -7,7 +7,6 @@ crashreporter (%crashreporter/**/*.ftl) services (%services/**/*.ftl) toolkit (%toolkit/**/*.ftl) - locales-preview/aboutTranslations.ftl (../locales-preview/aboutTranslations.ftl) locales-preview/aboutRestricted.ftl (../locales-preview/aboutRestricted.ftl) #ifdef MOZ_LAYOUT_DEBUGGER layoutdebug/layoutdebug.ftl (../../layout/tools/layout-debug/ui/content/layoutdebug.ftl)