From 9d22a86ec87c9371aca332278d4d50c78a1bd12e Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Mon, 16 Apr 2018 11:12:21 +0100 Subject: [PATCH] fix typo in switch label, make function label consistent --- nodes/core/core/80-function.html | 2 +- nodes/core/locales/en-US/messages.json | 1 + nodes/core/logic/10-switch.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nodes/core/core/80-function.html b/nodes/core/core/80-function.html index e05a55b9c..4d5131df8 100644 --- a/nodes/core/core/80-function.html +++ b/nodes/core/core/80-function.html @@ -68,7 +68,7 @@ outputs:1, icon: "function.png", label: function() { - return this.name; + return this.name||this._("function.function"); }, labelStyle: function() { return this.name?"node_label_italic":""; diff --git a/nodes/core/locales/en-US/messages.json b/nodes/core/locales/en-US/messages.json index e5f6b42fa..3232069db 100644 --- a/nodes/core/locales/en-US/messages.json +++ b/nodes/core/locales/en-US/messages.json @@ -186,6 +186,7 @@ "oldrc": "Use old style output (compatibility mode)" }, "function": { + "function": "", "label": { "function": "Function", "outputs": "Outputs" diff --git a/nodes/core/logic/10-switch.html b/nodes/core/logic/10-switch.html index 883ee6c84..10491e451 100644 --- a/nodes/core/logic/10-switch.html +++ b/nodes/core/logic/10-switch.html @@ -140,7 +140,7 @@ }, icon: "switch.png", label: function() { - return this.name||this._("swicth.switch"); + return this.name||this._("switch.switch"); }, labelStyle: function() { return this.name?"node_label_italic":"";