mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1893022 - Move Select Translations Fluent Strings out of Preview r=fluent-reviewers,flod
Moves the Fluent strings for Select Translations out of locales preview and into the en-US locale to mark them to be translated by localizers for release. Differential Revision: https://phabricator.services.mozilla.com/D208383
This commit is contained in:
parent
ed3587a082
commit
c8c19a8bb3
@ -90,7 +90,6 @@
|
||||
<!-- Untranslated FTL files -->
|
||||
<link rel="localization" href="preview/enUS-searchFeatures.ftl" />
|
||||
<link rel="localization" href="preview/interventions.ftl" />
|
||||
<link rel="localization" href="preview/select-translations.ftl"/>
|
||||
<link rel="localization" href="browser/shopping.ftl"/>
|
||||
<link rel="localization" href="preview/shopping.ftl"/>
|
||||
<link rel="localization" href="preview/sidebar.ftl"/>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<html:link rel="localization" href="toolkit/branding/brandings.ftl"/>
|
||||
<html:link rel="localization" href="toolkit/global/textActions.ftl"/>
|
||||
<html:link rel="localization" href="browser/browserContext.ftl"/>
|
||||
<html:link rel="localization" href="preview/select-translations.ftl"/>
|
||||
<html:link rel="localization" href="browser/translations.ftl"/>
|
||||
</linkset>
|
||||
|
||||
<commandset id="mainCommandset">
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
),
|
||||
)
|
Loading…
Reference in New Issue
Block a user