diff --git a/browser/devtools/framework/toolbox.js b/browser/devtools/framework/toolbox.js index e1156f76cf5..b42b98bd579 100644 --- a/browser/devtools/framework/toolbox.js +++ b/browser/devtools/framework/toolbox.js @@ -730,7 +730,7 @@ Toolbox.prototype = { radio.appendChild(image); } - if (toolDefinition.label) { + if (toolDefinition.label && !toolDefinition.iconOnly) { let label = this.doc.createElement("label"); label.setAttribute("value", toolDefinition.label) label.setAttribute("crop", "end"); diff --git a/browser/devtools/main.js b/browser/devtools/main.js index 2c6cbf66781..b9a306cc434 100644 --- a/browser/devtools/main.js +++ b/browser/devtools/main.js @@ -70,6 +70,8 @@ Tools.options = { icon: "chrome://browser/skin/devtools/tool-options.svg", invertIconForLightTheme: true, bgTheme: "theme-body", + label: l10n("options.label", toolboxStrings), + iconOnly: true, panelLabel: l10n("options.panelLabel", toolboxStrings), tooltip: l10n("optionsButton.tooltip", toolboxStrings), inMenu: false, diff --git a/browser/locales/en-US/chrome/browser/devtools/toolbox.properties b/browser/locales/en-US/chrome/browser/devtools/toolbox.properties index 92ab2cad34a..c389c815d54 100644 --- a/browser/locales/en-US/chrome/browser/devtools/toolbox.properties +++ b/browser/locales/en-US/chrome/browser/devtools/toolbox.properties @@ -43,6 +43,10 @@ toolbox.label=Developer Tools # for the options panel tab. optionsButton.tooltip=Toolbox Options +# LOCALIZATION NOTE (options.label): This is used as the label of the tab in +# the devtools window. +options.label=Options + # LOCALIZATION NOTE (options.panelLabel): This is used as the label for the # toolbox panel. options.panelLabel=Toolbox Options Panel