зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1633654 - Remove Fluent migration recipes for Firefox 75 r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D72797
This commit is contained in:
Родитель
d84ec8ca2c
Коммит
5bd35a8174
|
@ -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
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1608167 - Migrate setDesktopBackground to Fluent, part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
"browser/browser/setDesktopBackground.ftl",
|
||||
"browser/browser/setDesktopBackground.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
set-desktop-background-window =
|
||||
.title = { COPY(from_path, "setDesktopBackground.title") }
|
||||
set-desktop-background-accept =
|
||||
.label = { COPY(from_path, "setDesktopBackground.title") }
|
||||
open-desktop-prefs =
|
||||
.label = { COPY(from_path, "openDesktopPrefs.label") }
|
||||
set-background-preview-unavailable = { COPY(from_path, "previewUnavailable") }
|
||||
set-background-span =
|
||||
.label = { COPY(from_path, "span.label") }
|
||||
set-background-color = { COPY(from_path, "color.label") }
|
||||
set-background-position = { COPY(from_path, "position.label") }
|
||||
set-background-tile =
|
||||
.label = { COPY(from_path, "tile.label") }
|
||||
set-background-center =
|
||||
.label = { COPY(from_path, "center.label") }
|
||||
set-background-stretch =
|
||||
.label = { COPY(from_path, "stretch.label") }
|
||||
set-background-fill =
|
||||
.label = { COPY(from_path, "fill.label") }
|
||||
set-background-fit =
|
||||
.label = { COPY(from_path, "fit.label") }
|
||||
""", from_path="browser/chrome/browser/setDesktopBackground.dtd"))
|
|
@ -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 import CONCAT
|
||||
from fluent.migrate.helpers import COPY, transforms_from
|
||||
|
||||
def migrate(ctx):
|
||||
"""Bug 1608199 - Port devtools/client/styleeditor.dtd to Fluent, part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
"devtools/client/styleeditor.ftl",
|
||||
"devtools/client/styleeditor.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
styleeditor-new-button =
|
||||
.tooltiptext = { COPY(from_path, "newButton.tooltip") }
|
||||
.accesskey = { COPY(from_path, "newButton.accesskey") }
|
||||
styleeditor-import-button =
|
||||
.tooltiptext = { COPY(from_path, "importButton.tooltip") }
|
||||
.accesskey = { COPY(from_path, "importButton.accesskey") }
|
||||
styleeditor-visibility-toggle =
|
||||
.tooltiptext = { COPY(from_path, "visibilityToggle.tooltip")}
|
||||
.accesskey = { COPY(from_path, "saveButton.accesskey") }
|
||||
styleeditor-save-button = { COPY(from_path, "saveButton.label") }
|
||||
.tooltiptext = { COPY(from_path, "saveButton.tooltip") }
|
||||
.accesskey = { COPY(from_path, "saveButton.accesskey") }
|
||||
styleeditor-options-button =
|
||||
.tooltiptext = { COPY(from_path, "optionsButton.tooltip") }
|
||||
styleeditor-media-rules = { COPY(from_path, "mediaRules.label") }
|
||||
styleeditor-editor-textbox =
|
||||
.data-placeholder = { COPY(from_path, "editorTextbox.placeholder") }
|
||||
styleeditor-no-stylesheet = { COPY(from_path, "noStyleSheet.label") }
|
||||
styleeditor-open-link-new-tab =
|
||||
.label = { COPY(from_path, "openLinkNewTab.label") }
|
||||
styleeditor-copy-url =
|
||||
.label = { COPY(from_path, "copyUrl.label") }
|
||||
""", from_path="devtools/client/styleeditor.dtd"))
|
||||
|
||||
ctx.add_transforms(
|
||||
"devtools/client/styleeditor.ftl",
|
||||
"devtools/client/styleeditor.ftl",
|
||||
[
|
||||
FTL.Message(
|
||||
id=FTL.Identifier("styleeditor-no-stylesheet-tip"),
|
||||
value=CONCAT(
|
||||
COPY(
|
||||
"devtools/client/styleeditor.dtd",
|
||||
"noStyleSheet-tip-start.label",
|
||||
),
|
||||
FTL.TextElement('<a data-l10n-name="append-new-stylesheet">'),
|
||||
COPY(
|
||||
"devtools/client/styleeditor.dtd",
|
||||
"noStyleSheet-tip-action.label",
|
||||
),
|
||||
FTL.TextElement("</a>"),
|
||||
COPY("devtools/client/styleeditor.dtd",
|
||||
"noStyleSheet-tip-end.label",
|
||||
),
|
||||
),
|
||||
)
|
||||
]
|
||||
)
|
|
@ -1,60 +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 1608215 - Migrate pippki to Fluent, part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
"security/manager/security/pippki/pippki.ftl",
|
||||
"security/manager/security/pippki/pippki.ftl",
|
||||
transforms_from(
|
||||
"""
|
||||
password-quality-meter = { COPY(from_path, "setPassword.meter.label") }
|
||||
change-password-window =
|
||||
.title = { COPY(from_path, "setPassword.title") }
|
||||
change-password-token = { COPY(from_path, "setPassword.tokenName.label") }: { $tokenName }
|
||||
change-password-old = { COPY(from_path, "setPassword.oldPassword.label") }
|
||||
change-password-new = { COPY(from_path, "setPassword.newPassword.label") }
|
||||
change-password-reenter = { COPY(from_path, "setPassword.reenterPassword.label") }
|
||||
reset-password-window =
|
||||
.title = { COPY(from_path, "resetPassword.title") }
|
||||
.style = width: 40em
|
||||
reset-password-button-label =
|
||||
.label = { COPY(from_path, "resetPasswordButtonLabel") }
|
||||
reset-password-text = { COPY(from_path, "resetPassword.text") }
|
||||
download-cert-window =
|
||||
.title = { COPY(from_path, "downloadCert.title") }
|
||||
.style = width: 46em
|
||||
download-cert-message = { COPY(from_path, "downloadCert.message1") }
|
||||
download-cert-trust-ssl =
|
||||
.label = { COPY(from_path, "downloadCert.trustSSL") }
|
||||
download-cert-trust-email =
|
||||
.label = { COPY(from_path, "downloadCert.trustEmail") }
|
||||
download-cert-message-desc = { COPY(from_path, "downloadCert.message3") }
|
||||
download-cert-view-cert =
|
||||
.label = { COPY(from_path, "downloadCert.viewCert.label") }
|
||||
download-cert-view-text = { COPY(from_path, "downloadCert.viewCert.text") }
|
||||
client-auth-window =
|
||||
.title = { COPY(from_path, "clientAuthAsk.title") }
|
||||
client-auth-site-description = { COPY(from_path, "clientAuthAsk.message1") }
|
||||
client-auth-choose-cert = { COPY(from_path, "clientAuthAsk.message2") }
|
||||
client-auth-cert-details = { COPY(from_path, "clientAuthAsk.message3") }
|
||||
set-password-window =
|
||||
.title = { COPY(from_path, "pkcs12.setpassword.title") }
|
||||
set-password-message = { COPY(from_path, "pkcs12.setpassword.message") }
|
||||
set-password-backup-pw =
|
||||
.value = { COPY(from_path, "pkcs12.setpassword.label1") }
|
||||
set-password-repeat-backup-pw =
|
||||
.value = { COPY(from_path, "pkcs12.setpassword.label2") }
|
||||
set-password-reminder = { COPY(from_path, "pkcs12.setpassword.reminder") }
|
||||
protected-auth-window =
|
||||
.title = { COPY(from_path, "protectedAuth.title") }
|
||||
protected-auth-msg = { COPY(from_path, "protectedAuth.msg") }
|
||||
protected-auth-token = { COPY(from_path, "protectedAuth.tokenName.label") }
|
||||
""", from_path="security/manager/chrome/pippki/pippki.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 1613801 - Don't include brand name in the window title on Mac., part {index}."""
|
||||
|
||||
ctx.add_transforms(
|
||||
'browser/browser/browser.ftl',
|
||||
'browser/browser/browser.ftl',
|
||||
transforms_from(
|
||||
"""
|
||||
browser-main-window-content-title-default = { PLATFORM() ->
|
||||
[macos] { $title }
|
||||
*[other] { $title } - { -brand-full-name }
|
||||
}
|
||||
|
||||
browser-main-window-content-title-private = { PLATFORM() ->
|
||||
[macos] { $title } - {COPY(from_path, "mainWindow.titlePrivateBrowsingSuffix", trim:"True")}
|
||||
*[other] { $title } - { -brand-full-name } {COPY(from_path, "mainWindow.titlePrivateBrowsingSuffix", trim:"True")}
|
||||
}
|
||||
""", from_path="browser/chrome/browser/browser.dtd")
|
||||
)
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче