diff --git a/devtools/client/locales/en-US/responsive.properties b/devtools/client/locales/en-US/responsive.properties index 70e7ddcdbb9e..b9da1ab5b5c3 100644 --- a/devtools/client/locales/en-US/responsive.properties +++ b/devtools/client/locales/en-US/responsive.properties @@ -37,6 +37,14 @@ responsive.noDeviceSelected=no device selected # toolbar responsive.title=Responsive Design Mode +# LOCALIZATION NOTE (responsive.enableTouch): tooltip text for the touch +# simulation button when it's disabled +responsive.enableTouch=Enable touch simulation + +# LOCALIZATION NOTE (responsive.disableTouch): tooltip text for the touch +# simulation button when it's enabled +responsive.disableTouch=Disable touch simulation + # LOCALIZATION NOTE (responsive.screenshot): tooltip of the screenshot button. responsive.screenshot=Take a screenshot of the viewport diff --git a/devtools/client/responsive.html/components/global-toolbar.js b/devtools/client/responsive.html/components/global-toolbar.js index 640cb2c6830d..68a6d9337723 100644 --- a/devtools/client/responsive.html/components/global-toolbar.js +++ b/devtools/client/responsive.html/components/global-toolbar.js @@ -49,6 +49,8 @@ module.exports = createClass({ dom.button({ id: "global-touch-simulation-button", className: touchButtonClass, + title: (touchSimulation.enabled ? + getStr("responsive.disableTouch") : getStr("responsive.enableTouch")), onClick: () => onUpdateTouchSimulation(!touchSimulation.enabled), }), dom.button({