Bug 1619517 - Add Close tooltip to Mobile Call Card in about:protections r=prathiksha,fluent-reviewers,Gijs,flod

Differential Revision: https://phabricator.services.mozilla.com/D69308
This commit is contained in:
sjustus 2020-04-30 16:03:03 +00:00
parent ca4436e703
commit f26aefb772
3 changed files with 27 additions and 4 deletions

View File

@ -116,7 +116,7 @@
</div>
<div id="mobile-hanger" class="card-body hidden">
<div class="body-wrapper">
<button class="exit-icon" data-l10n-id="protections-close-button"></button>
<button class="exit-icon" data-l10n-id="protections-close-button2"></button>
<div id="etp-mobile-content">
<img class="mobile-app-icon" src="chrome://browser/content/logos/etp-mobile.svg"/>
<span>
@ -222,7 +222,7 @@
<div class="card-body hidden">
<div id="lockwise-body-content" class="body-wrapper">
<div class="no-logins hidden">
<button class="exit-icon" data-l10n-id="protections-close-button"></button>
<button class="exit-icon" data-l10n-id="protections-close-button2"></button>
<img class="mobile-app-icon" src="chrome://browser/content/logos/lockwise-mobile.svg"/>
<span>
<h2 class="card-title" data-l10n-id="lockwise-mobile-app-title"></h2>

View File

@ -64,9 +64,10 @@ fingerprinter-tab-content = Fingerprinters collect settings from your browser an
cryptominer-tab-title = Cryptominers
cryptominer-tab-content = Cryptominers use your systems computing power to mine digital money. Cryptomining scripts drain your battery, slow down your computer, and can increase your energy bill. <a data-l10n-name="learn-more-link">Learn more</a>
protections-close-button =
protections-close-button2 =
.aria-label = Close
.title = Close
mobile-app-title = Block ad trackers across more devices
mobile-app-card-content = Use the mobile browser with built-in protection against ad tracking.
mobile-app-links = { -brand-product-name } Browser for <a data-l10n-name="android-mobile-inline-link">Android</a> and <a data-l10n-name="ios-mobile-inline-link">iOS</a>

View File

@ -0,0 +1,22 @@
# 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"),
)