1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Change subflow edit dialog titles

This commit is contained in:
Nick O'Leary 2019-02-09 21:20:20 +00:00
parent 7cef990ba6
commit bdc1da70c1
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 4 additions and 3 deletions

View File

@ -266,8 +266,9 @@
"newVersionError": "New Version doesn't contain valid JSON:"
},
"subflow": {
"editSubflow": "Edit flow template: __name__",
"edit": "Edit flow template",
"editSubflowInstance": "Edit subflow instance: __name__",
"editSubflow": "Edit subflow template: __name__",
"edit": "Edit subflow template",
"subflowInstances": "There is __count__ instance of this subflow template",
"subflowInstances_plural": "There are __count__ instances of this subflow template",
"editSubflowProperties": "edit properties",

View File

@ -517,7 +517,7 @@ RED.editor = (function() {
label = RED._("subflow.editSubflow",{name:node.name})
} else if (node.type.indexOf("subflow:")===0) {
var subflow = RED.nodes.subflow(node.type.substring(8));
label = RED._("subflow.editSubflow",{name:subflow.name})
label = RED._("subflow.editSubflowInstance",{name:subflow.name})
} else {
if (typeof node._def.paletteLabel !== "undefined") {
try {