Bug 1667781 - Refactor preferences dialogs to use dialog element, part 1.
authorTheo Chevalier <theo.chevalier11@gmail.com>
Fri, 09 Oct 2020 07:05:44 +0200
changeset 8207 b1ccf7373e1b1894e7c51454394dff4e2dde52d7
parent 8206 f9ef54d4f678270b5b6724faf1b8895aa36dabff
child 8208 6e04d211c0ddf4ecb018b1f2bdf71c4efba9cf39
push id6273
push userflodolo@mozilla.com
push dateFri, 09 Oct 2020 05:05:56 +0000
bugs1667781
Bug 1667781 - Refactor preferences dialogs to use dialog element, part 1.
browser/browser/preferences/blocklists.ftl
browser/browser/preferences/containers.ftl
browser/browser/preferences/permissions.ftl
browser/browser/preferences/siteDataSettings.ftl
browser/browser/preferences/translation.ftl
--- a/browser/browser/preferences/blocklists.ftl
+++ b/browser/browser/preferences/blocklists.ftl
@@ -1,36 +1,33 @@
 # 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/.
 
 blocklist-window =
     .title = Listes de blocage
     .style = width: 66em
-
 blocklist-description = Choisissez quelle liste { -brand-short-name } utilise pour bloquer les traqueurs en ligne. Les listes proviennent de <a data-l10n-name="disconnect-link" title="Disconnect">Disconnect</a>.
 blocklist-close-key =
     .key = w
-
 blocklist-treehead-list =
     .label = Liste
-
 blocklist-button-cancel =
     .label = Annuler
     .accesskey = A
-
 blocklist-button-ok =
     .label = Enregistrer les modifications
     .accesskey = E
-
+blocklist-dialog =
+    .buttonlabelaccept = Enregistrer les modifications
+    .buttonaccesskeyaccept = E
 # This template constructs the name of the block list in the block lists dialog.
 # It combines the list name and description.
 # e.g. "Standard (Recommended). This list does a pretty good job."
 #
 # Variables:
 #   $listName {string, "Standard (Recommended)."} - List name.
 #   $description {string, "This list does a pretty good job."} - Description of the list.
 blocklist-item-list-template = { $listName } { $description }
-
 blocklist-item-moz-std-listName = Liste de blocage de niveau 1 (recommandé).
 blocklist-item-moz-std-description = Autorise certains traqueurs pour que moins de sites dysfonctionnent.
 blocklist-item-moz-full-listName = Liste de blocage de niveau 2.
 blocklist-item-moz-full-description = Bloque tous les traqueurs détectés. Certains sites web ou contenus peuvent ne pas se charger correctement.
--- a/browser/browser/preferences/containers.ftl
+++ b/browser/browser/preferences/containers.ftl
@@ -5,50 +5,45 @@
 containers-window-new =
     .title = Ajouter un nouveau contexte
     .style = width: 45em
 # Variables
 #   $name (String) - Name of the container
 containers-window-update =
     .title = Préférences du contexte « { $name } »
     .style = width: 45em
-
 containers-window-close =
     .key = w
-
 # This is a term to store style to be applied
 # on the three labels in the containers add/edit dialog:
 #   - name
 #   - icon
 #   - color
 #
 # Using this term and referencing it in the `.style` attribute
 # of the three messages ensures that all three labels
 # will be aligned correctly.
 -containers-labels-style = min-width: 6rem
-
 containers-name-label = Nom
     .accesskey = N
     .style = { -containers-labels-style }
-
 containers-name-text =
     .placeholder = Saisir un nom de contexte
-
 containers-icon-label = Icône
     .accesskey = I
     .style = { -containers-labels-style }
-
 containers-color-label = Couleur
     .accesskey = o
     .style = { -containers-labels-style }
-
 containers-button-done =
     .label = Terminer
     .accesskey = T
-
+containers-dialog =
+    .buttonlabelaccept = Terminer
+    .buttonaccesskeyaccept = T
 containers-color-blue =
     .label = Bleu
 containers-color-turquoise =
     .label = Turquoise
 containers-color-green =
     .label = Vert
 containers-color-yellow =
     .label = Jaune
@@ -57,17 +52,16 @@ containers-color-orange =
 containers-color-red =
     .label = Rouge
 containers-color-pink =
     .label = Rose
 containers-color-purple =
     .label = Violet
 containers-color-toolbar =
     .label = Assortie à la barre d’outils
-
 containers-icon-fence =
     .label = Barrière
 containers-icon-fingerprint =
     .label = Empreinte digitale
 containers-icon-briefcase =
     .label = Mallette
 # String represents a money sign but currently uses a dollar sign
 # so don't change to local currency. See Bug 1291672.
--- a/browser/browser/preferences/permissions.ftl
+++ b/browser/browser/preferences/permissions.ftl
@@ -1,75 +1,62 @@
 # 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/.
 
 permissions-window =
     .title = Exceptions
     .style = width: 50em
-
 permissions-close-key =
     .key = w
-
 permissions-address = Adresse du site web
     .accesskey = d
-
 permissions-block =
     .label = Bloquer
     .accesskey = B
-
 permissions-session =
     .label = Autoriser pour la session
     .accesskey = o
-
 permissions-allow =
     .label = Autoriser
     .accesskey = A
-
 permissions-site-name =
     .label = Site web
-
 permissions-status =
     .label = État
-
 permissions-remove =
     .label = Supprimer le site
     .accesskey = S
-
 permissions-remove-all =
     .label = Supprimer tous les sites
     .accesskey = u
-
 permissions-button-cancel =
     .label = Annuler
     .accesskey = n
-
 permissions-button-ok =
     .label = Enregistrer les modifications
     .accesskey = E
-
+permission-dialog =
+    .buttonlabelaccept = Enregistrer les modifications
+    .buttonaccesskeyaccept = E
 permissions-autoplay-menu = Par défaut pour tous les sites web :
-
 permissions-searchbox =
     .placeholder = Rechercher un site web
-
 permissions-capabilities-autoplay-allow =
     .label = Autoriser l’audio et la vidéo
 permissions-capabilities-autoplay-block =
     .label = Bloquer l’audio
 permissions-capabilities-autoplay-blockall =
     .label = Bloquer l’audio et la vidéo
-
 permissions-capabilities-allow =
     .label = Autoriser
 permissions-capabilities-block =
     .label = Bloquer
 permissions-capabilities-prompt =
     .label = Toujours demander
-
 permissions-capabilities-listitem-allow =
     .value = Autoriser
 permissions-capabilities-listitem-block =
     .value = Bloquer
 permissions-capabilities-listitem-allow-session =
     .value = Autoriser pour la session
 
 ## Invalid Hostname Dialog
@@ -107,18 +94,16 @@ permissions-exceptions-saved-logins-desc = Les identifiants pour les sites suivants ne seront pas enregistrés
 
 ## Exceptions - Add-ons
 
 permissions-exceptions-addons-window =
     .title = Sites autorisés - Modules complémentaires
     .style = { permissions-window.style }
 permissions-exceptions-addons-desc = Vous pouvez indiquer les sites web autorisés à installer des modules complémentaires. Saisissez l’adresse exacte du site que vous souhaitez autoriser et cliquez sur Autoriser.
 
-## Exceptions - Autoplay Media
-
 ## Site Permissions - Autoplay
 
 permissions-site-autoplay-window =
     .title = Paramètres - Lecture automatique
     .style = { permissions-window.style }
 permissions-site-autoplay-desc = Vous pouvez gérer ici les sites qui ne suivent pas vos paramètres de lecture automatique par défaut.
 
 ## Site Permissions - Notifications
--- a/browser/browser/preferences/siteDataSettings.ftl
+++ b/browser/browser/preferences/siteDataSettings.ftl
@@ -2,66 +2,56 @@
 # 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/.
 
 
 ## Settings
 
 site-data-settings-window =
     .title = Gestion des cookies et des données de sites
-
 site-data-settings-description = Les sites suivants stockent des cookies et des données de sites sur votre ordinateur. { -brand-short-name } conserve les données des sites avec stockage persistant jusqu’à ce que vous les supprimiez, et supprime les données des sites sans stockage persistant lorsque de l’espace supplémentaire est nécessaire.
-
 site-data-search-textbox =
     .placeholder = Rechercher des sites web
     .accesskey = R
-
 site-data-column-host =
     .label = Site
 site-data-column-cookies =
     .label = Cookies
 site-data-column-storage =
     .label = Stockage
 site-data-column-last-used =
     .label = Dernière utilisation
-
 # This label is used in the "Host" column for local files, which have no host.
 site-data-local-file-host = (fichier local)
-
 site-data-remove-selected =
     .label = Supprimer les sites sélectionnés
     .accesskey = S
-
 site-data-button-cancel =
     .label = Annuler
     .accesskey = A
-
 site-data-button-save =
     .label = Enregistrer les changements
     .accesskey = E
-
+site-data-settings-dialog =
+    .buttonlabelaccept = Enregistrer les changements
+    .buttonaccesskeyaccept = E
 # Variables:
 #   $value (Number) - Value of the unit (for example: 4.6, 500)
 #   $unit (String) - Name of the unit (for example: "bytes", "KB")
 site-storage-usage =
     .value = { $value } { $unit }
 site-storage-persistent =
     .value = { site-storage-usage.value } (persistant)
-
 site-data-remove-all =
     .label = Tout supprimer
     .accesskey = u
-
 site-data-remove-shown =
     .label = Supprimer les sites affichés
     .accesskey = u
 
 ## Removing
 
 site-data-removing-dialog =
     .title = { site-data-removing-header }
     .buttonlabelaccept = Supprimer
-
 site-data-removing-header = Suppression des cookies et des données de sites
-
 site-data-removing-desc = Supprimer les cookies et les données de sites peut vous déconnecter de ces sites web. Voulez-vous vraiment effectuer ces modifications ?
-
 site-data-removing-table = Les cookies et les données associés aux sites suivants seront supprimés
--- a/browser/browser/preferences/translation.ftl
+++ b/browser/browser/preferences/translation.ftl
@@ -1,40 +1,33 @@
 # 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/.
 
 translation-window =
     .title = Exceptions - Traduction
     .style = width: 36em
-
 translation-close-key =
     .key = w
-
 translation-languages-disabled-desc = Aucune traduction ne sera proposée pour les langues suivantes
-
 translation-languages-column =
     .label = Langues
-
 translation-languages-button-remove =
     .label = Supprimer la langue
     .accesskey = r
-
 translation-languages-button-remove-all =
     .label = Supprimer toutes les langues
     .accesskey = e
-
 translation-sites-disabled-desc = Aucune traduction ne sera proposée pour les sites web suivants
-
 translation-sites-column =
     .label = Sites web
-
 translation-sites-button-remove =
     .label = Supprimer le site
     .accesskey = S
-
 translation-sites-button-remove-all =
     .label = Supprimer tous les sites
     .accesskey = u
-
 translation-button-close =
     .label = Fermer
     .accesskey = F
+translation-dialog =
+    .buttonlabelaccept = Fermer
+    .buttonaccesskeyaccept = F