mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
NLS updates for context menu
This commit is contained in:
parent
71db79ba53
commit
2d6e1d7089
@ -107,6 +107,7 @@
|
|||||||
"displayStatus": "Show node status",
|
"displayStatus": "Show node status",
|
||||||
"displayConfig": "Configuration nodes",
|
"displayConfig": "Configuration nodes",
|
||||||
"import": "Import",
|
"import": "Import",
|
||||||
|
"importExample": "Import Example Flow",
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
"search": "Search flows",
|
"search": "Search flows",
|
||||||
"searchInput": "search your flows",
|
"searchInput": "search your flows",
|
||||||
@ -503,6 +504,7 @@
|
|||||||
"addRemoveNode": "Add/remove node from selection",
|
"addRemoveNode": "Add/remove node from selection",
|
||||||
"editSelected": "Edit selected node",
|
"editSelected": "Edit selected node",
|
||||||
"deleteSelected": "Delete selected nodes or link",
|
"deleteSelected": "Delete selected nodes or link",
|
||||||
|
"deleteReconnect": "Delete and Reconnect",
|
||||||
"importNode": "Import nodes",
|
"importNode": "Import nodes",
|
||||||
"exportNode": "Export nodes",
|
"exportNode": "Export nodes",
|
||||||
"nudgeNode": "Move selected nodes (1px)",
|
"nudgeNode": "Move selected nodes (1px)",
|
||||||
|
@ -101,7 +101,7 @@ RED.contextMenu = (function () {
|
|||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
{ onselect: 'core:show-import-dialog', label: RED._('common.label.import')},
|
{ onselect: 'core:show-import-dialog', label: RED._('common.label.import')},
|
||||||
{ onselect: 'core:show-examples-import-dialog', label: 'Import Example Flow' }
|
{ onselect: 'core:show-examples-import-dialog', label: RED._('menu.label.importExample') }
|
||||||
)
|
)
|
||||||
if (hasSelection && canEdit) {
|
if (hasSelection && canEdit) {
|
||||||
const nodeOptions = []
|
const nodeOptions = []
|
||||||
@ -119,11 +119,11 @@ RED.contextMenu = (function () {
|
|||||||
{ onselect: 'core:hide-selected-node-labels' }
|
{ onselect: 'core:hide-selected-node-labels' }
|
||||||
)
|
)
|
||||||
menuItems.push({
|
menuItems.push({
|
||||||
label: 'Node',
|
label: RED._('sidebar.info.node'),
|
||||||
options: nodeOptions
|
options: nodeOptions
|
||||||
})
|
})
|
||||||
menuItems.push({
|
menuItems.push({
|
||||||
label: 'Group',
|
label: RED._('sidebar.info.group'),
|
||||||
options: [
|
options: [
|
||||||
{ onselect: 'core:group-selection' },
|
{ onselect: 'core:group-selection' },
|
||||||
{ onselect: 'core:ungroup-selection', disabled: !hasGroup },
|
{ onselect: 'core:ungroup-selection', disabled: !hasGroup },
|
||||||
@ -141,7 +141,7 @@ RED.contextMenu = (function () {
|
|||||||
}
|
}
|
||||||
if (canEdit && hasMultipleSelection) {
|
if (canEdit && hasMultipleSelection) {
|
||||||
menuItems.push({
|
menuItems.push({
|
||||||
label: 'Arrange',
|
label: RED._('menu.label.arrange'),
|
||||||
options: [
|
options: [
|
||||||
{ label:RED._("menu.label.alignLeft"), onselect: "core:align-selection-to-left"},
|
{ label:RED._("menu.label.alignLeft"), onselect: "core:align-selection-to-left"},
|
||||||
{ label:RED._("menu.label.alignCenter"), onselect: "core:align-selection-to-center"},
|
{ label:RED._("menu.label.alignCenter"), onselect: "core:align-selection-to-center"},
|
||||||
@ -167,7 +167,7 @@ RED.contextMenu = (function () {
|
|||||||
{ onselect: 'core:copy-selection-to-internal-clipboard', label: RED._("keyboard.copyNode"), disabled: !hasSelection },
|
{ onselect: 'core:copy-selection-to-internal-clipboard', label: RED._("keyboard.copyNode"), disabled: !hasSelection },
|
||||||
{ onselect: 'core:paste-from-internal-clipboard', label: RED._("keyboard.pasteNode"), disabled: !canEdit || !RED.view.clipboard() },
|
{ onselect: 'core:paste-from-internal-clipboard', label: RED._("keyboard.pasteNode"), disabled: !canEdit || !RED.view.clipboard() },
|
||||||
{ onselect: 'core:delete-selection', disabled: !canEdit || !canDelete },
|
{ onselect: 'core:delete-selection', disabled: !canEdit || !canDelete },
|
||||||
{ onselect: 'core:delete-selection-and-reconnect', label: 'Delete and Reconnect', disabled: !canEdit || !canDelete },
|
{ onselect: 'core:delete-selection-and-reconnect', label: RED._('keyboard.deleteReconnect'), disabled: !canEdit || !canDelete },
|
||||||
{ onselect: 'core:show-export-dialog', label: RED._("menu.label.export") },
|
{ onselect: 'core:show-export-dialog', label: RED._("menu.label.export") },
|
||||||
{ onselect: 'core:select-all-nodes' },
|
{ onselect: 'core:select-all-nodes' },
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user