Bug 1489423 - Add i18n for InspectAction component;

Depends on D6608

Differential Revision: https://phabricator.services.mozilla.com/D6609

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2018-09-24 09:30:46 +00:00
Родитель 400f74639c
Коммит 5fa076dfc7
2 изменённых файлов: 18 добавлений и 5 удалений

Просмотреть файл

@ -4,10 +4,13 @@
"use strict";
const { PureComponent } = require("devtools/client/shared/vendor/react");
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 Actions = require("../../actions/index");
/**
@ -27,12 +30,17 @@ class InspectAction extends PureComponent {
}
render() {
return dom.button(
return Localized(
{
onClick: e => this.inspect(),
className: "aboutdebugging-button",
id: "about-debugging-debug-target-inspect-button"
},
"Inspect"
dom.button(
{
onClick: e => this.inspect(),
className: "aboutdebugging-button",
},
"Inspect"
)
);
}
}

Просмотреть файл

@ -35,6 +35,11 @@ about-debugging-runtime-other-workers = Other Workers
# show. Debug targets depend on the category (extensions, tabs, workers...).
about-debugging-debug-target-list-empty = Nothing yet.
# Text of a button displayed next to debug targets of "runtime" pages. Clicking on this
# button will open a DevTools toolbox that will allow inspecting the target.
# A target can be an addon, a tab, a worker...
about-debugging-debug-target-inspect-button = Inspect
# 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…