From 199ff071e8eb730049698c47abbeb6cd3eb8293a Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Tue, 24 Sep 2019 19:46:51 +0900 Subject: [PATCH] Update i18n for project feature --- .../@node-red/editor-client/locales/en-US/editor.json | 1 + .../@node-red/editor-client/locales/ja/editor.json | 5 +++-- .../editor-client/src/js/ui/projects/projectSettings.js | 4 ++-- .../@node-red/editor-client/src/js/ui/tab-info.js | 2 +- 4 files changed, 7 insertions(+), 5 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 b89949ddf..7bae69c57 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 @@ -588,6 +588,7 @@ "noSummaryAvailable": "No summary available", "editDescription": "Edit project description", "editDependencies": "Edit project dependencies", + "noDescriptionAvailable": "No description available", "editReadme": "Edit README.md", "showProjectSettings": "Show project settings", "projectSettings": { 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 e8044cd5a..c57062be1 100755 --- a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json @@ -325,7 +325,7 @@ "locale": "UI言語の選択", "icon": "記号", "inputType": "入力形式", - "inputs" : { + "inputs": { "input": "入力", "select": "メニュー", "checkbox": "チェックボックス", @@ -585,9 +585,10 @@ "description": "詳細", "dependencies": "依存関係", "settings": "設定", - "noSummaryAvailable": "サマリが存在しません", + "noSummaryAvailable": "要約が存在しません", "editDescription": "プロジェクトの詳細を編集", "editDependencies": "プロジェクトの依存関係を編集", + "noDescriptionAvailable": "詳細が存在しません", "editReadme": "README.mdを編集", "showProjectSettings": "プロジェクト設定を表示", "projectSettings": { diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js index 9c3784410..2d377ba54 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/projects/projectSettings.js @@ -160,7 +160,7 @@ RED.projects.settings = (function() { if (activeProject.description) { desc = marked(activeProject.description); } else { - desc = ''+'No description available'+''; + desc = '' + RED._("sidebar.project.noDescriptionAvailable") + ''; } var description = addTargetToExternalLinks($(''+desc+'')).appendTo(container); description.find(".red-ui-text-bidi-aware").contents().filter(function() { return this.nodeType === 3 && this.textContent.trim() !== "" }).wrap( "" ); @@ -222,7 +222,7 @@ RED.projects.settings = (function() { if (summary) { container.text(summary).removeClass('node-info-node'); } else { - container.text(RED._("sidebar.project.projectSettings.noSummaryAvailable")).addClass('red-ui-help-info-none'); + container.text(RED._("sidebar.project.noSummaryAvailable")).addClass('red-ui-help-info-none'); } } diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info.js index 87a845466..b8e3b150b 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info.js @@ -140,7 +140,7 @@ RED.sidebar.info = (function() { var activeProject = RED.projects.getActiveProject(); if (activeProject) { - propRow = $('Project').appendTo(tableBody); + propRow = $(''+ RED._("sidebar.project.name") + '').appendTo(tableBody); $(propRow.children()[1]).text(activeProject.name||""); $('').appendTo(tableBody); var editProjectButton = $('')