From 36f099d68b1af1d5416ba5b95b31364b77613c97 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Mon, 11 Oct 2021 16:02:18 +0900 Subject: [PATCH] Add Japanese translations for Node-RED v2.1.0-beta.1 --- .../editor-client/locales/en-US/editor.json | 1 + .../editor-client/locales/ja/editor.json | 41 ++++- .../@node-red/editor-client/src/js/red.js | 2 +- .../editor-client/src/sass/header.scss | 2 +- .../editor-client/src/tours/welcome.js | 147 +++++++++++++----- .../@node-red/nodes/locales/ja/messages.json | 23 ++- 6 files changed, 167 insertions(+), 49 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 0e60d17e3..b8939b212 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 @@ -90,6 +90,7 @@ "palette": { "show": "Show palette" }, + "edit": "Edit", "settings": "Settings", "userSettings": "User Settings", "nodes": "Nodes", 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 83a6468a4..c7da5af80 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 @@ -54,7 +54,14 @@ "delete": "本当に '__label__' を削除しますか?", "dropFlowHere": "ここにフローをドロップしてください", "addFlow": "フローの追加", + "addFlowToRight": "右側にフローを追加", + "hideFlow": "フローを非表示", + "hideOtherFlows": "他のフローを非表示", + "showAllFlows": "全てのフローを表示", + "hideAllFlows": "全てのフローを非表示", + "showLastHiddenFlow": "最後に非表示にしたフローを表示", "listFlows": "フロー一覧", + "listSubflows": "サブフロー一覧", "status": "状態", "enabled": "有効", "disabled": "無効", @@ -83,6 +90,7 @@ "palette": { "show": "パレットを表示" }, + "edit": "編集", "settings": "設定", "userSettings": "ユーザ設定", "nodes": "ノード", @@ -105,6 +113,7 @@ "editPalette": "パレットの管理", "other": "その他", "showTips": "ヒントを表示", + "showWelcomeTours": "新バージョンのガイドツアーを表示", "help": "Node-REDウェブサイト", "projects": "プロジェクト", "projects-new": "新規", @@ -116,7 +125,20 @@ "groupSelection": "選択部分をグループ化", "ungroupSelection": "選択部分をグループ解除", "groupMergeSelection": "選択部分をマージ", - "groupRemoveSelection": "グループから削除" + "groupRemoveSelection": "グループから削除", + "arrange": "配置", + "alignLeft": "左揃え", + "alignCenter": "左右中央揃え", + "alignRight": "右揃え", + "alignTop": "上揃え", + "alignMiddle": "上下中央揃え", + "alignBottom": "下揃え", + "distributeHorizontally": "左右に整列", + "distributeVertically": "上下に整列", + "moveToBack": "最背面へ移動", + "moveToFront": "最前面へ移動", + "moveBackwards": "背面へ移動", + "moveForwards": "前面へ移動" } }, "actions": { @@ -451,7 +473,8 @@ "global": "グローバル", "workspace": "ワークスペース", "selectAll": "全てのノードを選択", - "selectAllConnected": "接続された全てのノードを選択", + "selectNone": "選択を外す", + "selectAllConnected": "接続されたノードを選択", "addRemoveNode": "ノードの選択、選択解除", "editSelected": "選択したノードを編集", "deleteSelected": "選択したノードや接続を削除", @@ -461,10 +484,13 @@ "moveNode": "選択したノードを移動(移動量大)", "toggleSidebar": "サイドバーの表示/非表示", "togglePalette": "パレットの表示/非表示", - "copyNode": "選択したノードをコピー", - "cutNode": "選択したノードを切り取り", + "copyNode": "ノードをコピー", + "cutNode": "ノードを切り取り", "pasteNode": "ノードを貼り付け", + "copyGroupStyle": "グループ様式をコピー", + "pasteGroupStyle": "グループ様式を貼り付け", "undoChange": "変更操作を戻す", + "redoChange": "変更操作をやり直し", "searchBox": "ノードを検索", "managePalette": "パレットの管理", "actionList": "動作一覧" @@ -519,7 +545,8 @@ "nodeEnabled_plural": "ノードを有効化しました:", "nodeDisabled": "ノードを無効化しました:", "nodeDisabled_plural": "ノードを無効化しました:", - "nodeUpgraded": "ノードモジュール __module__ をバージョン __version__ へ更新しました" + "nodeUpgraded": "ノードモジュール __module__ をバージョン __version__ へ更新しました", + "unknownNodeRegistered": "ノードの読み込みエラー: " }, "editor": { "title": "パレットの管理", @@ -1108,6 +1135,10 @@ "preview": "UIプレビュー", "defaultValue": "デフォルト値" }, + "tourGuide": { + "start": "開始", + "next": "次へ" + }, "languages": { "de": "ドイツ語", "en-US": "英語", diff --git a/packages/node_modules/@node-red/editor-client/src/js/red.js b/packages/node_modules/@node-red/editor-client/src/js/red.js index d9ef01021..b2cc64dd9 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/red.js +++ b/packages/node_modules/@node-red/editor-client/src/js/red.js @@ -558,7 +558,7 @@ var RED = (function() { {id:"menu-item-projects-settings",label:RED._("menu.label.projects-settings"),disabled:false,onselect:"core:show-project-settings"} ]}); } - menuOptions.push({id:"menu-item-edit-menu", label:"Edit", options: [ + menuOptions.push({id:"menu-item-edit-menu", label:RED._("menu.label.edit"), options: [ {id: "menu-item-edit-undo", label:RED._("keyboard.undoChange"), disabled: true, onselect: "core:undo"}, {id: "menu-item-edit-redo", label:RED._("keyboard.redoChange"), disabled: true, onselect: "core:redo"}, null, diff --git a/packages/node_modules/@node-red/editor-client/src/sass/header.scss b/packages/node_modules/@node-red/editor-client/src/sass/header.scss index bd1e78a81..697a90729 100644 --- a/packages/node_modules/@node-red/editor-client/src/sass/header.scss +++ b/packages/node_modules/@node-red/editor-client/src/sass/header.scss @@ -187,7 +187,7 @@ ul.red-ui-menu-dropdown { background: $header-menu-background; border: 1px solid $header-menu-background; - width: 250px !important; + width: 260px !important; margin-top: 0; li a { color: $header-menu-color; diff --git a/packages/node_modules/@node-red/editor-client/src/tours/welcome.js b/packages/node_modules/@node-red/editor-client/src/tours/welcome.js index b3186a49b..50ba67d70 100644 --- a/packages/node_modules/@node-red/editor-client/src/tours/welcome.js +++ b/packages/node_modules/@node-red/editor-client/src/tours/welcome.js @@ -3,48 +3,79 @@ export default { steps: [ { titleIcon: "fa fa-map-o", - title: { "en-US": "Welcome to Node-RED 2.1!" }, - description: { "en-US": "Let's take a moment to discover the new features in this release." } + title: { + "en-US": "Welcome to Node-RED 2.1!", + "ja": "Node-RED 2.1へようこそ!" + }, + description: { + "en-US": "Let's take a moment to discover the new features in this release.", + "ja": "本リリースの新機能を見つけてみましょう。" + } }, { - title: { "en-US": "A new Tour Guide" }, - description: { "en-US": "

First, as you've already found, we now have this tour of new features. We'll only show the tour the first time you open the editor for each new version of Node-RED.

"+ - "

You can choose not to see this tour in the future by disabling it under the View tab of User Settings.

" } + title: { + "en-US": "A new Tour Guide", + "ja": "新しいツアーガイド" + }, + description: { + "en-US": "

First, as you've already found, we now have this tour of new features. We'll only show the tour the first time you open the editor for each new version of Node-RED.

" + + "

You can choose not to see this tour in the future by disabling it under the View tab of User Settings.

", + "ja": "

最初に、既に見つけている様に、新機能の本ツアーがあります。本ツアーは、新バージョンのNode-REDフローエディタを初めて開いた時のみ表示されます。

" + + "

ユーザ設定の表示タブの中で、この機能を無効化することで、本ツアーを表示しないようにすることもできます。

" + } }, { - title: { "en-US": "New Edit menu" }, + title: { + "en-US": "New Edit menu", + "ja": "新しい編集メニュー" + }, prepare() { $("#red-ui-header-button-sidemenu").trigger("click"); - $("#menu-item-edit-menu").parent().addClass("open") + $("#menu-item-edit-menu").parent().addClass("open"); }, complete() { - $("#menu-item-edit-menu").parent().removeClass("open") + $("#menu-item-edit-menu").parent().removeClass("open"); }, element: "#menu-item-edit-menu-submenu", interactive: false, direction: "left", - description: { "en-US": "

The main menu has been updated with a new 'Edit' section. This includes all of the familar options, like cut/paste and undo/redo.

"+ - "

The menu now displays keyboard shortcuts for the options.

" } - + description: { + "en-US": "

The main menu has been updated with a new 'Edit' section. This includes all of the familar options, like cut/paste and undo/redo.

" + + "

The menu now displays keyboard shortcuts for the options.

", + "ja": "

メインメニューに「編集」セクションが追加されました。本セクションには、切り取り/貼り付けや、変更操作を戻す/やり直しの様な使い慣れたオプションが含まれています。

" + + "

本メニューには、オプションのためのキーボードショートカットも表示されるようになりました。

" + } }, { - title: { "en-US": "Arranging nodes" }, + title: { + "en-US": "Arranging nodes", + "ja": "ノードの配置" + }, prepare() { $("#red-ui-header-button-sidemenu").trigger("click"); - $("#menu-item-arrange-menu").parent().addClass("open") + $("#menu-item-arrange-menu").parent().addClass("open"); }, complete() { - $("#menu-item-arrange-menu").parent().removeClass("open") + $("#menu-item-arrange-menu").parent().removeClass("open"); }, element: "#menu-item-arrange-menu-submenu", interactive: false, direction: "left", - description: { "en-US": "

The new 'Arrange' section of the menu provides new options to help arrange your nodes. You can align them to a common edge, spread them out evenly or change their order.

" }, + description: { + "en-US": "

The new 'Arrange' section of the menu provides new options to help arrange your nodes. You can align them to a common edge, spread them out evenly or change their order.

", + "ja": "

メニューの新しい「配置」セクションには、ノードの配置を助ける新しいオプションが提供されています。ノードの端を揃えたり、均等に配置したり、表示順序を変更したりできます。

" + } }, { - title: { "en-US": "Hiding tabs" }, + title: { + "en-US": "Hiding tabs", + "ja": "タブの非表示" + }, element: "#red-ui-workspace-tabs > li.active", - description: { "en-US": '

Tabs can now be hidden by clicking their icon.

The Info Sidebar will still list all of your tabs, and tell you which ones are currently hidden.' }, + description: { + "en-US": '

Tabs can now be hidden by clicking their icon.

The Info Sidebar will still list all of your tabs, and tell you which ones are currently hidden.', + "ja": '

アイコンをクリックすることで、タブを非表示にできます。

情報サイドバーには、全てのタブが一覧表示されており、現在非表示になっているタブを確認できます。' + }, interactive: false, prepare() { $("#red-ui-workspace-tabs > li.active .red-ui-tab-close").css("display","block"); @@ -54,9 +85,15 @@ export default { } }, { - title: { "en-US": "Tab menu" }, + title: { + "en-US": "Tab menu", + "ja": "タブメニュー" + }, element: "#red-ui-workspace-tabs-menu", - description: { "en-US": '

The new tab menu also provides lots of new options for your tabs.

' }, + description: { + "en-US": "

The new tab menu also provides lots of new options for your tabs.

", + "ja": "

新しいタブメニューには、タブに関する沢山の新しいオプションが提供されています。

" + }, interactive: false, direction: "left", prepare() { @@ -67,10 +104,16 @@ export default { } }, { - title: { "en-US": "Flow and Group level environment variables" }, + title: { + "en-US": "Flow and Group level environment variables", + "ja": "フローとグループの環境変数" + }, element: "#red-ui-workspace-tabs > li.active", interactive: false, - description: { "en-US": "

Flows and Groups can now have their own environment variables that can be referenced by nodes inside them.

" }, + description: { + "en-US": "

Flows and Groups can now have their own environment variables that can be referenced by nodes inside them.

", + "ja": "

フローとグループには、内部のノードから参照できる環境変数を設定できるようになりました。

" + } }, { prepare(done) { @@ -78,44 +121,63 @@ export default { setTimeout(done,700); }, element: "#red-ui-tab-editor-tab-envProperties-link-button", - description: { "en-US": "

Their edit dialogs have a new Environment Variables section.

" }, + description: { + "en-US": "

Their edit dialogs have a new Environment Variables section.

", + "ja": "

編集ダイアログに環境変数セクションが追加されました。

" + } }, { element: ".node-input-env-container-row", direction: "left", - description: { "en-US": '

The environment variables are listed in this table and new ones can be added by clicking the button.

' }, + description: { + "en-US": '

The environment variables are listed in this table and new ones can be added by clicking the button.

', + "ja": '

この表に環境変数が一覧表示されており、ボタンをクリックすることで新しい変数を追加できます。

' + }, complete(done) { $("#node-dialog-cancel").trigger("click"); setTimeout(done,500); } }, - { - title: {"en-US":"Link Call node added"}, + title: { + "en-US": "Link Call node added", + "ja": "Link Callノードを追加" + }, prepare(done) { - $('[data-palette-type="link call"]')[0].scrollIntoView({block:"center"}) + $('[data-palette-type="link call"]')[0].scrollIntoView({block:"center"}); setTimeout(done,100); }, element: '[data-palette-type="link call"]', direction: "right", - description: { "en-US": '

The Link Call node lets you call another flow that begins with a Link In node and get the result back when the message reaches a Link Out node.

' }, + description: { + "en-US": "

The Link Call node lets you call another flow that begins with a Link In node and get the result back when the message reaches a Link Out node.

", + "ja": "

Link Callノードを用いることで、Link Inノードから始まるフローを呼び出し、Link Outノードに到達した時に、結果を取得できます。

" + } }, - { - title: {"en-US":"File nodes renamed"}, + title: { + "en-US": "File nodes renamed", + "ja": "ファイルノードの名前変更" + }, prepare(done) { - $('[data-palette-type="file"]')[0].scrollIntoView({block:"center"}) + $('[data-palette-type="file"]')[0].scrollIntoView({block:"center"}); setTimeout(done,100); }, element: '[data-palette-type="file"]', direction: "right", - description: { "en-US": '

The file nodes have been renamed to make it clearer which node does what.

' }, + description: { + "en-US": "

The file nodes have been renamed to make it clearer which node does what.

", + "ja": "

fileノードの名前が変更され、どのノードが何を行うかが明確になりました。

" + } }, { - title: {"en-US":"Deep copy option on Change node"}, + title: { + "en-US": "Deep copy option on Change node", + "ja": "Changeノードのディープコピーオプション" + }, prepare(done) { - var def = RED.nodes.getType('change') - RED.editor.edit({id:"test",type:"change",rules:[{t:'set',p:'payload',pt:'msg', tot:'msg',to:"anotherProperty"}],_def:def, _:def._}) + var def = RED.nodes.getType('change'); + RED.editor.edit({id:"test",type:"change",rules:[{t:"set",p:"payload",pt:"msg", tot:"msg",to:"anotherProperty"}],_def:def, _:def._}); setTimeout(done,700); }, complete(done) { @@ -123,13 +185,22 @@ export default { setTimeout(done,500); }, element: function() { - return $(".node-input-rule-property-deepCopy").next() + return $(".node-input-rule-property-deepCopy").next(); }, - description: { "en-US": '

The Set rule has a new option to create a deep copy of the value. This ensures a complete copy is made, rather than using a reference.

' }, + description: { + "en-US": "

The Set rule has a new option to create a deep copy of the value. This ensures a complete copy is made, rather than using a reference.

", + "ja": "

値を代入に、値のディープコピーを作成するオプションが追加されました。これによって参照ではなく、完全なコピーが作成されます。

" + } }, { - title: { "en-US": "And that's not all..." }, - description: { "en-US": "

There are many more smaller changes, including:

" } + title: { + "en-US": "And that's not all...", + "ja": "これが全てではありません..." + }, + description: { + "en-US": "

There are many more smaller changes, including:

", + "ja": "

以下の様な小さな変更が沢山あります:

" + } } ] } 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 bcbf2e8d4..e30d35fe9 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/ja/messages.json @@ -159,7 +159,15 @@ }, "link": { "linkIn": "link in", - "linkOut": "link out" + "linkOut": "link out", + "linkCall": "link call", + "linkOutReturn": "link return", + "outMode": "モード", + "sendToAll": "接続された全てのlinkノードへ送信", + "returnToCaller": "link callノードへ返却", + "error": { + "missingReturn": "返却するノードの情報が存在しません" + } }, "tls": { "tls": "TLS設定", @@ -282,7 +290,9 @@ "and": "回/", "rate": "流量", "msgper": "メッセージ/", + "queuemsg": "中間メッセージをキューに追加", "dropmsg": "中間メッセージを削除", + "sendmsg": "2番目の出力で中間メッセージを送信", "allowrate": "msg.rate(ミリ秒単位)で流量値を上書き", "label": { "delay": "delay", @@ -478,6 +488,7 @@ "proxy-config": "プロキシ設定", "use-proxyauth": "プロキシ認証を使用", "noproxy-hosts": "例外ホスト", + "senderr": "2xx以外の応答をcatchノードへ送信", "utf8": "UTF8文字列", "binary": "バイナリバッファ", "json": "JSONオブジェクト", @@ -703,13 +714,15 @@ "delete": "delete __property__", "move": "move __property__", "changeCount": "change: __count__ rules", - "regex": "正規表現を使用" + "regex": "正規表現を使用", + "deepCopy": "値のディープコピー" }, "action": { "set": "値の代入", "change": "値の置換", "delete": "値の削除", "move": "値の移動", + "toValue": "対象の値", "to": "対象の値", "search": "検索する文字列", "replace": "置換後の文字列" @@ -851,6 +864,8 @@ }, "file": { "label": { + "write": "write file", + "read": "read file", "filename": "ファイル名", "action": "動作", "addnewline": "メッセージの入力のたびに改行を追加", @@ -858,7 +873,6 @@ "outputas": "出力形式", "breakchunks": "チャンクへ分割", "breaklines": "行へ分割", - "filelabel": "file", "sendError": "エラーメッセージを送信(互換モード)", "encoding": "文字コード", "deletelabel": "delete __file__", @@ -866,7 +880,8 @@ "utf8String_plural": "UTF8文字列", "binaryBuffer": "バイナリバッファ", "binaryBuffer_plural": "バイナリバッファ", - "allProps": "各メッセージに既存の全プロパティを含める" + "allProps": "各メッセージに既存の全プロパティを含める", + "filelabel": "file" }, "action": { "append": "ファイルへ追記",