Bug 1647687 - Remove Fluent migration recipes for Firefox 77, r=Pike

Differential Revision: https://phabricator.services.mozilla.com/D80636
This commit is contained in:
Francesco Lodolo (:flod) 2020-06-29 09:59:50 +00:00
Родитель de90f65570
Коммит 97ea589052
14 изменённых файлов: 0 добавлений и 708 удалений

Просмотреть файл

@ -1,66 +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 import CONCAT, REPLACE
from fluent.migrate.helpers import COPY, TERM_REFERENCE
def migrate(ctx):
"""Bug 1523736 - Migrate updates.dtd to Fluent, part {index}."""
ctx.add_transforms(
"toolkit/toolkit/updates/elevation.ftl",
"toolkit/toolkit/updates/elevation.ftl",
transforms_from(
"""
elevation-update-wizard =
.title = { COPY(from_path, "updateWizard.title") }
elevation-details-link-label =
.value = { COPY(from_path, "details.link") }
elevation-finished-page = { COPY(from_path, "finishedPage.title") }
elevation-finished-background = { COPY(from_path, "finishedBackground.name") }
""",from_path="toolkit/chrome/mozapps/update/updates.dtd"))
ctx.add_transforms(
"toolkit/toolkit/updates/elevation.ftl",
"toolkit/toolkit/updates/elevation.ftl",
[
FTL.Message(
id = FTL.Identifier("elevation-error-manual"),
value = REPLACE(
"toolkit/chrome/mozapps/update/updates.dtd",
"errorManual.label",
{
"&brandShortName;": TERM_REFERENCE("brand-short-name")
},
trim = True
)
),
FTL.Message(
id = FTL.Identifier("elevation-finished-background-page"),
value = REPLACE(
"toolkit/chrome/mozapps/update/updates.dtd",
"finishedBackgroundPage.text",
{
"&brandShortName;": TERM_REFERENCE("brand-short-name")
},
trim = True
)
),
FTL.Message(
id = FTL.Identifier("elevation-more-elevated"),
value = REPLACE(
"toolkit/chrome/mozapps/update/updates.dtd",
"finishedBackground.moreElevated",
{
"&brandShortName;": TERM_REFERENCE("brand-short-name")
},
trim = True
)
),
]
)

Просмотреть файл

@ -1,76 +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 import REPLACE
from fluent.migrate.helpers import COPY, TERM_REFERENCE, transforms_from
def migrate(ctx):
"""Bug 1608191 - Port profileDowngrade.dtd to Fluent, part {index}."""
ctx.add_transforms(
"toolkit/toolkit/global/profileDowngrade.ftl",
"toolkit/toolkit/global/profileDowngrade.ftl",
transforms_from(
"""
profiledowngrade-window-create =
.label = { COPY(from_path, "window.create") }
profiledowngrade-quit =
.label = { PLATFORM() ->
[windows] { COPY(from_path, "window.quit-win") }
*[other] { COPY(from_path, "window.quit-nonwin") }
}
""", from_path="toolkit/chrome/mozapps/profile/profileDowngrade.dtd"))
ctx.add_transforms(
"toolkit/toolkit/global/profileDowngrade.ftl",
"toolkit/toolkit/global/profileDowngrade.ftl",
[
FTL.Message(
id=FTL.Identifier("profiledowngrade-window"),
attributes=[
FTL.Attribute(
id=FTL.Identifier("title"),
value=REPLACE(
"toolkit/chrome/mozapps/profile/profileDowngrade.dtd",
"window.title",
{
"Firefox": TERM_REFERENCE("brand-product-name"),
}
)
),
FTL.Attribute(
id=FTL.Identifier("style"),
value=COPY("toolkit/chrome/mozapps/profile/profileDowngrade.dtd", "window.style")
)
]
),
FTL.Message(
id=FTL.Identifier("profiledowngrade-sync"),
value=REPLACE(
"toolkit/chrome/mozapps/profile/profileDowngrade.dtd",
"window.sync",
{
"&brandShortName;": TERM_REFERENCE("brand-short-name"),
"Firefox": TERM_REFERENCE("brand-product-name"),
"&syncBrand.fxAccount.label;": TERM_REFERENCE("fxaccount-brand-name"),
},
),
),
FTL.Message(
id=FTL.Identifier("profiledowngrade-nosync"),
value=REPLACE(
"toolkit/chrome/mozapps/profile/profileDowngrade.dtd",
"window.nosync",
{
"&brandShortName;": TERM_REFERENCE("brand-short-name"),
"Firefox": TERM_REFERENCE("brand-product-name"),
}
),
),
]
)

Просмотреть файл

@ -1,109 +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 import COPY, CONCAT, REPLACE
def migrate(ctx):
"""Bug 1608202 - Migrate downloads to Fluent, part {index}."""
ctx.add_transforms(
"browser/browser/downloads.ftl",
"browser/browser/downloads.ftl",
transforms_from(
"""
downloads-window =
.title = { COPY(from_path, "downloads.title") }
downloads-panel =
.aria-label = { COPY(from_path, "downloads.title") }
downloads-panel-list =
.style = width: { COPY(from_path, "downloads.width") }
downloads-cmd-pause =
.label = { COPY(from_path, "cmd.pause.label") }
.accesskey = { COPY(from_path, "cmd.pause.accesskey") }
downloads-cmd-resume =
.label = { COPY(from_path, "cmd.resume.label") }
.accesskey = { COPY(from_path, "cmd.resume.accesskey") }
downloads-cmd-cancel =
.tooltiptext = { COPY(from_path, "cmd.cancel.label") }
downloads-cmd-cancel-panel =
.aria-label = { COPY(from_path, "cmd.cancel.label") }
downloads-cmd-show =
.label = { COPY(from_path, "cmd.show.label") }
.tooltiptext = { downloads-cmd-show.label }
.accesskey = { COPY(from_path, "cmd.show.accesskey") }
downloads-cmd-show-mac =
.label = { COPY(from_path, "cmd.showMac.label") }
.tooltiptext = { downloads-cmd-show-mac.label }
.accesskey = { COPY(from_path, "cmd.showMac.accesskey") }
downloads-cmd-show-panel =
.aria-label = { PLATFORM() ->
[macos] { COPY(from_path, "cmd.showMac.label") }
*[other] { COPY(from_path, "cmd.show.label") }
}
downloads-cmd-show-description =
.value = { PLATFORM() ->
[macos] { COPY(from_path, "cmd.showMac.label") }
*[other] { COPY(from_path, "cmd.show.label") }
}
downloads-cmd-show-downloads =
.label = { COPY(from_path, "cmd.showDownloads.label") }
downloads-cmd-retry =
.tooltiptext = { COPY(from_path, "cmd.retry.label") }
downloads-cmd-retry-panel =
.aria-label = { COPY(from_path, "cmd.retry.label") }
downloads-cmd-go-to-download-page =
.label = { COPY(from_path, "cmd.goToDownloadPage.label") }
.accesskey = { COPY(from_path, "cmd.goToDownloadPage.accesskey") }
downloads-cmd-copy-download-link =
.label = { COPY(from_path, "cmd.copyDownloadLink.label") }
.accesskey = { COPY(from_path, "cmd.copyDownloadLink.accesskey") }
downloads-cmd-remove-from-history =
.label = { COPY(from_path, "cmd.removeFromHistory.label") }
.accesskey = { COPY(from_path, "cmd.removeFromHistory.accesskey") }
downloads-cmd-clear-list =
.label = { COPY(from_path, "cmd.clearList2.label") }
.accesskey = { COPY(from_path, "cmd.clearList2.accesskey") }
downloads-cmd-clear-downloads =
.label = { COPY(from_path, "cmd.clearDownloads.label") }
.accesskey = { COPY(from_path, "cmd.clearDownloads.accesskey") }
downloads-cmd-unblock =
.label = { COPY(from_path, "cmd.unblock2.label") }
.accesskey = { COPY(from_path, "cmd.unblock2.accesskey") }
downloads-cmd-remove-file =
.tooltiptext = { COPY(from_path, "cmd.removeFile.label") }
downloads-cmd-remove-file-panel =
.aria-label = { COPY(from_path, "cmd.removeFile.label") }
downloads-cmd-choose-unblock =
.tooltiptext = { COPY(from_path, "cmd.chooseUnblock.label") }
downloads-cmd-choose-unblock-panel =
.aria-label = { COPY(from_path, "cmd.chooseUnblock.label") }
downloads-cmd-choose-open =
.tooltiptext = { COPY(from_path, "cmd.chooseOpen.label") }
downloads-cmd-choose-open-panel =
.aria-label = { COPY(from_path, "cmd.chooseOpen.label") }
downloads-show-more-information =
.value = { COPY(from_path, "showMoreInformation.label") }
downloads-open-file =
.value = { COPY(from_path, "openFile.label") }
downloads-retry-download =
.value = { COPY(from_path, "retryDownload.label") }
downloads-cancel-download =
.value = { COPY(from_path, "cancelDownload.label") }
downloads-history =
.label = { COPY(from_path, "downloadsHistory.label") }
.accesskey = { COPY(from_path, "downloadsHistory.accesskey") }
downloads-details =
.title = { COPY(from_path, "downloadDetails.label") }
downloads-clear-downloads-button =
.label = { COPY(from_path, "clearDownloadsButton.label") }
.tooltiptext = { COPY(from_path, "clearDownloadsButton.tooltip") }
downloads-list-empty =
.value = { COPY(from_path, "downloadsListEmpty.label") }
downloads-panel-empty =
.value = { COPY(from_path, "downloadsPanelEmpty.label") }
""", from_path="browser/chrome/browser/downloads/downloads.dtd"))

Просмотреть файл

@ -1,79 +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 1609557 - Migrate placesContextMenu.inc.xhtml to Fluent, part {index}."""
ctx.add_transforms(
'browser/browser/places.ftl',
'browser/browser/places.ftl',
transforms_from(
"""
places-open =
.label = { COPY(from_path, "cmd.open.label") }
.accesskey = { COPY(from_path, "cmd.open.accesskey") }
places-open-tab =
.label = { COPY(from_path, "cmd.open_tab.label") }
.accesskey = { COPY(from_path, "cmd.open_tab.accesskey") }
places-open-all-in-tabs =
.label = { COPY(from_path, "cmd.open_all_in_tabs.label") }
.accesskey = { COPY(from_path, "cmd.open_all_in_tabs.accesskey") }
places-open-window =
.label = { COPY(from_path, "cmd.open_window.label") }
.accesskey = { COPY(from_path, "cmd.open_window.accesskey") }
places-open-private-window =
.label = { COPY(from_path, "cmd.open_private_window.label") }
.accesskey = { COPY(from_path, "cmd.open_private_window.accesskey") }
places-new-bookmark =
.label = { COPY(from_path, "cmd.new_bookmark.label") }
.accesskey = { COPY(from_path, "cmd.new_bookmark.accesskey") }
places-new-folder-contextmenu =
.label = { COPY(from_path, "cmd.new_folder.label") }
.accesskey = { COPY(from_path, "cmd.context_new_folder.accesskey") }
places-new-folder =
.label = { COPY(from_path, "cmd.new_folder.label") }
.accesskey = { COPY(from_path, "cmd.new_folder.accesskey") }
places-new-separator =
.label = { COPY(from_path, "cmd.new_separator.label") }
.accesskey = { COPY(from_path, "cmd.new_separator.accesskey") }
places-view =
.label = { COPY(from_path, "view.label" ) }
.accesskey = { COPY(from_path, "view.accesskey") }
places-by-date =
.label = { COPY(from_path, "byDate.label" ) }
.accesskey = { COPY(from_path, "byDate.accesskey" ) }
places-by-site =
.label = { COPY(from_path, "bySite.label" ) }
.accesskey = { COPY(from_path, "bySite.accesskey" ) }
places-by-most-visited =
.label = { COPY(from_path, "byMostVisited.label" ) }
.accesskey = { COPY(from_path, "byMostVisited.accesskey" ) }
places-by-last-visited =
.label = { COPY(from_path, "byLastVisited.label" ) }
.accesskey = { COPY(from_path, "byLastVisited.accesskey" ) }
places-by-day-and-site =
.label = { COPY(from_path, "byDayAndSite.label" ) }
.accesskey = { COPY(from_path, "byDayAndSite.accesskey" ) }
places-history-search =
.placeholder = { COPY(from_path, "historySearch.placeholder" ) }
places-bookmarks-search =
.placeholder = { COPY(from_path, "bookmarksSearch.placeholder" ) }
places-delete-domain-data =
.label = { COPY(from_path, "cmd.deleteDomainData.label") }
.accesskey = { COPY(from_path, "cmd.deleteDomainData.accesskey") }
places-sortby-name =
.label = { COPY(from_path, "cmd.sortby_name.label") }
.accesskey = { COPY(from_path, "cmd.context_sortby_name.accesskey") }
places-properties =
.label = { COPY(from_path, "cmd.properties.label") }
.accesskey = { COPY(from_path, "cmd.properties.accesskey") }
""", from_path="browser/chrome/browser/places/places.dtd")
)

Просмотреть файл

@ -1,100 +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 import REPLACE, CONCAT, COPY
from fluent.migrate.helpers import TERM_REFERENCE
def migrate(ctx):
"""Bug 1609559 - Migrate protectionsPanel.inc.xhtml to Fluent, part {index}."""
ctx.add_transforms(
"browser/browser/protectionsPanel.ftl",
"browser/browser/protectionsPanel.ftl",
transforms_from(
"""
protections-panel-etp-more-info =
.aria-label = { COPY(from_path, "protections.etpMoreInfo.label") }
protections-panel-etp-on-header = { COPY(from_path, "protections.etpON.header") }
protections-panel-etp-off-header = { COPY(from_path, "protections.etpOFF.header") }
protections-panel-site-not-working = { COPY(from_path, "protections.siteNotWorking.label") }
protections-panel-site-not-working-view =
.title = { COPY(from_path, "protections.siteNotWorkingView.title") }
protections-panel-not-blocking-why-label = { COPY(from_path, "protections.notBlocking.why.label") }
protections-panel-not-blocking-why-etp-on-tooltip = { COPY(from_path, "protections.notBlocking.why.etpOn.tooltip") }
protections-panel-not-blocking-why-etp-off-tooltip = { COPY(from_path, "protections.notBlocking.why.etpOff2.tooltip") }
protections-panel-content-blocking-tracking-protection = { COPY(from_path, "contentBlocking.trackingProtection4.label") }
protections-panel-content-blocking-socialblock = { COPY(from_path, "contentBlocking.socialblock.label") }
protections-panel-content-blocking-cryptominers-label = { COPY(from_path, "contentBlocking.cryptominers.label") }
protections-panel-content-blocking-fingerprinters-label = { COPY(from_path, "contentBlocking.fingerprinters.label") }
protections-panel-blocking-label = { COPY(from_path, "protections.blocking2.label") }
protections-panel-not-blocking-label = { COPY(from_path, "protections.notBlocking2.label") }
protections-panel-not-found-label = { COPY(from_path, "protections.notFound.label") }
protections-panel-settings-label = { COPY(from_path, "protections.settings.label") }
protections-panel-showreport-label = { COPY(from_path, "protections.showreport.label") }
protections-panel-site-not-working-view-header = { COPY(from_path, "protections.siteNotWorkingView.header") }
protections-panel-site-not-working-view-issue-list-login-fields = { COPY(from_path, "protections.siteNotWorkingView.issueList.logInFields") }
protections-panel-site-not-working-view-issue-list-forms = { COPY(from_path, "protections.siteNotWorkingView.issueList.forms") }
protections-panel-site-not-working-view-issue-list-payments = { COPY(from_path, "protections.siteNotWorkingView.issueList.payments") }
protections-panel-site-not-working-view-issue-list-comments = { COPY(from_path, "protections.siteNotWorkingView.issueList.comments") }
protections-panel-site-not-working-view-issue-list-videos = { COPY(from_path, "protections.siteNotWorkingView.issueList.videos") }
protections-panel-site-not-working-view-send-report = { COPY(from_path, "protections.siteNotWorkingView.sendReport.label") }
protections-panel-cross-site-tracking-cookies = { COPY(from_path, "protections.crossSiteTrackingCookies.description") }
protections-panel-cryptominers = { COPY(from_path, "protections.cryptominers.description") }
protections-panel-fingerprinters = { COPY(from_path, "protections.fingerprinters.description") }
protections-panel-tracking-content = { COPY(from_path, "protections.trackingContent2.description") }
protections-panel-social-media-trackers = { COPY(from_path, "protections.socialMediaTrackers.description") }
protections-panel-content-blocking-manage-settings =
.label = { COPY(from_path, "contentBlocking.manageSettings2.label") }
.accesskey = { COPY(from_path, "contentBlocking.manageSettings2.accesskey") }
protections-panel-content-blocking-breakage-report-view =
.title = { COPY(from_path, "contentBlocking.breakageReportView.title") }
protections-panel-content-blocking-breakage-report-view-collection-url = { COPY(from_path, "contentBlocking.breakageReportView.collection.url.label") }
protections-panel-content-blocking-breakage-report-view-collection-url-label =
.aria-label = { COPY(from_path, "contentBlocking.breakageReportView.collection.url.label") }
protections-panel-content-blocking-breakage-report-view-collection-comments = { COPY(from_path, "contentBlocking.breakageReportView2.collection.comments.label") }
protections-panel-content-blocking-breakage-report-view-collection-comments-label =
.aria-label = { COPY(from_path, "contentBlocking.breakageReportView2.collection.comments.label") }
protections-panel-content-blocking-breakage-report-view-cancel =
.label = { COPY(from_path, "contentBlocking.breakageReportView.cancel.label") }
protections-panel-content-blocking-breakage-report-view-send-report =
.label = { COPY(from_path, "contentBlocking.breakageReportView.sendReport.label") }
""", from_path="browser/chrome/browser/browser.dtd"))
ctx.add_transforms(
"browser/browser/protectionsPanel.ftl",
"browser/browser/protectionsPanel.ftl",
[
FTL.Message(
id=FTL.Identifier("protections-panel-no-trackers-found"),
value=REPLACE(
"browser/chrome/browser/browser.dtd",
"protections.noTrackersFound.description",
{
"&brandShortName;": TERM_REFERENCE("brand-short-name")
}
)
),
FTL.Message(
id=FTL.Identifier("protections-panel-content-blocking-breakage-report-view-description"),
value=CONCAT(
REPLACE(
"browser/chrome/browser/browser.dtd",
"contentBlocking.breakageReportView3.description",
{
"&brandShortName;": TERM_REFERENCE("brand-short-name")
}
),
FTL.TextElement(' <label data-l10n-name="learn-more">'),
COPY(
"browser/chrome/browser/browser.dtd",
"contentBlocking.breakageReportView2.learnMore",
),
FTL.TextElement('</label>'),
)
),
]
)

Просмотреть файл

@ -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, TERM_REFERENCE, MESSAGE_REFERENCE
from fluent.migrate import COPY_PATTERN, REPLACE, COPY
def migrate(ctx):
"""Bug 1609562 - Migrate popup-notifications.inc to Fluent, part {index}."""
ctx.add_transforms(
'browser/browser/browser.ftl',
'browser/browser/browser.ftl',
transforms_from(
"""
popup-select-camera =
.value = { COPY(from_path, "getUserMedia.selectCamera.label") }
.accesskey = { COPY(from_path, "getUserMedia.selectCamera.accesskey") }
popup-select-microphone =
.value = { COPY(from_path, "getUserMedia.selectMicrophone.label") }
.accesskey = { COPY(from_path, "getUserMedia.selectMicrophone.accesskey") }
popup-all-windows-shared = { COPY(from_path, "getUserMedia.allWindowsShared.message") }
""", from_path="browser/chrome/browser/browser.dtd")
)

Просмотреть файл

@ -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
import fluent.syntax.ast as FTL
from fluent.migrate.helpers import transforms_from
def migrate(ctx):
"""Bug 1609563 - Migrate browser-allTabsMenu.inc.xhtml to Fluent, part {index}."""
ctx.add_transforms(
"browser/browser/allTabsMenu.ftl",
"browser/browser/allTabsMenu.ftl",
transforms_from(
"""
all-tabs-menu-undo-close-tab =
.label = { COPY(from_path, "undoCloseTab.label") }
all-tabs-menu-search-tabs =
.label = { COPY(from_path, "allTabsMenu.searchTabs.label") }
all-tabs-menu-new-user-context =
.label = { COPY(from_path, "newUserContext.label") }
all-tabs-menu-hidden-tabs =
.label = { COPY(from_path, "hiddenTabs.label") }
all-tabs-menu-manage-user-context =
.label = { COPY(from_path, "manageUserContext.label") }
.accesskey = { COPY(from_path, "manageUserContext.accesskey") }
""", from_path="browser/chrome/browser/browser.dtd"))

Просмотреть файл

@ -1,22 +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 1619517 - Add close tooltip to mobile card, part {index}"""
ctx.add_transforms(
"browser/browser/protections.ftl",
"browser/browser/protections.ftl",
transforms_from(
"""
protections-close-button2 =
.aria-label = {COPY_PATTERN(from_path, "protections-close-button.aria-label")}
.title = {COPY_PATTERN(from_path, "protections-close-button.aria-label")}
""",from_path="browser/browser/protections.ftl"),
)

Просмотреть файл

@ -1,47 +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 1624713 - Convert editBookmarkOverlay to Fluent, part {index}."""
ctx.add_transforms(
"browser/browser/editBookmarkOverlay.ftl",
"browser/browser/editBookmarkOverlay.ftl",
transforms_from(
"""
bookmark-overlay-name =
.value = { COPY(from_path, "editBookmarkOverlay.name.label") }
.accesskey = { COPY(from_path, "editBookmarkOverlay.name.accesskey") }
bookmark-overlay-location =
.value = { COPY(from_path, "editBookmarkOverlay.location.label") }
.accesskey = { COPY(from_path, "editBookmarkOverlay.location.accesskey") }
bookmark-overlay-folder =
.value = { COPY(from_path, "editBookmarkOverlay.folder.label") }
bookmark-overlay-choose =
.label = { COPY(from_path, "editBookmarkOverlay.choose.label") }
bookmark-overlay-folders-expander =
.tooltiptext = { COPY(from_path, "editBookmarkOverlay.foldersExpanderDown.tooltip") }
.tooltiptextdown = { bookmark-overlay-folders-expander.tooltiptext }
.tooltiptextup = { COPY(from_path, "editBookmarkOverlay.expanderUp.tooltip") }
bookmark-overlay-new-folder-button =
.label = { COPY(from_path, "editBookmarkOverlay.newFolderButton.label") }
.accesskey = { COPY(from_path, "editBookmarkOverlay.newFolderButton.accesskey") }
bookmark-overlay-tags =
.value = { COPY(from_path, "editBookmarkOverlay.tags.label") }
.accesskey ={ COPY(from_path, "editBookmarkOverlay.tags.accesskey") }
bookmark-overlay-tags-empty-description =
.placeholder = { COPY(from_path, "editBookmarkOverlay.tagsEmptyDesc.label") }
bookmark-overlay-tags-expander =
.tooltiptext = { COPY(from_path, "editBookmarkOverlay.tagsExpanderDown.tooltip") }
.tooltiptextdown = { bookmark-overlay-tags-expander.tooltiptext }
.tooltiptextup = { COPY(from_path, "editBookmarkOverlay.expanderUp.tooltip") }
bookmark-overlay-keyword =
.value = { COPY(from_path, "editBookmarkOverlay.keyword.label") }
.accesskey = { COPY(from_path, "editBookmarkOverlay.keyword.accesskey") }
""", from_path="browser/chrome/browser/places/editBookmarkOverlay.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
import fluent.syntax.ast as FTL
from fluent.migrate.helpers import transforms_from
def migrate(ctx):
"""Bug 1625480 - Migrate remaining notifications strings from browser.dtd to Fluent, part {index}."""
ctx.add_transforms(
"browser/browser/appMenuNotifications.ftl",
"browser/browser/appMenuNotifications.ftl",
transforms_from(
"""
appmenu-new-tab-controlled =
.label = { COPY(from_path, "newTabControlled.header.message") }
.buttonlabel = { COPY(from_path, "newTabControlled.keepButton.label") }
.buttonaccesskey = { COPY(from_path, "newTabControlled.keepButton.accesskey") }
.secondarybuttonlabel = { COPY(from_path, "newTabControlled.disableButton.label") }
.secondarybuttonaccesskey = { COPY(from_path, "newTabControlled.disableButton.accesskey") }
appmenu-homepage-controlled =
.label = { COPY(from_path, "homepageControlled.header.message") }
.buttonlabel = { COPY(from_path, "homepageControlled.keepButton.label") }
.buttonaccesskey = { COPY(from_path, "homepageControlled.keepButton.accesskey") }
.secondarybuttonlabel = { COPY(from_path, "homepageControlled.disableButton.label") }
.secondarybuttonaccesskey = { COPY(from_path, "homepageControlled.disableButton.accesskey") }
appmenu-tab-hide-controlled =
.label = { COPY(from_path, "tabHideControlled.header.message") }
.buttonlabel = { COPY(from_path, "tabHideControlled.keepButton.label") }
.buttonaccesskey = { COPY(from_path, "tabHideControlled.keepButton.accesskey") }
.secondarybuttonlabel = { COPY(from_path, "tabHideControlled.disableButton.label") }
.secondarybuttonaccesskey = { COPY(from_path, "tabHideControlled.disableButton.accesskey") }
""", from_path="browser/chrome/browser/browser.dtd"))

Просмотреть файл

@ -1,45 +0,0 @@
# 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 import COPY_PATTERN
def migrate(ctx):
"""Bug 1626381 - Add titles to about:addons sidebar, part {index}"""
ctx.add_transforms(
'toolkit/toolkit/about/aboutAddons.ftl',
'toolkit/toolkit/about/aboutAddons.ftl',
transforms_from(
"""
header-back-button =
.title = {COPY_PATTERN(from_path, "go-back-button.tooltiptext")}
addon-category-discover-title =
.title = {COPY_PATTERN(from_path, "addon-category-discover")}
addon-category-available-updates-title =
.title = {COPY_PATTERN(from_path, "addon-category-available-updates")}
addon-category-recent-updates-title =
.title = {COPY_PATTERN(from_path, "addon-category-recent-updates")}
addon-category-extension-title =
.title = {COPY_PATTERN(from_path, "addon-category-extension")}
addon-category-theme-title =
.title = {COPY_PATTERN(from_path, "addon-category-theme")}
addon-category-locale-title =
.title = {COPY_PATTERN(from_path, "addon-category-locale")}
addon-category-plugin-title =
.title = {COPY_PATTERN(from_path, "addon-category-plugin")}
addon-category-dictionary-title =
.title = {COPY_PATTERN(from_path, "addon-category-dictionary")}
sidebar-help-button-title =
.title = {COPY_PATTERN(from_path, "help-button")}
sidebar-preferences-button-title =
.title = {COPY_PATTERN(from_path, "preferences")}
"""
, from_path='toolkit/toolkit/about/aboutAddons.ftl')
)

Просмотреть файл

@ -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
from fluent.migrate.helpers import transforms_from
def migrate(ctx):
"""Bug 1628255 - fix mistaken label attribute on buttons in download views, part {index}."""
ctx.add_transforms(
"browser/browser/downloads.ftl",
"browser/browser/downloads.ftl",
transforms_from("""
downloads-cmd-show-menuitem =
.label = { COPY_PATTERN(from_path, "downloads-cmd-show.label") }
.accesskey = { COPY_PATTERN(from_path, "downloads-cmd-show.accesskey") }
downloads-cmd-show-menuitem-mac =
.label = { COPY_PATTERN(from_path, "downloads-cmd-show-mac.label") }
.accesskey = { COPY_PATTERN(from_path, "downloads-cmd-show-mac.accesskey") }
downloads-cmd-show-button =
.tooltiptext = { PLATFORM() ->
[macos] { COPY_PATTERN(from_path, "downloads-cmd-show-mac.label") }
*[other] { COPY_PATTERN(from_path, "downloads-cmd-show.label") }
}
""", from_path="browser/browser/downloads.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 1629832 - use tooltips on all our caption control buttons, part {index}"""
ctx.add_transforms(
"browser/browser/browser.ftl",
"browser/browser/browser.ftl",
transforms_from("""
browser-window-minimize-button =
.tooltiptext = { COPY(from_path, "fullScreenMinimize.tooltip") }
browser-window-restore-button =
.tooltiptext = { COPY(from_path, "fullScreenRestore.tooltip") }
browser-window-close-button =
.tooltiptext = { COPY(from_path, "fullScreenClose.tooltip") }
""", from_path="browser/chrome/browser/browser.dtd"))

Просмотреть файл

@ -1,19 +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 1631944 - Add Lockwise as a keyword for login and password preferences, part {index}"""
ctx.add_transforms(
"browser/browser/preferences/preferences.ftl",
"browser/browser/preferences/preferences.ftl",
transforms_from("""
pane-privacy-logins-and-passwords-header = {COPY_PATTERN(from_path, "logins-header")}
.searchkeywords = { -lockwise-brand-short-name }
""", from_path="browser/browser/preferences/preferences.ftl"))