Bug 1557061 - Add summary information to the protection report. r=fluent-reviewers,mtigley,flod draft
authorErica Wright <ewright@mozilla.com>
Tue, 16 Jul 2019 13:58:39 +0000
changeset 11914 c75b14eb391266d11fd92f36c5f8f382ea951dd9
parent 11724 f06aedfc33fe582ffd67d1305b10372a38c2a6d9
child 11915 f483b0e4800659dce94cb0342b04be848ca5cdbc
push id315
push userflodolo@mozilla.com
push dateThu, 15 Aug 2019 04:59:12 +0000
reviewersfluent-reviewers, mtigley, flod
bugs1557061
Bug 1557061 - Add summary information to the protection report. r=fluent-reviewers,mtigley,flod Differential Revision: https://phabricator.services.mozilla.com/D38110 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: 128c7e63d35148cb1edf3890b9d93af4753417bf X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: e5d98eda2ec359a0968c567076b1a625cb6c99ce X-Channel-Repo: releases/mozilla-release X-Channel-Revision: 2fb19d0466d2f61674c0af80813645cccd510593 X-Channel-Repo: releases/mozilla-esr68 X-Channel-Revision: a8da73ce90a4110e14caaba3e93d8a086b3a0669
browser/browser/protections.ftl
new file mode 100644
--- /dev/null
+++ b/browser/browser/protections.ftl
@@ -0,0 +1,25 @@
+# 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/.
+
+### This file is not in a locales directory to prevent it from
+### being translated as the feature is still in heavy development
+### and strings are likely to change often.
+
+# Variables:
+#   $count (Number) - Number of tracking events blocked.
+graph-week-summary =
+  { $count ->
+     [one] { -brand-short-name } blocked  { $count } tracker over the past week
+    *[other] { -brand-short-name } blocked { $count } trackers over the past week
+  }
+
+# Variables:
+#   $count (Number) - Number of tracking events blocked.
+#   $earliestDate (Number) - Unix timestamp in ms, representing a date. The
+# earliest date recorded in the database.
+graph-total-summary =
+  { $count ->
+     [one] { $count } tracker blocked since { DATETIME($earliestDate, day: "numeric", month: "long", year: "numeric") }
+    *[other] { $count } trackers blocked since { DATETIME($earliestDate, day: "numeric", month: "long", year: "numeric") }
+  }