Bug 1489425 - Add i18n for TemporaryExtensionAction components;
authorJulian Descottes <jdescottes@mozilla.com>
Mon, 24 Sep 2018 09:44:17 +0000
changeset 493602 96a50ee44a84303f7b6d959970b96d66a2643d67
parent 493601 ea37371836e8ee74f77800bb2aceb48aa2df948d
child 493603 7ef4181be633e3e9a1aeefe0f62fe27987ac4ebc
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1489425
milestone64.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 1489425 - Add i18n for TemporaryExtensionAction components; Depends on D6605 Differential Revision: https://phabricator.services.mozilla.com/D6606
devtools/client/aboutdebugging-new/src/components/debugtarget/TemporaryExtensionAction.js
devtools/client/aboutdebugging-new/tmp-locale/en-US/aboutdebugging.notftl
--- a/devtools/client/aboutdebugging-new/src/components/debugtarget/TemporaryExtensionAction.js
+++ b/devtools/client/aboutdebugging-new/src/components/debugtarget/TemporaryExtensionAction.js
@@ -3,16 +3,19 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
 const { createFactory, PureComponent } = require("devtools/client/shared/vendor/react");
 const dom = require("devtools/client/shared/vendor/react-dom-factories");
 const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
 
+const FluentReact = require("devtools/client/shared/vendor/fluent-react");
+const Localized = createFactory(FluentReact.Localized);
+
 const InspectAction = createFactory(require("./InspectAction"));
 
 const Actions = require("../../actions/index");
 
 /**
  * This component provides components that inspect/reload/remove temporary extension.
  */
 class TemporaryExtensionAction extends PureComponent {
@@ -34,27 +37,37 @@ class TemporaryExtensionAction extends P
   }
 
   render() {
     const { dispatch, target } = this.props;
 
     return dom.div(
       {},
       InspectAction({ dispatch, target }),
-      dom.button(
+      Localized(
         {
-          className: "aboutdebugging-button",
-          onClick: e => this.reload()
+          id: "about-debugging-tmp-extension-reload-button"
         },
-        "Reload",
+        dom.button(
+          {
+            className: "aboutdebugging-button",
+            onClick: e => this.reload()
+          },
+          "Reload",
+        )
       ),
-      dom.button(
+      Localized(
         {
-          className: "aboutdebugging-button",
-          onClick: e => this.remove()
+          id: "about-debugging-tmp-extension-remove-button"
         },
-        "Remove",
+        dom.button(
+          {
+            className: "aboutdebugging-button",
+            onClick: e => this.remove()
+          },
+          "Remove",
+        )
       ),
     );
   }
 }
 
 module.exports = TemporaryExtensionAction;
--- a/devtools/client/aboutdebugging-new/tmp-locale/en-US/aboutdebugging.notftl
+++ b/devtools/client/aboutdebugging-new/tmp-locale/en-US/aboutdebugging.notftl
@@ -30,13 +30,21 @@ about-debugging-runtime-service-workers 
 about-debugging-runtime-shared-workers = Shared Workers
 # Title of the other workers category.
 about-debugging-runtime-other-workers = Other Workers
 
 # Text of a button displayed in the "This Firefox" page, in the Temporary Extension
 # section. Clicking on the button will open a file picker to load a temporary extension
 about-debugging-tmp-extension-install-button = Load Temporary Add-on…
 
+# Text of a button displayed for a temporary extension loaded in the "This Firefox" page.
+# Clicking on the button will reload the extension.
+about-debugging-tmp-extension-reload-button = Reload
+
+# Text of a button displayed for a temporary extension loaded in the "This Firefox" page.
+# Clicking on the button will uninstall the extension and remove it from the page.
+about-debugging-tmp-extension-remove-button = Remove
+
 # Message displayed in the file picker that opens to select a temporary extension to load
 # (triggered by the button using "about-debugging-tmp-extension-install-button")
 # manifest.json .xpi and .zip should not be localized.
 # Note: this message is only displayed in Windows and Linux platforms.
 about-debugging-tmp-extension-install-message = Select manifest.json file or .xpi/.zip archive