Bug 1631944 - Add Lockwise as a keyword for login and password preferences. r=jaws,fluent-reviewers
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Tue, 21 Apr 2020 23:49:21 +0000
changeset 588800 75b214b78ff4ebb71a78a01202c83e25d043014e
parent 588799 3ef08e20b9cdc5eb2ffcb9129bd126665305df0f
child 588801 9371029b5814074b632b932d0fc1489f0b9951ff
push id13072
push userffxbld-merge
push dateMon, 04 May 2020 14:22:08 +0000
treeherdermozilla-beta@8a4f45b9a244 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, fluent-reviewers
bugs1631944
milestone77.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1631944 - Add Lockwise as a keyword for login and password preferences. r=jaws,fluent-reviewers Differential Revision: https://phabricator.services.mozilla.com/D71830
browser/components/preferences/in-content/privacy.inc.xhtml
browser/locales/en-US/browser/preferences/preferences.ftl
python/l10n/fluent_migrations/bug_1631944_preferences_logins_header.py
--- a/browser/components/preferences/in-content/privacy.inc.xhtml
+++ b/browser/components/preferences/in-content/privacy.inc.xhtml
@@ -387,17 +387,17 @@
                 " />
       </hbox>
     </vbox>
   </hbox>
 </groupbox>
 
 <!-- Passwords -->
 <groupbox id="passwordsGroup" orient="vertical" data-category="panePrivacy" data-subcategory="logins" hidden="true">
-  <label><html:h2 data-l10n-id="logins-header"/></label>
+  <label><html:h2 data-l10n-id="pane-privacy-logins-and-passwords-header" data-l10n-attrs="searchkeywords"/></label>
 
   <vbox id="passwordSettings">
     <hbox>
       <vbox flex="1">
         <hbox>
           <checkbox id="savePasswords"
                     data-l10n-id="forms-ask-to-save-logins"
                     preference="signon.rememberSignons"
--- a/browser/locales/en-US/browser/preferences/preferences.ftl
+++ b/browser/locales/en-US/browser/preferences/preferences.ftl
@@ -883,17 +883,19 @@ sync-device-name-save =
 sync-connect-another-device = Connect another device
 
 ## Privacy Section
 
 privacy-header = Browser Privacy
 
 ## Privacy Section - Logins and Passwords
 
-logins-header = Logins and Passwords
+# The search keyword isn't shown to users but is used to find relevant settings in about:preferences.
+pane-privacy-logins-and-passwords-header = Logins and Passwords
+    .searchkeywords = { -lockwise-brand-short-name }
 
 # Checkbox to control whether UI is shown to users to save or fill logins/passwords.
 forms-ask-to-save-logins =
     .label = Ask to save logins and passwords for websites
     .accesskey = r
 forms-exceptions =
     .label = Exceptions…
     .accesskey = x
new file mode 100644
--- /dev/null
+++ b/python/l10n/fluent_migrations/bug_1631944_preferences_logins_header.py
@@ -0,0 +1,19 @@
+# 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"))