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

Support i18n of lock/unlock button in flow property UI

This commit is contained in:
Kazuhito Yokoi 2023-02-04 20:28:08 +09:00
parent 90d1bb0ae4
commit bd0b0077a3
3 changed files with 8 additions and 4 deletions

View File

@ -25,7 +25,9 @@
"disable": "Disable", "disable": "Disable",
"upload": "Upload", "upload": "Upload",
"lock": "Lock", "lock": "Lock",
"unlock": "Unlock" "unlock": "Unlock",
"locked": "Locked",
"unlocked": "Unlocked"
}, },
"type": { "type": {
"string": "string", "string": "string",

View File

@ -25,7 +25,9 @@
"disable": "無効", "disable": "無効",
"upload": "アップロード", "upload": "アップロード",
"lock": "固定", "lock": "固定",
"unlock": "固定を解除" "unlock": "固定を解除",
"locked": "固定済み",
"unlocked": "固定なし"
}, },
"type": { "type": {
"string": "文字列", "string": "文字列",

View File

@ -1922,9 +1922,9 @@ RED.editor = (function() {
workspace.locked = false; workspace.locked = false;
} }
$('<input id="node-input-locked" type="checkbox">').prop("checked",workspace.locked).appendTo(trayFooterRight).toggleButton({ $('<input id="node-input-locked" type="checkbox">').prop("checked",workspace.locked).appendTo(trayFooterRight).toggleButton({
enabledLabel: 'Unlocked', enabledLabel: RED._("common.label.unlocked"),
enabledIcon: "fa-unlock-alt", enabledIcon: "fa-unlock-alt",
disabledLabel: 'Locked', disabledLabel: RED._("common.label.locked"),
disabledIcon: "fa-lock", disabledIcon: "fa-lock",
invertState: true invertState: true
}) })