mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 04:05:32 +00:00
Bug 1341586 - Fix localization of Inspector's attribute context menu by adding quotations to the values. r=gl
Removed quotes from context menu item and added them to their respective localization string.
This commit is contained in:
parent
938292cf1f
commit
4e078cff7a
@ -1290,7 +1290,7 @@ Inspector.prototype = {
|
||||
attributesSubmenu.append(new MenuItem({
|
||||
id: "node-menu-copy-attribute",
|
||||
label: INSPECTOR_L10N.getFormatStr("inspectorCopyAttributeValue.label",
|
||||
isAttributeClicked ? `"${nodeInfo.value}"` : ""),
|
||||
isAttributeClicked ? `${nodeInfo.value}` : ""),
|
||||
accesskey: INSPECTOR_L10N.getStr("inspectorCopyAttributeValue.accesskey"),
|
||||
disabled: !isAttributeClicked,
|
||||
click: () => this.onCopyAttributeValue(),
|
||||
@ -1298,7 +1298,7 @@ Inspector.prototype = {
|
||||
attributesSubmenu.append(new MenuItem({
|
||||
id: "node-menu-edit-attribute",
|
||||
label: INSPECTOR_L10N.getFormatStr("inspectorEditAttribute.label",
|
||||
isAttributeClicked ? `"${nodeInfo.name}"` : ""),
|
||||
isAttributeClicked ? `${nodeInfo.name}` : ""),
|
||||
accesskey: INSPECTOR_L10N.getStr("inspectorEditAttribute.accesskey"),
|
||||
disabled: !isAttributeClicked,
|
||||
click: () => this.onEditAttribute(),
|
||||
@ -1306,7 +1306,7 @@ Inspector.prototype = {
|
||||
attributesSubmenu.append(new MenuItem({
|
||||
id: "node-menu-remove-attribute",
|
||||
label: INSPECTOR_L10N.getFormatStr("inspectorRemoveAttribute.label",
|
||||
isAttributeClicked ? `"${nodeInfo.name}"` : ""),
|
||||
isAttributeClicked ? `${nodeInfo.name}` : ""),
|
||||
accesskey: INSPECTOR_L10N.getStr("inspectorRemoveAttribute.accesskey"),
|
||||
disabled: !isAttributeClicked,
|
||||
click: () => this.onRemoveAttribute(),
|
||||
|
@ -107,21 +107,21 @@ inspector.menu.selectElement.label=Select Element #%S
|
||||
# sub-menu "Attribute" in the inspector contextual-menu that appears
|
||||
# when the user right-clicks on the node in the inspector, and that allows
|
||||
# to edit an attribute on this node.
|
||||
inspectorEditAttribute.label=Edit Attribute %S
|
||||
inspectorEditAttribute.label=Edit Attribute "%S"
|
||||
inspectorEditAttribute.accesskey=E
|
||||
|
||||
# LOCALIZATION NOTE (inspectorRemoveAttribute.label): This is the label of a
|
||||
# sub-menu "Attribute" in the inspector contextual-menu that appears
|
||||
# when the user right-clicks on the attribute of a node in the inspector,
|
||||
# and that allows to remove this attribute.
|
||||
inspectorRemoveAttribute.label=Remove Attribute %S
|
||||
inspectorRemoveAttribute.label=Remove Attribute "%S"
|
||||
inspectorRemoveAttribute.accesskey=R
|
||||
|
||||
# LOCALIZATION NOTE (inspectorCopyAttributeValue.label): This is the label of a
|
||||
# sub-menu "Attribute" in the inspector contextual-menu that appears
|
||||
# when the user right-clicks on the attribute of a node in the inspector,
|
||||
# and that allows to copy the attribute value to clipboard.
|
||||
inspectorCopyAttributeValue.label=Copy Attribute Value %S
|
||||
inspectorCopyAttributeValue.label=Copy Attribute Value "%S"
|
||||
inspectorCopyAttributeValue.accesskey=V
|
||||
|
||||
# LOCALIZATION NOTE (inspector.nodePreview.selectNodeLabel):
|
||||
|
Loading…
Reference in New Issue
Block a user