Bug 1667781 - Refactor preferences dialogs to use dialog element, part 2.
authorIan Neal <iann_bugzilla@blueyonder.co.uk>
Fri, 09 Oct 2020 07:03:08 +0200
changeset 1410 2d13160ad14b17c6d7f4d5c0537c188dc664aaa6
parent 1409 db675daaf515e660a1f96fff5e81d1224b87e52d
child 1411 500032db7be661c3d354fac404cfa80a9907562f
push id562
push userflodolo@mozilla.com
push dateFri, 09 Oct 2020 05:03:13 +0000
bugs1667781
Bug 1667781 - Refactor preferences dialogs to use dialog element, part 2.
browser/browser/preferences/addEngine.ftl
browser/browser/preferences/clearSiteData.ftl
--- a/browser/browser/preferences/addEngine.ftl
+++ b/browser/browser/preferences/addEngine.ftl
@@ -10,10 +10,13 @@ add-engine-name = Search engine name
 add-engine-alias = Alias
 add-engine-url = Engine URL, use %s in place of the search term
 add-engine-cancel =
     .label = Cancel
     .accesskey = C
 add-engine-ok =
     .label = Add Engine
     .accesskey = A
+add-engine-dialog =
+    .buttonlabelaccept = Add Engine
+    .buttonaccesskeyaccept = A
 engine-name-exists = An engine with that name already exists
 engine-alias-exists = An engine with that alias already exists
--- a/browser/browser/preferences/clearSiteData.ftl
+++ b/browser/browser/preferences/clearSiteData.ftl
@@ -1,60 +1,53 @@
 # 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/.
 
 clear-site-data-window =
     .title = Clear Data
     .style = width: 35em
-
 clear-site-data-description = Clearing all cookies and site data stored by { -brand-short-name } may sign you out of web sites and remove offline web content. Clearing cache data will not affect your logins.
-
 clear-site-data-close-key =
     .key = w
-
 # The parameters in parentheses in this string describe disk usage
 # in the format ($amount $unit), e.g. "Cookies and Site Data (24 KB)"
 # Variables:
 #   $amount (Number) - Amount of site data currently stored on disk
 #   $unit (String) - Abbreviation of the unit that $amount is in, e.g. "MB"
 clear-site-data-cookies-with-data =
     .label = Cookies and Site Data ({ $amount } { $unit })
     .accesskey = S
-
 # This string is a placeholder for while the data used to fill
 # clear-site-data-cookies-with-data is loading. This placeholder is usually
 # only shown for a very short time (< 1s), so it should be very similar
 # or the same as clear-site-data-cookies-with-data (except the amount and unit),
 # to avoid flickering.
 clear-site-data-cookies-empty =
     .label = Cookies and Site Data
     .accesskey = S
-
 clear-site-data-cookies-info = You may get signed out of web sites if cleared
-
 # The parameters in parentheses in this string describe disk usage
 # in the format ($amount $unit), e.g. "Cached Web Content (24 KB)"
 # Variables:
 #   $amount (Number) - Amount of cache currently stored on disk
 #   $unit (String) - Abbreviation of the unit that $amount is in, e.g. "MB"
 clear-site-data-cache-with-data =
     .label = Cached Web Content ({ $amount } { $unit })
     .accesskey = W
-
 # This string is a placeholder for while the data used to fill
 # clear-site-data-cache-with-data is loading. This placeholder is usually
 # only shown for a very short time (< 1s), so it should be very similar
 # or the same as clear-site-data-cache-with-data (except the amount and unit),
 # to avoid flickering.
 clear-site-data-cache-empty =
     .label = Cached Web Content
     .accesskey = W
-
 clear-site-data-cache-info = Will require web sites to reload images and data
-
 clear-site-data-cancel =
     .label = Cancel
     .accesskey = C
-
 clear-site-data-clear =
     .label = Clear
     .accesskey = l
+clear-site-data-dialog =
+    .buttonlabelaccept = Clear
+    .buttonaccesskeyaccept = l