From a1474581208faf5dab31994822ce224c8ccff3f4 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Sun, 22 May 2022 16:28:11 +0900 Subject: [PATCH] i18n debug sidebar node label --- .../@node-red/nodes/core/common/lib/debug/debug-utils.js | 2 +- .../node_modules/@node-red/nodes/locales/en-US/messages.json | 1 + packages/node_modules/@node-red/nodes/locales/ja/messages.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/core/common/lib/debug/debug-utils.js b/packages/node_modules/@node-red/nodes/core/common/lib/debug/debug-utils.js index 85a55c4a5..5782c6ffc 100644 --- a/packages/node_modules/@node-red/nodes/core/common/lib/debug/debug-utils.js +++ b/packages/node_modules/@node-red/nodes/core/common/lib/debug/debug-utils.js @@ -582,7 +582,7 @@ RED.debug = (function() { $(''+ getTimestamp()+'').appendTo(metaRow); if (sourceNode) { - var nodeLink = $('',{href:"#",class:"red-ui-debug-msg-name"}).text("node: "+(o.name||sourceNode.name||sourceNode.id)) + var nodeLink = $('',{href:"#",class:"red-ui-debug-msg-name"}).text(RED._("node-red:debug.node")+": "+(o.name||sourceNode.name||sourceNode.id)) .appendTo(metaRow) .on("click", function(evt) { evt.preventDefault(); diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json index e3a435619..1c3f2b946 100755 --- a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json @@ -137,6 +137,7 @@ "toConsole": "system console", "toStatus": "node status (32 characters)", "severity": "Level", + "node": "node", "notification": { "activated": "Successfully activated: __label__", "deactivated": "Successfully deactivated: __label__" diff --git a/packages/node_modules/@node-red/nodes/locales/ja/messages.json b/packages/node_modules/@node-red/nodes/locales/ja/messages.json index 3d6f53209..c331f5912 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/ja/messages.json @@ -137,6 +137,7 @@ "toConsole": "システムコンソール", "toStatus": "ノードステータス(32 文字)", "severity": "Level", + "node": "ノード", "notification": { "activated": "有効化しました: __label__", "deactivated": "無効化しました: __label__"