From 14fa9cfa4b6100b4f74f34a2f4dfd983ec4f1749 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Wed, 30 Mar 2022 15:20:39 +0900 Subject: [PATCH 1/5] Change indents from tabs to 4 spaces --- .../@node-red/editor-client/src/sass/palette-editor.scss | 2 +- .../node_modules/@node-red/nodes/core/function/10-function.html | 2 +- .../node_modules/@node-red/nodes/core/sequence/19-batch.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/sass/palette-editor.scss b/packages/node_modules/@node-red/editor-client/src/sass/palette-editor.scss index b09c32d6d..34fbd3e07 100644 --- a/packages/node_modules/@node-red/editor-client/src/sass/palette-editor.scss +++ b/packages/node_modules/@node-red/editor-client/src/sass/palette-editor.scss @@ -254,7 +254,7 @@ button.red-ui-palette-editor-upload-button { padding: 2px 8px; } form { - width: 0; + width: 0; } } .red-ui-palette-editor-upload { diff --git a/packages/node_modules/@node-red/nodes/core/function/10-function.html b/packages/node_modules/@node-red/nodes/core/function/10-function.html index a1ed14f6d..8d4145a68 100644 --- a/packages/node_modules/@node-red/nodes/core/function/10-function.html +++ b/packages/node_modules/@node-red/nodes/core/function/10-function.html @@ -399,7 +399,7 @@ $("#func-tabs-content").children().hide(); $("#" + tab.id).show(); let editor = $("#" + tab.id).find('.monaco-editor').first(); - if(editor.length) { + if(editor.length) { if(that.editor.nodered && that.editor.type == "monaco") { that.editor.nodered.refreshModuleLibs(getLibsList()); } diff --git a/packages/node_modules/@node-red/nodes/core/sequence/19-batch.html b/packages/node_modules/@node-red/nodes/core/sequence/19-batch.html index 418ac605b..995ed71bc 100644 --- a/packages/node_modules/@node-red/nodes/core/sequence/19-batch.html +++ b/packages/node_modules/@node-red/nodes/core/sequence/19-batch.html @@ -47,7 +47,7 @@
-
+
From 6b00aba0398246dc73abc1ac885141b01aef5a41 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Wed, 30 Mar 2022 15:30:30 +0900 Subject: [PATCH 2/5] Adjust indents in the documentation of the link node --- .../nodes/locales/en-US/common/60-link.html | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/common/60-link.html b/packages/node_modules/@node-red/nodes/locales/en-US/common/60-link.html index 1bfa6e8ec..ef83a42f5 100644 --- a/packages/node_modules/@node-red/nodes/locales/en-US/common/60-link.html +++ b/packages/node_modules/@node-red/nodes/locales/en-US/common/60-link.html @@ -29,8 +29,8 @@

Create virtual wires between flows.

Details

This node can be configured to either send messages to all link in - nodes it is connected to, or to send a response back to the link call - node that triggered the flow.

+ nodes it is connected to, or to send a response back to the link call + node that triggered the flow.

When in 'send to all' mode, the wires between link nodes are only displayed when the node is selected. If there are any wires to other tabs, a virtual node is shown that can be clicked on to jump to the appropriate tab.

@@ -38,28 +38,28 @@ From 5e501857aa06c5e3e00a29c986aca0f33da9c7c5 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Wed, 30 Mar 2022 15:31:48 +0900 Subject: [PATCH 3/5] Add Japanese translations for link node --- .../@node-red/nodes/locales/ja/common/60-link.html | 12 ++++++++++++ .../@node-red/nodes/locales/ja/messages.json | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/packages/node_modules/@node-red/nodes/locales/ja/common/60-link.html b/packages/node_modules/@node-red/nodes/locales/ja/common/60-link.html index 286878dae..260e96a2b 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/common/60-link.html +++ b/packages/node_modules/@node-red/nodes/locales/ja/common/60-link.html @@ -32,9 +32,21 @@ 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 7784dbe4b..2fdf78f8f 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/ja/messages.json @@ -170,6 +170,10 @@ "outMode": "モード", "sendToAll": "接続された全てのlinkノードへ送信", "returnToCaller": "link callノードへ返却", + "linkCallType": "リンクの種類", + "staticLinkCall": "対象を固定で指定", + "dynamicLinkCall": "対象を動的に指定 (msg.target)", + "dynamicLinkLabel": "動的", "error": { "missingReturn": "返却するノードの情報が存在しません" } From c9aa654ef08a2a77d34b8c6946c952749558a65e Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Wed, 30 Mar 2022 15:34:07 +0900 Subject: [PATCH 4/5] Fix incorrect variable name for i18n of the flow editor --- .../@node-red/editor-client/locales/en-US/editor.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json index 93e847066..721c5768a 100755 --- a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json @@ -502,7 +502,7 @@ "searchBox": "Open search box", "managePalette": "Manage palette", "actionList": "Action list", - "splitWiresWithLinks": "Split selection with Link nodes" + "splitWireWithLinks": "Split selection with Link nodes" }, "library": { "library": "Library", From 32bddfdd47a53809a96c3bd20f213c3a2e4ee576 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Wed, 30 Mar 2022 15:34:44 +0900 Subject: [PATCH 5/5] Add Japanese translations for flow editor --- .../editor-client/locales/ja/editor.json | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json index c45162246..90cae7abe 100644 --- a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json @@ -149,7 +149,11 @@ "toggle-navigator": "ナビゲータの表示/非表示を切替", "zoom-out": "縮小", "zoom-reset": "拡大/縮小を初期化", - "zoom-in": "拡大" + "zoom-in": "拡大", + "search-flows": "フローを検索", + "search-prev": "前へ", + "search-next": "次へ", + "search-counter": "\"__term__\" __count__ 件中の __result__ 件目" }, "user": { "loggedInAs": "__name__ としてログインしました", @@ -497,7 +501,8 @@ "redoChange": "変更操作をやり直し", "searchBox": "ノードを検索", "managePalette": "パレットの管理", - "actionList": "動作一覧" + "actionList": "動作一覧", + "splitWireWithLinks": "選択したワイヤーをlinkノードで分離" }, "library": { "library": "ライブラリ", @@ -898,7 +903,8 @@ "invalidNodes": "不正なノード", "uknownNodes": "未知のノード", "unusedSubflows": "未使用のサブフロー", - "hiddenFlows": "非表示のフロー" + "hiddenFlows": "非表示のフロー", + "modifiedNodes": "修正したノードやフロー" } }, "expressionEditor": { @@ -1174,6 +1180,7 @@ "hide-all-flows": "全てのフローを非表示", "show-all-flows": "全てのフローを表示", "show-last-hidden-flow": "最後に非表示にしたフローを表示", + "list-modified-nodes": "修正したフローを表示", "list-hidden-flows": "非表示フローを表示", "list-flows": "フロー一覧", "list-subflows": "サブフロー一覧", @@ -1240,6 +1247,8 @@ "distribute-selection-vertically": "選択を上下に整列", "wire-series-of-nodes": "ノードを一続きに接続", "wire-node-to-multiple": "ノードを複数に接続", + "split-wire-with-link-nodes": "ワイヤーをlinkノードで分割", + "generate-node-names": "ノード名を生成", "show-user-settings": "ユーザ設定を表示", "show-help": "ヘルプを表示", "toggle-palette": "パレットの表示切替", @@ -1266,6 +1275,8 @@ "show-library-import-dialog": "ライブラリ読み込みダイアログを表示", "show-examples-import-dialog": "サンプル読み込みダイアログを表示", "search": "検索", + "search-previous": "前を検索", + "search-next": "次を検索", "show-action-list": "アクション一覧を表示", "confirm-edit-tray": "編集を完了", "cancel-edit-tray": "編集をキャンセル", @@ -1276,8 +1287,8 @@ "set-deploy-type-to-modified-flows": "デプロイを「変更したフロー」に設定", "set-deploy-type-to-modified-nodes": "デプロイを「変更したノード」に設定", "show-debug-tab": "デバッグタブを表示", - "clear-debug-messages": "デバッグメッセージをクリア", - "clear-filtered-debug-messages": "フィルタしたデバッグメッセージをクリア", + "clear-debug-messages": "デバッグメッセージを削除", + "clear-filtered-debug-messages": "フィルタしたデバッグメッセージを削除", "activate-selected-debug-nodes": "選択したデバッグノードを有効化", "activate-all-debug-nodes": "全てのデバッグノードを有効化", "activate-all-flow-debug-nodes": "フロー内の全デバッグノードを有効化",