From bd0b0077a3f011e040cbb92d9d767b1b77bfe4df Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sat, 4 Feb 2023 20:28:08 +0900 Subject: [PATCH 1/2] Support i18n of lock/unlock button in flow property UI --- .../@node-red/editor-client/locales/en-US/editor.json | 4 +++- .../@node-red/editor-client/locales/ja/editor.json | 4 +++- .../node_modules/@node-red/editor-client/src/js/ui/editor.js | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) 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 9400060c1..92f5fc483 100644 --- 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 @@ -25,7 +25,9 @@ "disable": "Disable", "upload": "Upload", "lock": "Lock", - "unlock": "Unlock" + "unlock": "Unlock", + "locked": "Locked", + "unlocked": "Unlocked" }, "type": { "string": "string", 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 4878763a6..d09a4895a 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 @@ -25,7 +25,9 @@ "disable": "無効", "upload": "アップロード", "lock": "固定", - "unlock": "固定を解除" + "unlock": "固定を解除", + "locked": "固定済み", + "unlocked": "固定なし" }, "type": { "string": "文字列", diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js index ec02c6281..bd8bcc4fb 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/editor.js @@ -1922,9 +1922,9 @@ RED.editor = (function() { workspace.locked = false; } $('').prop("checked",workspace.locked).appendTo(trayFooterRight).toggleButton({ - enabledLabel: 'Unlocked', + enabledLabel: RED._("common.label.unlocked"), enabledIcon: "fa-unlock-alt", - disabledLabel: 'Locked', + disabledLabel: RED._("common.label.locked"), disabledIcon: "fa-lock", invertState: true }) From 3e4cad3a792c3f04f3a81dfedb1336cb2de77d98 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sat, 4 Feb 2023 20:38:08 +0900 Subject: [PATCH 2/2] Add Japanese translations for the action list --- .../@node-red/editor-client/locales/ja/editor.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 d09a4895a..8e8a914aa 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 @@ -1378,6 +1378,9 @@ "copy-item-url": "要素のURLをコピー", "copy-item-edit-url": "要素の編集URLをコピー", "move-flow-to-start": "フローを先頭に移動", - "move-flow-to-end": "フローを末尾に移動" + "move-flow-to-end": "フローを末尾に移動", + "lock-flow": "フローを固定", + "unlock-flow": "フローの固定を解除", + "show-node-help": "ノードのヘルプを表示" } }