mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1316855 - Tooltip of "Toolbox Buttons" should show their shortcut. r=jryans
This commit is contained in:
parent
22bc2bc3fa
commit
9d5d426590
@ -13,6 +13,8 @@ const BRAND_SHORT_NAME = Cc["@mozilla.org/intl/stringbundle;1"].
|
||||
createBundle("chrome://branding/locale/brand.properties").
|
||||
GetStringFromName("brandShortName");
|
||||
|
||||
const Services = require("Services");
|
||||
const osString = Services.appinfo.OS;
|
||||
const l10n = require("gcli/l10n");
|
||||
|
||||
exports.items = [
|
||||
@ -42,7 +44,8 @@ exports.items = [
|
||||
name: "resize toggle",
|
||||
buttonId: "command-button-responsive",
|
||||
buttonClass: "command-button command-button-invertable",
|
||||
tooltipText: l10n.lookup("resizeModeToggleTooltip"),
|
||||
tooltipText: l10n.lookupFormat("resizeModeToggleTooltip2",
|
||||
[(osString == "Darwin" ? "Cmd+Opt+M" : "Ctrl+Shift+M")]),
|
||||
description: l10n.lookup("resizeModeToggleDesc"),
|
||||
manual: l10n.lookupFormat("resizeModeManual2", [BRAND_SHORT_NAME]),
|
||||
state: {
|
||||
|
@ -18,7 +18,7 @@ exports.items = [
|
||||
hidden: true,
|
||||
buttonId: "command-button-splitconsole",
|
||||
buttonClass: "command-button command-button-invertable",
|
||||
tooltipText: l10n.lookup("splitconsoleTooltip"),
|
||||
tooltipText: l10n.lookupFormat("splitconsoleTooltip2", ["Esc"]),
|
||||
isRemoteSafe: true,
|
||||
state: {
|
||||
isChecked: function (target) {
|
||||
|
@ -546,7 +546,8 @@ resizeModeToggleDesc=Toggle Responsive Design Mode
|
||||
|
||||
# LOCALIZATION NOTE (resizeModeToggleTooltip) A string displayed as the
|
||||
# tooltip of button in devtools toolbox which toggles Responsive Design Mode.
|
||||
resizeModeToggleTooltip=Responsive Design Mode
|
||||
# Keyboard shortcut will be shown inside brackets.
|
||||
resizeModeToggleTooltip2=Responsive Design Mode (%S)
|
||||
|
||||
# LOCALIZATION NOTE (resizeModeToDesc) A very short string to describe the
|
||||
# 'resize to' command. This string is designed to be shown in a menu
|
||||
@ -1230,7 +1231,8 @@ paintflashingToggleDesc=Toggle paint flashing
|
||||
|
||||
# LOCALIZATION NOTE (splitconsoleTooltip) A string displayed as the
|
||||
# tooltip of button in devtools toolbox which toggles the split webconsole.
|
||||
splitconsoleTooltip=Toggle split console
|
||||
# Keyboard shortcut will be shown inside brackets.
|
||||
splitconsoleTooltip2=Toggle split console (%S)
|
||||
|
||||
# LOCALIZATION NOTE (appCacheDesc) A very short string used to describe the
|
||||
# function of the "appcache" command
|
||||
|
Loading…
Reference in New Issue
Block a user