mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1750538 - Remove Fluent migration recipes for Firefox 92-95, r=eemeli
Differential Revision: https://phabricator.services.mozilla.com/D136120
This commit is contained in:
parent
62502424e4
commit
e18b1fe590
@ -1,26 +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, VARIABLE_REFERENCE
|
||||
from fluent.migrate import REPLACE, COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1534799 - Convert searchTextBox.clear.label to Fluent, part {index}"""
|
||||
target = "toolkit/toolkit/global/textActions.ftl"
|
||||
reference = "toolkit/toolkit/global/textActions.ftl"
|
||||
ctx.add_transforms(
|
||||
target,
|
||||
reference,
|
||||
transforms_from(
|
||||
"""
|
||||
text-action-search-text-box-clear =
|
||||
.title = { COPY(from_path, "searchTextBox.clear.label") }
|
||||
""",
|
||||
from_path="toolkit/chrome/global/textcontext.dtd",
|
||||
),
|
||||
)
|
@ -1,34 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
from fluent.migrate import COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1609558 - Migrate panelUI.inc.xhtml to Fluent, part {index}."""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/panelUI.ftl",
|
||||
"browser/browser/panelUI.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
customize-menu-unpin-from-overflowmenu =
|
||||
.label = { COPY(from_path, "customizeMenu.unpinFromOverflowMenu.label") }
|
||||
.accesskey = { COPY(from_path, "customizeMenu.unpinFromOverflowMenu.accesskey") }
|
||||
customize-menu-add-to-toolbar =
|
||||
.label = { COPY(from_path, "customizeMenu.addToToolbar.label") }
|
||||
.accesskey = { COPY(from_path, "customizeMenu.addToToolbar.accesskey") }
|
||||
customize-menu-add-to-overflowmenu =
|
||||
.label = { COPY(from_path, "customizeMenu.addToOverflowMenu.label") }
|
||||
.accesskey = { COPY(from_path, "customizeMenu.addToOverflowMenu.accesskey") }
|
||||
panic-button-thankyou-msg1 = { COPY(from_path, "panicButton.thankyou.msg1") }
|
||||
panic-button-thankyou-msg2 = { COPY(from_path, "panicButton.thankyou.msg2") }
|
||||
panic-button-thankyou-button =
|
||||
.label = { COPY(from_path, "panicButton.thankyou.buttonlabel") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
@ -1,36 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
from fluent.migrate import COPY, COPY_PATTERN
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1625478 - Convert appMenu* strings from browser.dtd to appmenu.ftl, part {index}."""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/appmenu.ftl",
|
||||
"browser/browser/appmenu.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
appmenuitem-help =
|
||||
.label = { COPY(from_path, "appMenuHelp.label") }
|
||||
appmenu-remote-tabs-showall =
|
||||
.label = { COPY(from_path, "appMenuRemoteTabs.showAll.label") }
|
||||
.tooltiptext = { COPY(from_path, "appMenuRemoteTabs.showAll.tooltip") }
|
||||
appmenu-remote-tabs-showmore =
|
||||
.label = { COPY_PATTERN("browser/browser/appmenu.ftl", "appmenu-fxa-show-more-tabs")}
|
||||
.tooltiptext = { COPY(from_path, "appMenuRemoteTabs.showMore.tooltip") }
|
||||
appmenu-remote-tabs-notabs = { COPY(from_path, "appMenuRemoteTabs.notabs.label") }
|
||||
appmenu-remote-tabs-tabsnotsyncing = { COPY(from_path, "appMenuRemoteTabs.tabsnotsyncing.label") }
|
||||
appmenu-remote-tabs-noclients = { COPY(from_path, "appMenuRemoteTabs.noclients.subtitle") }
|
||||
appmenu-remote-tabs-connectdevice =
|
||||
.label = { COPY(from_path, "appMenuRemoteTabs.connectdevice.label") }
|
||||
appmenu-remote-tabs-welcome = { COPY(from_path, "appMenuRemoteTabs.welcome.label") }
|
||||
appmenu-remote-tabs-unverified = { COPY(from_path, "appMenuRemoteTabs.unverified.label") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
@ -1,121 +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, VARIABLE_REFERENCE
|
||||
from fluent.migrate import COPY, REPLACE
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1635553 - Migrate navigator-toolbox to Fluent, part {index}."""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
navbar-accessible =
|
||||
.aria-label = { COPY(from_path, "navbar.accessibleLabel") }
|
||||
|
||||
navbar-downloads =
|
||||
.label = { COPY(from_path, "downloads.label") }
|
||||
|
||||
navbar-overflow =
|
||||
.tooltiptext = { COPY(from_path, "navbarOverflow.label") }
|
||||
|
||||
navbar-print-tab-modal-disabled =
|
||||
.label = { COPY(from_path, "printButton.label") }
|
||||
.tooltiptext = { COPY(from_path, "printButton.tooltip") }
|
||||
|
||||
navbar-library =
|
||||
.label = { COPY("browser/chrome/browser/places/places.dtd", "places.library.title") }
|
||||
.tooltiptext = { COPY(from_path, "libraryButton.tooltip") }
|
||||
|
||||
navbar-search =
|
||||
.title = { COPY(from_path, "searchItem.title") }
|
||||
|
||||
navbar-accessibility-indicator =
|
||||
.tooltiptext = { COPY(from_path, "accessibilityIndicator.tooltip") }
|
||||
|
||||
tabs-toolbar =
|
||||
.aria-label = { COPY(from_path, "tabsToolbar.label") }
|
||||
|
||||
tabs-toolbar-new-tab =
|
||||
.label = { COPY(from_path, "tabCmd.label") }
|
||||
|
||||
tabs-toolbar-list-all-tabs =
|
||||
.label = { COPY(from_path, "listAllTabs.label") }
|
||||
.tooltiptext = { COPY(from_path, "listAllTabs.label") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("navbar-print"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("label"),
|
||||
value=COPY(
|
||||
"browser/chrome/browser/browser.dtd", "printButton.label"
|
||||
),
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"printButton.tooltip",
|
||||
{"%1$S": VARIABLE_REFERENCE("shortcut")},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("navbar-home"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("label"),
|
||||
value=COPY(
|
||||
"browser/chrome/browser/browser.dtd", "homeButton.label"
|
||||
),
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"homeButton.defaultPage.tooltip",
|
||||
{
|
||||
"&brandShortName;": TERM_REFERENCE("brand-short-name"),
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/toolbarContextMenu.ftl",
|
||||
"browser/browser/toolbarContextMenu.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
toolbar-context-menu-menu-bar-cmd =
|
||||
.toolbarname = { COPY(from_path, "menubarCmd.label") }
|
||||
.accesskey = { COPY(from_path, "menubarCmd.accesskey") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
@ -1,41 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
from fluent.migrate import COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1684876 - Migrate Play Tab and Play Tabs to Fluent, part {index}"""
|
||||
|
||||
target = "browser/browser/tabContextMenu.ftl"
|
||||
reference = "browser/browser/tabContextMenu.ftl"
|
||||
|
||||
ctx.add_transforms(
|
||||
target,
|
||||
reference,
|
||||
transforms_from(
|
||||
"""
|
||||
tab-context-play-tab =
|
||||
.label = { COPY(from_path, "playTab.label") }
|
||||
.accesskey = { COPY(from_path, "playTab.accesskey") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.properties",
|
||||
),
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
target,
|
||||
reference,
|
||||
transforms_from(
|
||||
"""
|
||||
tab-context-play-tabs =
|
||||
.label = { COPY(from_path, "playTabs.label") }
|
||||
.accesskey = { COPY(from_path, "playTabs.accesskey") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.properties",
|
||||
),
|
||||
)
|
@ -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
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
from fluent.migrate import COPY_PATTERN
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1706650 - Split appmenuitem-update-banner3 for each notification, part {index}."""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/appmenu.ftl",
|
||||
"browser/browser/appmenu.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
appmenuitem-banner-update-downloading =
|
||||
.label = { COPY_PATTERN(ftl_path, "appmenuitem-update-banner3.label-update-downloading") }
|
||||
appmenuitem-banner-update-available =
|
||||
.label = { COPY_PATTERN(ftl_path, "appmenuitem-update-banner3.label-update-available") }
|
||||
appmenuitem-banner-update-manual =
|
||||
.label = { COPY_PATTERN(ftl_path, "appmenuitem-update-banner3.label-update-manual") }
|
||||
appmenuitem-banner-update-unsupported =
|
||||
.label = { COPY_PATTERN(ftl_path, "appmenuitem-update-banner3.label-update-unsupported") }
|
||||
appmenuitem-banner-update-restart =
|
||||
.label = { COPY_PATTERN(ftl_path, "appmenuitem-update-banner3.label-update-restart") }
|
||||
""",
|
||||
ftl_path="browser/browser/appmenu.ftl",
|
||||
),
|
||||
)
|
@ -1,24 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
from fluent.migrate import COPY_PATTERN
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1719727 - Change "Personalize" on New Tab to gear icon, part {index}"""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/newtab/newtab.ftl",
|
||||
"browser/browser/newtab/newtab.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
newtab-personalize-icon-label =
|
||||
.title = { COPY_PATTERN(from_path, "newtab-personalize-button-label.title") }
|
||||
.aria-label = { COPY_PATTERN(from_path, "newtab-personalize-button-label.aria-label") }
|
||||
""",
|
||||
from_path="browser/browser/newtab/newtab.ftl",
|
||||
),
|
||||
)
|
@ -1,23 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1724793 - Update casing of the toolbar overflow menu customize button. - part {index}"""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
toolbar-overflow-customize-button =
|
||||
.label = { COPY(from_path, "overflowCustomizeToolbar.label") }
|
||||
.accesskey = { COPY(from_path, "overflowCustomizeToolbar.accesskey") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
@ -1,81 +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 VARIABLE_REFERENCE
|
||||
from fluent.migrate import COPY, REPLACE
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1725502 - Migrate strings in main-popupset.inc.xhtml from browser.dtd to browser.ftl, part {index}"""
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
|
||||
ui-tour-info-panel-close =
|
||||
.tooltiptext = { COPY(path_dtd, "uiTour.infoPanel.close") }
|
||||
popups-infobar-dont-show-message =
|
||||
.label = { COPY(path_properties, "popupWarningDontShowFromMessage") }
|
||||
.accesskey = { COPY(path_dtd, "dontShowMessage.accesskey") }
|
||||
picture-in-picture-hide-toggle =
|
||||
.label = { COPY(path_dtd, "pictureInPictureHideToggle.label") }
|
||||
.accesskey = { COPY(path_dtd, "pictureInPictureHideToggle.accesskey") }
|
||||
""",
|
||||
path_dtd="browser/chrome/browser/browser.dtd",
|
||||
path_properties="browser/chrome/browser/browser.properties",
|
||||
),
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("popups-infobar-allow"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
FTL.Identifier("label"),
|
||||
REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"popupAllow",
|
||||
{"%1$S": VARIABLE_REFERENCE("uriHost")},
|
||||
),
|
||||
),
|
||||
FTL.Attribute(
|
||||
FTL.Identifier("accesskey"),
|
||||
COPY(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"allowPopups.accesskey",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("popups-infobar-block"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
FTL.Identifier("label"),
|
||||
REPLACE(
|
||||
"browser/chrome/browser/browser.properties",
|
||||
"popupBlock",
|
||||
{"%1$S": VARIABLE_REFERENCE("uriHost")},
|
||||
),
|
||||
),
|
||||
FTL.Attribute(
|
||||
FTL.Identifier("accesskey"),
|
||||
COPY(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"allowPopups.accesskey",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
@ -1,103 +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, VARIABLE_REFERENCE
|
||||
from fluent.migrate import COPY, COPY_PATTERN, REPLACE
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1727916 - Switch several customizable toolbar item names to sentence case, part {index}"""
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
toolbar-button-email-link =
|
||||
.label = { COPY(from_path, "email-link-button.label") }
|
||||
.tooltiptext = { COPY(from_path, "email-link-button.tooltiptext3") }
|
||||
toolbar-button-synced-tabs =
|
||||
.label = { COPY(from_path, "remotetabs-panelmenu.label") }
|
||||
.tooltiptext = { COPY(from_path, "remotetabs-panelmenu.tooltiptext2") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/customizableui/customizableWidgets.properties",
|
||||
),
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("toolbar-button-save-page"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("label"),
|
||||
value=COPY(
|
||||
"browser/chrome/browser/customizableui/customizableWidgets.properties",
|
||||
"save-page-button.label",
|
||||
),
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/customizableui/customizableWidgets.properties",
|
||||
"save-page-button.tooltiptext3",
|
||||
{"%1$S": VARIABLE_REFERENCE("shortcut")},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("toolbar-button-open-file"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("label"),
|
||||
value=COPY(
|
||||
"browser/chrome/browser/customizableui/customizableWidgets.properties",
|
||||
"open-file-button.label",
|
||||
),
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/customizableui/customizableWidgets.properties",
|
||||
"open-file-button.tooltiptext3",
|
||||
{"%1$S": VARIABLE_REFERENCE("shortcut")},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/browser.ftl",
|
||||
"browser/browser/browser.ftl",
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("toolbar-button-new-private-window"),
|
||||
attributes=[
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("label"),
|
||||
value=COPY_PATTERN(
|
||||
"browser/browser/appmenu.ftl",
|
||||
"appmenuitem-new-private-window.label",
|
||||
),
|
||||
),
|
||||
FTL.Attribute(
|
||||
id=FTL.Identifier("tooltiptext"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/customizableui/customizableWidgets.properties",
|
||||
"privatebrowsing-button.tooltiptext",
|
||||
{"%1$S": VARIABLE_REFERENCE("shortcut")},
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
@ -1,26 +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, VARIABLE_REFERENCE
|
||||
from fluent.migrate import REPLACE, COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1728458 - Migrate browser-box.inc.xhtml to Fluent, part {index}"""
|
||||
target = "browser/browser/sidebarMenu.ftl"
|
||||
reference = "browser/browser/sidebarMenu.ftl"
|
||||
ctx.add_transforms(
|
||||
target,
|
||||
reference,
|
||||
transforms_from(
|
||||
"""
|
||||
sidebar-close-button =
|
||||
.tooltiptext = { COPY(from_path, "sidebarCloseButton.tooltip") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
@ -1,58 +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
|
||||
from fluent.migrate import COPY, REPLACE
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1728460 - Migrate appmenu-viewcache.inc.xhtml to Fluent, part {index}."""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/appmenu.ftl",
|
||||
"browser/browser/appmenu.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
appmenuitem-print =
|
||||
.label = { COPY(from_path, "printCmd.label") }
|
||||
appmenuitem-downloads =
|
||||
.label = { COPY(from_path, "libraryDownloads.label") }
|
||||
appmenuitem-history =
|
||||
.label = { COPY(from_path, "historyMenu.label") }
|
||||
appmenuitem-zoom =
|
||||
.value = { COPY(from_path, "fullZoom.label") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
||||
ctx.add_transforms(
|
||||
"browser/browser/sync.ftl",
|
||||
"browser/browser/sync.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
fxa-menu-send-tab-to-device-description = { COPY(from_path, "fxa.service.sendTab.description") }
|
||||
fxa-menu-send-tab-to-device-syncnotready =
|
||||
.label = { COPY(from_path, "sendToDevice.syncNotReady.label") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
||||
ctx.add_transforms(
|
||||
"browser/browser/appmenu.ftl",
|
||||
"browser/browser/appmenu.ftl",
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("appmenuitem-fxa-sign-in"),
|
||||
value=REPLACE(
|
||||
"browser/chrome/browser/browser.dtd",
|
||||
"fxa.menu.signin.label",
|
||||
{
|
||||
"&brandProductName;": TERM_REFERENCE("brand-product-name"),
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
@ -1,38 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
from fluent.migrate import COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1729738 - Migrate app extension properties to Fluent, part {index}."""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/appExtensionFields.ftl",
|
||||
"browser/browser/appExtensionFields.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
extension-firefox-compact-light-name = { COPY(from_path, "extension.firefox-compact-light@mozilla.org.name") }
|
||||
extension-firefox-compact-light-description = { COPY(from_path, "extension.firefox-compact-light@mozilla.org.description") }
|
||||
extension-firefox-compact-dark-name = { COPY(from_path, "extension.firefox-compact-dark@mozilla.org.name") }
|
||||
extension-firefox-compact-dark-description= { COPY(from_path, "extension.firefox-compact-dark@mozilla.org.description") }
|
||||
extension-firefox-alpenglow-name = { COPY(from_path, "extension.firefox-alpenglow@mozilla.org.name") }
|
||||
extension-firefox-alpenglow-description = { COPY(from_path, "extension.firefox-alpenglow@mozilla.org.description") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/app-extension-fields.properties",
|
||||
),
|
||||
)
|
||||
ctx.add_transforms(
|
||||
"browser/browser/appExtensionFields.ftl",
|
||||
"browser/browser/appExtensionFields.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
extension-default-theme-name = { COPY(from_path, "extension.default-theme@mozilla.org.name") }
|
||||
extension-default-theme-description = { COPY(from_path, "extension.default-theme@mozilla.org.description") }
|
||||
""",
|
||||
from_path="toolkit/chrome/global/global-extension-fields.properties",
|
||||
),
|
||||
)
|
@ -1,29 +0,0 @@
|
||||
# coding=utf8
|
||||
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from __future__ import absolute_import
|
||||
from fluent.migrate.helpers import transforms_from
|
||||
from fluent.migrate import COPY, COPY_PATTERN
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1730893 - Localize the popup's button tooltip when changing state, part {index}"""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/appmenu.ftl",
|
||||
"browser/browser/appmenu.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
profiler-popup-learn-more-button =
|
||||
.label = { COPY_PATTERN(ftl_path, "profiler-popup-learn-more") }
|
||||
profiler-popup-edit-settings-button =
|
||||
.label = { COPY_PATTERN(ftl_path, "profiler-popup-edit-settings") }
|
||||
profiler-popup-button-idle =
|
||||
.label = { COPY(prop_path, "profiler-button.label") }
|
||||
.tooltiptext = { COPY(prop_path, "profiler-button.tooltiptext") }
|
||||
""",
|
||||
prop_path="browser/chrome/browser/customizableui/customizableWidgets.properties",
|
||||
ftl_path="browser/browser/appmenu.ftl",
|
||||
),
|
||||
)
|
@ -1,42 +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, VARIABLE_REFERENCE
|
||||
from fluent.migrate import REPLACE, COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1730953 - Migrate strings from browser.dtd to Fluent, part {index}"""
|
||||
ctx.add_transforms(
|
||||
"browser/browser/places.ftl",
|
||||
"browser/browser/places.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
places-history =
|
||||
.aria-label = { COPY(from_path, "historyButton.label") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/search.ftl",
|
||||
"browser/browser/search.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
searchbar-submit =
|
||||
.tooltiptext = { COPY(from_path, "contentSearchSubmit.tooltip") }
|
||||
|
||||
searchbar-input =
|
||||
.placeholder = { COPY(from_path, "searchInput.placeholder") }
|
||||
|
||||
searchbar-icon =
|
||||
.tooltiptext = { COPY(from_path, "searchIcon.tooltip") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/browser.dtd",
|
||||
),
|
||||
)
|
@ -1,30 +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 TERM_REFERENCE
|
||||
from fluent.migrate import REPLACE
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1731381 - Migrate profileSelection conflict message from properties to Fluent, part {index}."""
|
||||
ctx.add_transforms(
|
||||
"toolkit/toolkit/global/profileSelection.ftl",
|
||||
"toolkit/toolkit/global/profileSelection.ftl",
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("profile-selection-conflict-message"),
|
||||
value=REPLACE(
|
||||
"toolkit/chrome/mozapps/profile/profileSelection.properties",
|
||||
"conflictMessage",
|
||||
{
|
||||
"%1$S": TERM_REFERENCE("brand-product-name"),
|
||||
"%2$S": TERM_REFERENCE("brand-short-name"),
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
@ -1,137 +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, VARIABLE_REFERENCE
|
||||
from fluent.migrate import REPLACE, COPY
|
||||
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1731684 - Migrate places.dtd to Fluent, part {index}"""
|
||||
target = "browser/browser/places.ftl"
|
||||
reference = "browser/browser/places.ftl"
|
||||
ctx.add_transforms(
|
||||
target,
|
||||
reference,
|
||||
transforms_from(
|
||||
"""
|
||||
places-library =
|
||||
.title = { COPY(from_path, "places.library.title") }
|
||||
.style = width:{ COPY(from_path, "places.library.width") }px; height:{ COPY(from_path, "places.library.height") }px;
|
||||
|
||||
places-organize-button =
|
||||
.label = { COPY(from_path, "organize.label") }
|
||||
.tooltiptext = { COPY(from_path, "organize.tooltip") }
|
||||
.accesskey = { COPY(from_path, "organize.accesskey") }
|
||||
|
||||
places-organize-button-mac =
|
||||
.label = { COPY(from_path, "organize.label") }
|
||||
.tooltiptext = { COPY(from_path, "organize.tooltip") }
|
||||
|
||||
places-file-close =
|
||||
.label = { COPY(from_path, "file.close.label") }
|
||||
.accesskey = { COPY(from_path, "file.close.accesskey") }
|
||||
|
||||
places-cmd-close =
|
||||
.key = { COPY(from_path, "cmd.close.key") }
|
||||
|
||||
places-view-button =
|
||||
.label = { COPY(from_path, "views.label") }
|
||||
.tooltiptext = { COPY(from_path, "views.tooltip") }
|
||||
.accesskey = { COPY(from_path, "views.accesskey") }
|
||||
|
||||
places-view-button-mac =
|
||||
.label = { COPY(from_path, "views.label") }
|
||||
.tooltiptext = { COPY(from_path, "views.tooltip") }
|
||||
|
||||
places-view-menu-columns =
|
||||
.label = { COPY(from_path, "view.columns.label") }
|
||||
.accesskey = { COPY(from_path, "view.columns.accesskey") }
|
||||
|
||||
places-view-menu-sort =
|
||||
.label = { COPY(from_path, "view.sort.label") }
|
||||
.accesskey = { COPY(from_path, "view.sort.accesskey") }
|
||||
|
||||
places-view-sort-unsorted =
|
||||
.label = { COPY(from_path, "view.unsorted.label") }
|
||||
.accesskey = { COPY(from_path, "view.unsorted.accesskey") }
|
||||
|
||||
places-view-sort-ascending =
|
||||
.label = { COPY(from_path, "view.sortAscending.label") }
|
||||
.accesskey = { COPY(from_path, "view.sortAscending.accesskey") }
|
||||
|
||||
places-view-sort-descending =
|
||||
.label = { COPY(from_path, "view.sortDescending.label") }
|
||||
.accesskey = { COPY(from_path, "view.sortDescending.accesskey") }
|
||||
|
||||
places-maintenance-button =
|
||||
.label = { COPY(from_path, "maintenance.label") }
|
||||
.tooltiptext = { COPY(from_path, "maintenance.tooltip") }
|
||||
.accesskey = { COPY(from_path, "maintenance.accesskey") }
|
||||
|
||||
places-maintenance-button-mac =
|
||||
.label = { COPY(from_path, "maintenance.label") }
|
||||
.tooltiptext = { COPY(from_path, "maintenance.tooltip") }
|
||||
|
||||
places-cmd-backup =
|
||||
.label = { COPY(from_path, "cmd.backup.label") }
|
||||
.accesskey = { COPY(from_path, "cmd.backup.accesskey") }
|
||||
|
||||
places-cmd-restore =
|
||||
.label = { COPY(from_path, "cmd.restore2.label") }
|
||||
.accesskey = { COPY(from_path, "cmd.restore2.accesskey") }
|
||||
|
||||
places-cmd-restore-from-file =
|
||||
.label = { COPY(from_path, "cmd.restoreFromFile.label") }
|
||||
.accesskey = { COPY(from_path, "cmd.restoreFromFile.accesskey") }
|
||||
|
||||
places-import-bookmarks-from-html =
|
||||
.label = { COPY(from_path, "importBookmarksFromHTML.label") }
|
||||
.accesskey = { COPY(from_path, "importBookmarksFromHTML.accesskey") }
|
||||
|
||||
places-export-bookmarks-to-html =
|
||||
.label = { COPY(from_path, "exportBookmarksToHTML.label") }
|
||||
.accesskey = { COPY(from_path, "exportBookmarksToHTML.accesskey") }
|
||||
|
||||
places-import-other-browser =
|
||||
.label = { COPY(from_path, "importOtherBrowser.label") }
|
||||
.accesskey = { COPY(from_path, "importOtherBrowser.accesskey") }
|
||||
|
||||
places-view-sort-col-name =
|
||||
.label = { COPY(from_path, "col.name.label") }
|
||||
|
||||
places-view-sort-col-tags =
|
||||
.label = { COPY(from_path, "col.tags.label") }
|
||||
|
||||
places-view-sort-col-url =
|
||||
.label = { COPY(from_path, "col.url.label") }
|
||||
|
||||
places-view-sort-col-most-recent-visit =
|
||||
.label = { COPY(from_path, "col.mostrecentvisit.label") }
|
||||
|
||||
places-view-sort-col-visit-count =
|
||||
.label = { COPY(from_path, "col.visitcount.label") }
|
||||
|
||||
places-view-sort-col-date-added =
|
||||
.label = { COPY(from_path, "col.dateadded.label") }
|
||||
|
||||
places-view-sort-col-last-modified =
|
||||
.label = { COPY(from_path, "col.lastmodified.label") }
|
||||
|
||||
places-cmd-find-key =
|
||||
.key = { COPY(from_path, "cmd.find.key") }
|
||||
|
||||
places-back-button =
|
||||
.tooltiptext = { COPY(from_path, "backButton.tooltip") }
|
||||
|
||||
places-forward-button =
|
||||
.tooltiptext = { COPY(from_path, "forwardButton.tooltip") }
|
||||
|
||||
places-details-pane-select-an-item-description = { COPY(from_path, "detailsPane.selectAnItemText.description") }
|
||||
""",
|
||||
from_path="browser/chrome/browser/places/places.dtd",
|
||||
),
|
||||
)
|
Loading…
Reference in New Issue
Block a user