mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1627872 - Remove Fluent migration recipes for Firefox 74 r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D69924 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
018ae5bc4a
commit
995498145a
@ -1,122 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
import fluent.syntax.ast as FTL
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
from fluent.migrate.helpers import COPY
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1592043 - Migrate toolbox options strings from DTD to FTL, part {index}"""
|
||||
|
||||
ctx.add_transforms(
|
||||
"devtools/client/toolbox-options.ftl",
|
||||
"devtools/client/toolbox-options.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
|
||||
options-select-default-tools-label = { COPY(path1, "options.selectDefaultTools.label2") }
|
||||
|
||||
options-tool-not-supported-label = { COPY(path1, "options.toolNotSupported.label") }
|
||||
|
||||
options-select-additional-tools-label = { COPY(path1, "options.selectAdditionalTools.label") }
|
||||
|
||||
options-select-enabled-toolbox-buttons-label = { COPY(path1, "options.selectEnabledToolboxButtons.label") }
|
||||
|
||||
options-select-dev-tools-theme-label = { COPY(path1, "options.selectDevToolsTheme.label2") }
|
||||
|
||||
options-context-inspector = { COPY(path1, "options.context.inspector") }
|
||||
|
||||
options-show-user-agent-styles-tooltip =
|
||||
.title = { COPY(path1, "options.showUserAgentStyles.tooltip") }
|
||||
options-show-user-agent-styles-label = { COPY(path1, "options.showUserAgentStyles.label") }
|
||||
|
||||
options-collapse-attrs-tooltip =
|
||||
.title = { COPY(path1, "options.collapseAttrs.tooltip") }
|
||||
options-collapse-attrs-label = { COPY(path1, "options.collapseAttrs.label") }
|
||||
|
||||
options-default-color-unit-label = { COPY(path1, "options.defaultColorUnit.label") }
|
||||
|
||||
options-default-color-unit-authored = { COPY(path1, "options.defaultColorUnit.authored") }
|
||||
|
||||
options-default-color-unit-hex = { COPY(path1, "options.defaultColorUnit.hex") }
|
||||
|
||||
options-default-color-unit-hsl = { COPY(path1, "options.defaultColorUnit.hsl") }
|
||||
|
||||
options-default-color-unit-rgb = { COPY(path1, "options.defaultColorUnit.rgb") }
|
||||
|
||||
options-default-color-unit-name = { COPY(path1, "options.defaultColorUnit.name") }
|
||||
|
||||
options-debugger-label = { COPY(path1, "options.debugger.label") }
|
||||
|
||||
options-styleeditor-label = { COPY(path1, "options.styleeditor.label") }
|
||||
|
||||
options-stylesheet-autocompletion-tooltip =
|
||||
.title = { COPY(path1, "options.stylesheetAutocompletion.tooltip") }
|
||||
options-stylesheet-autocompletion-label = { COPY(path1, "options.stylesheetAutocompletion.label") }
|
||||
|
||||
options-screenshot-label = { COPY(path1, "options.screenshot.label") }
|
||||
|
||||
options-screenshot-clipboard-tooltip =
|
||||
.title = { COPY(path1, "options.screenshot.clipboard.tooltip") }
|
||||
options-screenshot-clipboard-label = { COPY(path1, "options.screenshot.clipboard.label") }
|
||||
|
||||
options-screenshot-audio-tooltip =
|
||||
.title = { COPY(path1, "options.screenshot.audio.tooltip") }
|
||||
options-screenshot-audio-label = { COPY(path1, "options.screenshot.audio.label") }
|
||||
|
||||
options-sourceeditor-label = { COPY(path1, "options.sourceeditor.label") }
|
||||
|
||||
options-sourceeditor-detectindentation-tooltip =
|
||||
.title = { COPY(path1, "options.sourceeditor.detectindentation.tooltip") }
|
||||
options-sourceeditor-detectindentation-label = { COPY(path1, "options.sourceeditor.detectindentation.label") }
|
||||
|
||||
options-sourceeditor-autoclosebrackets-tooltip =
|
||||
.title = { COPY(path1, "options.sourceeditor.autoclosebrackets.tooltip") }
|
||||
options-sourceeditor-autoclosebrackets-label = { COPY(path1, "options.sourceeditor.autoclosebrackets.label") }
|
||||
|
||||
options-sourceeditor-expandtab-tooltip =
|
||||
.title = { COPY(path1, "options.sourceeditor.expandtab.tooltip") }
|
||||
options-sourceeditor-expandtab-label = { COPY(path1, "options.sourceeditor.expandtab.label") }
|
||||
|
||||
options-sourceeditor-tabsize-label = { COPY(path1, "options.sourceeditor.tabsize.label") }
|
||||
|
||||
options-sourceeditor-keybinding-label = { COPY(path1, "options.sourceeditor.keybinding.label") }
|
||||
|
||||
options-sourceeditor-keybinding-default-label = { COPY(path1, "options.sourceeditor.keybinding.default.label") }
|
||||
|
||||
options-context-advanced-settings = { COPY(path1, "options.context.advancedSettings") }
|
||||
|
||||
options-source-maps-tooltip =
|
||||
.title = { COPY(path1, "options.sourceMaps.tooltip1") }
|
||||
options-source-maps-label = { COPY(path1, "options.sourceMaps.label") }
|
||||
|
||||
options-show-platform-data-tooltip =
|
||||
.title = { COPY(path1, "options.showPlatformData.tooltip") }
|
||||
options-show-platform-data-label = { COPY(path1, "options.showPlatformData.label") }
|
||||
|
||||
options-disable-http-cache-tooltip =
|
||||
.title = { COPY(path1, "options.disableHTTPCache.tooltip") }
|
||||
options-disable-http-cache-label = { COPY(path1, "options.disableHTTPCache.label") }
|
||||
|
||||
options-disable-javascript-tooltip =
|
||||
.title = { COPY(path1, "options.disableJavaScript.tooltip") }
|
||||
options-disable-javascript-label = { COPY(path1, "options.disableJavaScript.label") }
|
||||
|
||||
options-enable-service-workers-http-tooltip =
|
||||
.title = { COPY(path1, "options.enableServiceWorkersHTTP.tooltip") }
|
||||
options-enable-service-workers-http-label = { COPY(path1, "options.enableServiceWorkersHTTP.label") }
|
||||
|
||||
options-enable-chrome-tooltip =
|
||||
.title = { COPY(path1, "options.enableChrome.tooltip3") }
|
||||
options-enable-chrome-label = { COPY(path1, "options.enableChrome.label5") }
|
||||
|
||||
options-enable-remote-tooltip =
|
||||
.title = { COPY(path1, "options.enableRemote.tooltip2") }
|
||||
options-enable-remote-label = { COPY(path1, "options.enableRemote.label3") }
|
||||
|
||||
options-context-triggers-page-refresh = { COPY(path1, "options.context.triggersPageRefresh") }
|
||||
|
||||
""", path1="devtools/client/toolbox.dtd"))
|
@ -1,164 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
import fluent.syntax.ast as FTL
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
from fluent.migrate.helpers import COPY, TERM_REFERENCE
|
||||
from fluent.migrate import REPLACE, CONCAT
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1605217 - Migrate Identity Panel to Fluent., part {index}"""
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
|
||||
identity-connection-not-secure = { COPY(path1, "identity.connectionNotSecure2") }
|
||||
|
||||
identity-connection-secure = { COPY(path1, "identity.connectionSecure3") }
|
||||
|
||||
identity-connection-file = { COPY(path1, "identity.connectionFile") }
|
||||
|
||||
identity-extension-page = { COPY(path1, "identity.extensionPage") }
|
||||
|
||||
identity-custom-root = { COPY(path1, "identity.customRoot") }
|
||||
|
||||
identity-passive-loaded = { COPY(path1, "identity.passiveLoaded") }
|
||||
|
||||
identity-active-loaded = { COPY(path1, "identity.activeLoaded") }
|
||||
|
||||
identity-weak-encryption = { COPY(path1, "identity.weakEncryption") }
|
||||
|
||||
identity-insecure-login-forms = { COPY(path1, "identity.insecureLoginForms2") }
|
||||
|
||||
identity-permissions =
|
||||
.value = { COPY(path1, "identity.permissions3") }
|
||||
identity-permissions-reload-hint = { COPY(path1, "identity.permissionsReloadHint") }
|
||||
|
||||
identity-permissions-empty = { COPY(path1, "identity.permissionsEmpty") }
|
||||
|
||||
identity-clear-site-data =
|
||||
.label = { COPY(path1, "identity.clearSiteData") }
|
||||
identity-connection-not-secure-security-view = { COPY(path1, "identity.connectionNotSecureSecurityView") }
|
||||
|
||||
identity-connection-verified = { COPY(path1, "identity.connectionVerified3") }
|
||||
|
||||
identity-ev-owner-label = { COPY(path1, "identity.evOwnerLabel2") }
|
||||
|
||||
identity-remove-cert-exception =
|
||||
.label = { COPY(path1, "identity.removeCertException.label") }
|
||||
.accesskey = { COPY(path1, "identity.removeCertException.accesskey") }
|
||||
identity-description-insecure = { COPY(path1, "identity.description.insecure") }
|
||||
|
||||
identity-description-insecure-login-forms = { COPY(path1, "identity.description.insecureLoginForms") }
|
||||
|
||||
identity-description-weak-cipher-intro = { COPY(path1, "identity.description.weakCipher") }
|
||||
|
||||
identity-description-weak-cipher-risk = { COPY(path1, "identity.description.weakCipher2") }
|
||||
|
||||
identity-description-passive-loaded = { COPY(path1, "identity.description.passiveLoaded") }
|
||||
|
||||
identity-description-passive-loaded-insecure = { COPY(path1, "identity.description.passiveLoaded2") } <label data-l10n-name="link">{ COPY(path1, "identity.learnMore") }</label>
|
||||
|
||||
identity-description-active-loaded = { COPY(path1, "identity.description.activeLoaded") }
|
||||
|
||||
identity-description-active-loaded-insecure = { COPY(path1, "identity.description.activeLoaded2") }
|
||||
|
||||
identity-learn-more =
|
||||
.value = { COPY(path1, "identity.learnMore") }
|
||||
|
||||
identity-disable-mixed-content-blocking =
|
||||
.label = { COPY(path1, "identity.disableMixedContentBlocking.label") }
|
||||
.accesskey = { COPY(path1, "identity.disableMixedContentBlocking.accesskey") }
|
||||
identity-enable-mixed-content-blocking =
|
||||
.label = { COPY(path1, "identity.enableMixedContentBlocking.label") }
|
||||
.accesskey = { COPY(path1, "identity.enableMixedContentBlocking.accesskey") }
|
||||
identity-more-info-link-text =
|
||||
.label = { COPY(path1, "identity.moreInfoLinkText2") }
|
||||
""", path1="browser/chrome/browser/browser.dtd"))
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("identity-connection-internal"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"identity.connectionInternal",
|
||||
{
|
||||
"&brandShortName;": TERM_REFERENCE("brand-short-name")
|
||||
},
|
||||
)
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("identity-active-blocked"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"identity.activeBlocked",
|
||||
{
|
||||
"&brandShortName;": TERM_REFERENCE("brand-short-name")
|
||||
},
|
||||
)
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("identity-description-active-blocked"),
|
||||
value=CONCAT(
|
||||
REPLACE(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"identity.description.activeBlocked",
|
||||
{
|
||||
"&brandShortName;": TERM_REFERENCE("brand-short-name")
|
||||
},
|
||||
),
|
||||
FTL.TextElement(' <label data-l10n-name="link">'),
|
||||
COPY(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"identity.learnMore",
|
||||
),
|
||||
FTL.TextElement('</label>'),
|
||||
)
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("identity-description-custom-root"),
|
||||
value=CONCAT(
|
||||
REPLACE(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"identity.description.customRoot",
|
||||
{
|
||||
"&brandShortName;": TERM_REFERENCE("brand-short-name")
|
||||
},
|
||||
),
|
||||
FTL.TextElement(' <label data-l10n-name="link">'),
|
||||
COPY(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"identity.learnMore",
|
||||
),
|
||||
FTL.TextElement('</label>'),
|
||||
)
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("identity-description-passive-loaded-mixed"),
|
||||
value=CONCAT(
|
||||
REPLACE(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"identity.description.passiveLoaded3",
|
||||
{
|
||||
"&brandShortName;": TERM_REFERENCE("brand-short-name")
|
||||
},
|
||||
),
|
||||
FTL.TextElement(' <label data-l10n-name="link">'),
|
||||
COPY(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"identity.learnMore",
|
||||
),
|
||||
FTL.TextElement('</label>'),
|
||||
)
|
||||
),
|
||||
]
|
||||
)
|
@ -1,39 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
import fluent.syntax.ast as FTL
|
||||
from fluent.migrate.helpers import transforms_from, TERM_REFERENCE, MESSAGE_REFERENCE
|
||||
from fluent.migrate import COPY_PATTERN, REPLACE, COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1605467 - Migrate text action shortcuts to Fluent, part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
'toolkit/toolkit/global/textActions.ftl',
|
||||
'toolkit/toolkit/global/textActions.ftl',
|
||||
transforms_from(
|
||||
"""
|
||||
text-action-undo-shortcut =
|
||||
.key = { COPY(from_path, "undoCmd.key") }
|
||||
|
||||
text-action-redo-shortcut =
|
||||
.key = { COPY(from_path, "redoCmd.key") }
|
||||
|
||||
text-action-cut-shortcut =
|
||||
.key = { COPY(from_path, "cutCmd.key") }
|
||||
|
||||
text-action-copy-shortcut =
|
||||
.key = { COPY(from_path, "copyCmd.key") }
|
||||
|
||||
text-action-paste-shortcut =
|
||||
.key = { COPY(from_path, "pasteCmd.key") }
|
||||
|
||||
text-action-select-all-shortcut =
|
||||
.key = { COPY(from_path, "selectAllCmd.key") }
|
||||
""", from_path="browser/chrome/browser/browser.dtd")
|
||||
)
|
||||
|
@ -1,45 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
import fluent.syntax.ast as FTL
|
||||
from fluent.migrate.helpers import VARIABLE_REFERENCE
|
||||
from fluent.migrate import REPLACE
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1606909 - Port Tips from the experiment behind a pref, part {index}."""
|
||||
|
||||
|
||||
ctx.add_transforms(
|
||||
'browser/browser/browser.ftl',
|
||||
'browser/browser/browser.ftl',
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("urlbar-search-tips-onboard"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"urlbarSearchTip.onboarding",
|
||||
{
|
||||
"%1$S": VARIABLE_REFERENCE("engineName")
|
||||
},
|
||||
normalize_printf=True,
|
||||
trim=True
|
||||
)
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("urlbar-search-tips-redirect"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"urlbarSearchTip.engineIsCurrentPage",
|
||||
{
|
||||
"%1$S": VARIABLE_REFERENCE("engineName")
|
||||
},
|
||||
normalize_printf=True,
|
||||
trim=True
|
||||
)
|
||||
),
|
||||
]
|
||||
)
|
@ -1,363 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
import fluent.syntax.ast as FTL
|
||||
from fluent.migrate.helpers import transforms_from, TERM_REFERENCE, MESSAGE_REFERENCE, VARIABLE_REFERENCE
|
||||
from fluent.migrate import COPY_PATTERN, REPLACE, COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1608022 - Migrate browser-sets to Fluent, part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
'browser/browser/browser.ftl',
|
||||
'browser/browser/browser.ftl',
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("urlbar-star-edit-bookmark"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"starButtonOn.tooltip2",
|
||||
{
|
||||
"%1$S": VARIABLE_REFERENCE("shortcut")
|
||||
},
|
||||
normalize_printf=True
|
||||
)
|
||||
)
|
||||
]
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("urlbar-star-add-bookmark"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"starButtonOff.tooltip2",
|
||||
{
|
||||
"%1$S": VARIABLE_REFERENCE("shortcut")
|
||||
},
|
||||
normalize_printf=True
|
||||
)
|
||||
)
|
||||
]
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
'browser/browser/browserContext.ftl',
|
||||
'browser/browser/browserContext.ftl',
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("main-context-menu-bookmark-add"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("aria-label"),
|
||||
value=COPY_PATTERN(
|
||||
"browser/browser/browserContext.ftl",
|
||||
"main-context-menu-bookmark-page.aria-label",
|
||||
)
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("accesskey"),
|
||||
value=COPY_PATTERN(
|
||||
"browser/browser/browserContext.ftl",
|
||||
"main-context-menu-bookmark-page.accesskey",
|
||||
)
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"starButtonOff.tooltip2",
|
||||
{
|
||||
" (%1$S)": FTL.TextElement("")
|
||||
},
|
||||
trim=True,
|
||||
normalize_printf=True
|
||||
)
|
||||
),
|
||||
]
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("main-context-menu-bookmark-add-with-shortcut"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("aria-label"),
|
||||
value=COPY_PATTERN(
|
||||
"browser/browser/browserContext.ftl",
|
||||
"main-context-menu-bookmark-page.aria-label",
|
||||
)
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("accesskey"),
|
||||
value=COPY_PATTERN(
|
||||
"browser/browser/browserContext.ftl",
|
||||
"main-context-menu-bookmark-page.accesskey",
|
||||
)
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"starButtonOff.tooltip2",
|
||||
{
|
||||
"%1$S": VARIABLE_REFERENCE("shortcut")
|
||||
},
|
||||
normalize_printf=True
|
||||
)
|
||||
),
|
||||
]
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("main-context-menu-bookmark-change"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("aria-label"),
|
||||
value=COPY(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"editThisBookmarkCmd.label",
|
||||
)
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("accesskey"),
|
||||
value=COPY_PATTERN(
|
||||
"browser/browser/browserContext.ftl",
|
||||
"main-context-menu-bookmark-page.accesskey",
|
||||
)
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"starButtonOn.tooltip2",
|
||||
{
|
||||
" (%1$S)": FTL.TextElement("")
|
||||
},
|
||||
trim=True,
|
||||
normalize_printf=True
|
||||
)
|
||||
),
|
||||
]
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("main-context-menu-bookmark-change-with-shortcut"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("aria-label"),
|
||||
value=COPY(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"editThisBookmarkCmd.label",
|
||||
)
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("accesskey"),
|
||||
value=COPY_PATTERN(
|
||||
"browser/browser/browserContext.ftl",
|
||||
"main-context-menu-bookmark-page.accesskey",
|
||||
)
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"starButtonOn.tooltip2",
|
||||
{
|
||||
"%1$S": VARIABLE_REFERENCE("shortcut")
|
||||
},
|
||||
normalize_printf=True
|
||||
)
|
||||
),
|
||||
]
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
'browser/browser/menubar.ftl',
|
||||
'browser/browser/menubar.ftl',
|
||||
transforms_from(
|
||||
"""
|
||||
menu-bookmark-this-page =
|
||||
.label = { COPY(from_path, "bookmarkThisPageCmd.label") }
|
||||
menu-bookmark-edit =
|
||||
.label = { COPY(from_path, "editThisBookmarkCmd.label") }
|
||||
""", from_path="browser/chrome/browser/browser.dtd")
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
'browser/browser/browserSets.ftl',
|
||||
'browser/browser/browserSets.ftl',
|
||||
transforms_from(
|
||||
"""
|
||||
window-minimize-command =
|
||||
.label = { COPY(baseMenuOverlay_path, "minimizeWindow.label") }
|
||||
|
||||
window-zoom-command =
|
||||
.label = { COPY(baseMenuOverlay_path, "zoomWindow.label") }
|
||||
|
||||
window-new-shortcut =
|
||||
.key = { COPY(browser_path, "newNavigatorCmd.key") }
|
||||
|
||||
window-minimize-shortcut =
|
||||
.key = { COPY(baseMenuOverlay_path, "minimizeWindow.key") }
|
||||
|
||||
close-shortcut =
|
||||
.key = { COPY(browser_path, "closeCmd.key") }
|
||||
|
||||
tab-new-shortcut =
|
||||
.key = { COPY(browser_path, "tabCmd.commandkey") }
|
||||
|
||||
location-open-shortcut =
|
||||
.key = { COPY(browser_path, "openCmd.commandkey") }
|
||||
|
||||
location-open-shortcut-alt =
|
||||
.key = { COPY(browser_path, "urlbar.accesskey") }
|
||||
|
||||
search-focus-shortcut =
|
||||
.key = { COPY(browser_path, "searchFocus.commandkey") }
|
||||
|
||||
find-shortcut =
|
||||
.key = { COPY(browser_path, "findOnCmd.commandkey") }
|
||||
|
||||
search-find-again-shortcut =
|
||||
.key = { COPY(browser_path, "findAgainCmd.commandkey") }
|
||||
|
||||
search-find-again-shortcut-alt =
|
||||
.keycode = { COPY(browser_path, "findAgainCmd.commandkey2") }
|
||||
|
||||
search-find-selection-shortcut =
|
||||
.key = { COPY(browser_path, "findSelectionCmd.commandkey") }
|
||||
|
||||
search-focus-shortcut-alt =
|
||||
.key = { PLATFORM() ->
|
||||
[linux] { COPY(browser_path, "searchFocusUnix.commandkey") }
|
||||
*[other] { COPY(browser_path, "searchFocus.commandkey2") }
|
||||
}
|
||||
|
||||
downloads-shortcut =
|
||||
.key = { PLATFORM() ->
|
||||
[linux] { COPY(browser_path, "downloadsUnix.commandkey") }
|
||||
*[other] { COPY(browser_path, "downloads.commandkey") }
|
||||
}
|
||||
|
||||
addons-shortcut =
|
||||
.key = { COPY(browser_path, "addons.commandkey") }
|
||||
|
||||
file-open-shortcut =
|
||||
.key = { COPY(browser_path, "openFileCmd.commandkey") }
|
||||
|
||||
save-page-shortcut =
|
||||
.key = { COPY(browser_path, "savePageCmd.commandkey") }
|
||||
|
||||
page-source-shortcut =
|
||||
.key = { COPY(browser_path, "pageSourceCmd.commandkey") }
|
||||
|
||||
page-source-shortcut-safari =
|
||||
.key = { COPY(browser_path, "pageSourceCmd.SafariCommandKey") }
|
||||
|
||||
page-info-shortcut =
|
||||
.key = { COPY(browser_path, "pageInfoCmd.commandkey") }
|
||||
|
||||
print-shortcut =
|
||||
.key = { COPY(browser_path, "printCmd.commandkey") }
|
||||
|
||||
mute-toggle-shortcut =
|
||||
.key = { COPY(browser_path, "toggleMuteCmd.key") }
|
||||
|
||||
nav-back-shortcut-alt =
|
||||
.key = { COPY(browser_path, "goBackCmd.commandKey") }
|
||||
|
||||
nav-fwd-shortcut-alt =
|
||||
.key = { COPY(browser_path, "goForwardCmd.commandKey") }
|
||||
|
||||
nav-reload-shortcut =
|
||||
.key = { COPY(browser_path, "reloadCmd.commandkey") }
|
||||
|
||||
nav-stop-shortcut =
|
||||
.key = { COPY(browser_path, "stopCmd.macCommandKey") }
|
||||
|
||||
history-show-all-shortcut =
|
||||
.key = { COPY(browser_path, "showAllHistoryCmd.commandkey") }
|
||||
|
||||
history-sidebar-shortcut =
|
||||
.key = { COPY(browser_path, "historySidebarCmd.commandKey") }
|
||||
|
||||
full-screen-shortcut =
|
||||
.key = { COPY(browser_path, "fullScreenCmd.macCommandKey") }
|
||||
|
||||
reader-mode-toggle-shortcut =
|
||||
.key = { PLATFORM() ->
|
||||
[windows] { COPY(browser_path, "toggleReaderMode.win.keycode") }
|
||||
*[other] { COPY(browser_path, "toggleReaderMode.key") }
|
||||
}
|
||||
|
||||
picture-in-picture-toggle-shortcut =
|
||||
.key = { COPY(browser_path, "togglePictureInPicture.key") }
|
||||
|
||||
picture-in-picture-toggle-shortcut-alt =
|
||||
.key = { "}" }
|
||||
|
||||
bookmark-this-page-shortcut =
|
||||
.key = { COPY(browser_path, "bookmarkThisPageCmd.commandkey") }
|
||||
|
||||
bookmark-show-all-shortcut =
|
||||
.key = { PLATFORM() ->
|
||||
[linux] { COPY(browser_path, "bookmarksGtkCmd.commandkey") }
|
||||
*[other] { COPY(browser_path, "bookmarksWinCmd.commandkey") }
|
||||
}
|
||||
|
||||
bookmark-show-sidebar-shortcut =
|
||||
.key = { COPY(browser_path, "bookmarksCmd.commandkey") }
|
||||
|
||||
full-zoom-reduce-shortcut =
|
||||
.key = { COPY(browser_path, "fullZoomReduceCmd.commandkey") }
|
||||
|
||||
full-zoom-reduce-shortcut-alt =
|
||||
.key = { COPY(browser_path, "fullZoomReduceCmd.commandkey2") }
|
||||
|
||||
full-zoom-enlarge-shortcut =
|
||||
.key = { COPY(browser_path, "fullZoomEnlargeCmd.commandkey") }
|
||||
|
||||
full-zoom-enlarge-shortcut-alt =
|
||||
.key = { COPY(browser_path, "fullZoomEnlargeCmd.commandkey2") }
|
||||
|
||||
full-zoom-enlarge-shortcut-alt2 =
|
||||
.key = { COPY(browser_path, "fullZoomEnlargeCmd.commandkey3") }
|
||||
|
||||
full-zoom-reset-shortcut =
|
||||
.key = { COPY(browser_path, "fullZoomResetCmd.commandkey") }
|
||||
|
||||
full-zoom-reset-shortcut-alt =
|
||||
.key = { COPY(browser_path, "fullZoomResetCmd.commandkey2") }
|
||||
|
||||
bidi-switch-direction-shortcut =
|
||||
.key = { COPY(browser_path, "bidiSwitchTextDirectionItem.commandkey") }
|
||||
|
||||
private-browsing-shortcut =
|
||||
.key = { COPY(browser_path, "privateBrowsingCmd.commandkey") }
|
||||
|
||||
quit-app-shortcut =
|
||||
.key = { COPY(browser_path, "quitApplicationCmd.key") }
|
||||
|
||||
help-shortcut =
|
||||
.key = { COPY(baseMenuOverlay_path, "helpMac.commandkey") }
|
||||
|
||||
preferences-shortcut =
|
||||
.key = { COPY(baseMenuOverlay_path, "preferencesCmdMac.commandkey") }
|
||||
|
||||
hide-app-shortcut =
|
||||
.key = { COPY(baseMenuOverlay_path, "hideThisAppCmdMac2.commandkey") }
|
||||
|
||||
hide-other-apps-shortcut =
|
||||
.key = { COPY(baseMenuOverlay_path, "hideOtherAppsCmdMac.commandkey") }
|
||||
""", baseMenuOverlay_path="browser/chrome/browser/baseMenuOverlay.dtd",
|
||||
browser_path="browser/chrome/browser/browser.dtd")
|
||||
)
|
@ -1,31 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
import fluent.syntax.ast as FTL
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1608923 - add accessible labels to PiP controls, part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
'toolkit/toolkit/pictureinpicture/pictureinpicture.ftl',
|
||||
'toolkit/toolkit/pictureinpicture/pictureinpicture.ftl',
|
||||
transforms_from(
|
||||
"""
|
||||
pictureinpicture-pause =
|
||||
.aria-label = { COPY(from_path, "playButton.pauseLabel") }
|
||||
pictureinpicture-play =
|
||||
.aria-label = { COPY(from_path, "playButton.playLabel") }
|
||||
|
||||
pictureinpicture-mute =
|
||||
.aria-label = { COPY(from_path, "muteButton.muteLabel") }
|
||||
pictureinpicture-unmute =
|
||||
.aria-label = { COPY(from_path, "muteButton.unmuteLabel") }
|
||||
""", from_path="toolkit/chrome/global/videocontrols.dtd")
|
||||
)
|
||||
|
||||
|
@ -1,27 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
import fluent.syntax.ast as FTL
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1612723 - move reader mode l10n to use keycode, part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
'browser/browser/browserSets.ftl',
|
||||
'browser/browser/browserSets.ftl',
|
||||
transforms_from(
|
||||
"""
|
||||
reader-mode-toggle-shortcut-windows =
|
||||
.keycode = { COPY(browser_path, "toggleReaderMode.win.keycode") }
|
||||
|
||||
reader-mode-toggle-shortcut-other =
|
||||
.key = { COPY(browser_path, "toggleReaderMode.key") }
|
||||
""", browser_path="browser/chrome/browser/browser.dtd")
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user