From 0e902a7e7191f3dd02c2971a3000e2ef975ecfc2 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Tue, 13 Nov 2018 23:29:14 +0900 Subject: [PATCH] i18n & JP message for node config tab --- .../editor-client/locales/en-US/editor.json | 5 +++ .../editor-client/locales/ja/editor.json | 5 +++ .../editor-client/src/js/ui/editor.js | 32 +++++++++---------- 3 files changed, 26 insertions(+), 16 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 7a7661b1f..9f6dd11a3 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 @@ -887,5 +887,10 @@ "unexpected": "An unexpected error occurred", "code": "code" } + }, + "editor-tab": { + "properties": "@Properties", + "description": "@Description", + "appearance": "@Appearance" } } 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 136f9972b..346efe8f6 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 @@ -881,5 +881,10 @@ "unexpected": "予期しないエラーが発生しました", "code": "コード" } + }, + "editor-tab": { + "properties": "プロパティ", + "description": "説明", + "appearance": "外観" } } 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 121102719..9dfc1282c 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 @@ -1372,8 +1372,8 @@ RED.editor = (function() { var nodePropertiesTab = { id: "editor-tab-properties", - label: "Properties", - name: "Properties", + label: RED._("editor-tab.properties"), + name: RED._("editor-tab.properties"), content: $('
', {class:"editor-tray-content"}).appendTo(editorContent).hide(), iconClass: "fa fa-cog" }; @@ -1383,8 +1383,8 @@ RED.editor = (function() { if (!node._def.defaults || !node._def.defaults.hasOwnProperty('info')) { var descriptionTab = { id: "editor-tab-description", - label: "Description", - name: "Description", + label: RED._("editor-tab.description"), + name: RED._("editor-tab.description"), content: $('
', {class:"editor-tray-content"}).appendTo(editorContent).hide(), iconClass: "fa fa-file-text-o", onchange: function() { @@ -1397,8 +1397,8 @@ RED.editor = (function() { var appearanceTab = { id: "editor-tab-appearance", - label: "Appearance", - name: "Appearance", + label: RED._("editor-tab.appearance"), + name: RED._("editor-tab.appearance"), content: $('
', {class:"editor-tray-content"}).appendTo(editorContent).hide(), iconClass: "fa fa-object-group", onchange: function() { @@ -1538,8 +1538,8 @@ RED.editor = (function() { var nodePropertiesTab = { id: "editor-tab-cproperties", - label: "Properties", - name: "Properties", + label: RED._("editor-tab.properties"), + name: RED._("editor-tab.properties"), content: $('
', {class:"editor-tray-content"}).appendTo(editorContent).hide(), iconClass: "fa fa-cog" }; @@ -1549,8 +1549,8 @@ RED.editor = (function() { if (!node_def.defaults || !node_def.defaults.hasOwnProperty('info')) { var descriptionTab = { id: "editor-tab-description", - label: "Description", - name: "Description", + label: RED._("editor-tab.description"), + name: RED._("editor-tab.description"), content: $('
', {class:"editor-tray-content"}).appendTo(editorContent).hide(), iconClass: "fa fa-file-text-o", onchange: function() { @@ -2061,8 +2061,8 @@ RED.editor = (function() { var nodePropertiesTab = { id: "editor-tab-properties", - label: "Properties", - name: "Properties", + label: RED._("editor-tab.properties"), + name: RED._("editor-tab.properties"), content: $('
', {class:"editor-tray-content"}).appendTo(editorContent).hide(), iconClass: "fa fa-cog" }; @@ -2071,8 +2071,8 @@ RED.editor = (function() { var descriptionTab = { id: "editor-tab-description", - label: "Description", - name: "Description", + label: RED._("editor-tab.description"), + name: RED._("editor-tab.description"), content: $('
', {class:"editor-tray-content"}).appendTo(editorContent).hide(), iconClass: "fa fa-file-text-o", onchange: function() { @@ -2084,8 +2084,8 @@ RED.editor = (function() { var appearanceTab = { id: "editor-tab-appearance", - label: "Appearance", - name: "Appearance", + label: RED._("editor-tab.appearance"), + name: RED._("editor-tab.appearance"), content: $('
', {class:"editor-tray-content"}).appendTo(editorContent).hide(), iconClass: "fa fa-object-group", onchange: function() {