зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1579540 - Migrate urlbar.viewSiteInfo.label from dtd to ftl r=fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D45467 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ccde06e7e2
Коммит
9ccf6b264c
|
@ -886,7 +886,7 @@
|
|||
</box>
|
||||
<box id="identity-box" role="button"
|
||||
align="center"
|
||||
aria-label="&urlbar.viewSiteInfo.label;"
|
||||
data-l10n-id="browser-urlbar-identity-button"
|
||||
pageproxystate="invalid"
|
||||
onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
|
||||
onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);"
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
browser-urlbar-identity-button =
|
||||
.aria-label = View site information
|
||||
|
|
|
@ -171,8 +171,6 @@ convenience of Safari and Chrome users on macOS. See bug 1398988. -->
|
|||
<!ENTITY printButton.label "Print">
|
||||
<!ENTITY printButton.tooltip "Print this page">
|
||||
|
||||
<!ENTITY urlbar.viewSiteInfo.label "View site information">
|
||||
|
||||
<!ENTITY urlbar.defaultNotificationAnchor.tooltip "Open message panel">
|
||||
<!ENTITY urlbar.geolocationNotificationAnchor.tooltip "Open location request panel">
|
||||
<!ENTITY urlbar.autoplayNotificationAnchor.tooltip "Open autoplay panel">
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# 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 1579540 - Migrate urlbar.viewSiteInfo.label from dtd to ftl, part {index}"""
|
||||
|
||||
ctx.add_transforms(
|
||||
'browser/browser/browser.ftl',
|
||||
'browser/browser/browser.ftl',
|
||||
transforms_from(
|
||||
"""
|
||||
browser-urlbar-identity-button =
|
||||
.aria-label = { COPY(from_path, "urlbar.viewSiteInfo.label") }
|
||||
""", from_path="browser/chrome/browser/browser.dtd"))
|
Загрузка…
Ссылка в новой задаче