From bad08bafd770dac9d7b01ffdde61f0a2427a4a57 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sat, 16 Mar 2024 18:34:24 +0900 Subject: [PATCH 1/4] Add Japanese translations for 4.0.0-beta.1 --- .../editor-client/locales/ja/editor.json | 13 ++++++-- .../editor-client/src/tours/3.1/welcome.js | 2 +- .../editor-client/src/tours/welcome.js | 30 ++++++++++++++----- .../locales/ja/common/91-global-config.html | 2 +- .../@node-red/nodes/locales/ja/messages.json | 15 ++++++++-- 5 files changed, 47 insertions(+), 15 deletions(-) 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 53c8616fd..c64cf7560 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 @@ -924,7 +924,14 @@ "date": "日時", "jsonata": "JSONata式", "env": "環境変数", - "cred": "認証情報" + "cred": "認証情報", + "conf-types": "設定ノード" + }, + "date": { + "format": { + "timestamp": "エポックからのミリ秒", + "object": "JavaScript日付オブジェクト" + } } }, "editableList": { @@ -1230,7 +1237,7 @@ }, "env-var": { "environment": "環境変数", - "header": "大域環境変数", + "header": "グローバル環境変数", "revert": "破棄" }, "action-list": { @@ -1382,7 +1389,7 @@ "copy-item-edit-url": "要素の編集URLをコピー", "move-flow-to-start": "フローを先頭に移動", "move-flow-to-end": "フローを末尾に移動", - "show-global-env": "大域環境変数を表示", + "show-global-env": "グローバル環境変数を表示", "lock-flow": "フローを固定", "unlock-flow": "フローの固定を解除", "show-node-help": "ノードのヘルプを表示" diff --git a/packages/node_modules/@node-red/editor-client/src/tours/3.1/welcome.js b/packages/node_modules/@node-red/editor-client/src/tours/3.1/welcome.js index 371a1b31c..6905e5494 100644 --- a/packages/node_modules/@node-red/editor-client/src/tours/3.1/welcome.js +++ b/packages/node_modules/@node-red/editor-client/src/tours/3.1/welcome.js @@ -207,7 +207,7 @@ export default { description: { "en-US": `

You can set environment variables that apply to all nodes and flows in the new 'Global Environment Variables' section of User Settings.

`, - "ja": `

ユーザ設定に新しく追加された「大域環境変数」のセクションで、全てのノードとフローに適用される環境変数を登録できます。

`, + "ja": `

ユーザ設定に新しく追加された「グローバル環境変数」のセクションで、全てのノードとフローに適用される環境変数を登録できます。

`, "fr": `

Vous pouvez définir des variables d'environnement qui s'appliquent à tous les noeuds et flux dans la nouvelle section "Global Environment Variables" des paramètres utilisateur.

` }, 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 4c236d8ed..75152225d 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 @@ -5,7 +5,7 @@ export default { titleIcon: "fa fa-map-o", title: { "en-US": "Welcome to Node-RED 4.0 Beta 1!", - "ja": "Node-RED 4.0 Beta 0へようこそ!", + "ja": "Node-RED 4.0 Beta 1へようこそ!", "fr": "Bienvenue dans Node-RED 4.0 Beta 1!" }, description: { @@ -17,7 +17,7 @@ export default { { title: { "en-US": "Timestamp formatting options", - // "ja": "" + "ja": "タイムスタンプの形式の項目" }, image: 'images/nr4-timestamp-formatting.png', description: { @@ -28,26 +28,33 @@ export default {
  • ISO 8601 - a common format used by many systems
  • JavaScript Data Object
  • `, - // "ja": `` + "ja": `

    タイムスタンプを設定するノードに、タイムスタンプの形式を指定できる項目が追加されました。

    +

    次の3つの項目を追加したことで、簡単に選択できるようになりました:

    +

    ` } }, { title: { "en-US": "Auto-complete of flow/global and env types", - // "ja": "" + "ja": "フロー/グローバル、環境変数の型の自動補完" }, image: 'images/nr4-auto-complete.png', description: { "en-US": `

    The flow/global context inputs and the env input now all include auto-complete suggestions based on the live state of your flows.

    `, - // "ja": `` + "ja": `

    flow/globalコンテキストやenvの入力を、現在のフローの状態をもとに自動補完で提案するようになりました。

    + ` } }, { title: { "en-US": "Config node customisation in Subflows", - // "ja": "" + "ja": "サブフローでの設定ノードのカスタマイズ" }, image: 'images/nr4-sf-config.png', description: { @@ -56,7 +63,9 @@ export default {

    For example, each instance of a subflow that connects to an MQTT Broker and does some post-processing of the messages received can be pointed at a different broker.

    `, - // "ja": `` + "ja": `

    サブフローをカスタマイズして、選択した型の異なる設定ノードを各インスタンスが使用できるようになりました。

    +

    例えば、MQTTブローカへ接続し、メッセージ受信と後処理を行うサブフローの各インスタンスに異なるブローカを指定することも可能です。

    + ` } }, { @@ -74,6 +83,13 @@ export default {
  • Customisable headers on the WebSocket node
  • Split node now can operate on any message property
  • and lots more...
  • + `, + "ja": `

    コアノードには沢山の軽微な修正、ドキュメント更新、小さな機能拡張が入っています。全リストはヘルプサイドバーにある変更履歴を参照してください。

    + ` } } diff --git a/packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html b/packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html index 2eda840ec..2b0d0cc19 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html +++ b/packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html @@ -1,3 +1,3 @@ p 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 48b95c93f..fe81a80ad 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/ja/messages.json @@ -850,7 +850,13 @@ "newline": "改行コード", "usestrings": "数値を変換する", "include_empty_strings": "空の文字を含む", - "include_null_values": "null値を含む" + "include_null_values": "null値を含む", + "spec": "パーサ" + }, + "spec": { + "rfc": "RFC4180", + "legacy": "従来", + "legacy_warning": "従来モードは将来のリリースで削除される予定です" }, "placeholder": { "columns": "コンマ区切りで列名を入力" @@ -879,6 +885,7 @@ "once": "ヘッダを一度だけ送信する(msg.resetの受け付けると再送)" }, "errors": { + "bad_template": "不正な列テンプレート", "csv_js": "本ノードが処理できる形式は、CSV文字列またはJSONのみです", "obj_csv": "オブジェクトをCSVへ変換する際の列名が設定されていません", "bad_csv": "不正なCSVデータ - 出力の修正を試みました" @@ -888,12 +895,14 @@ "label": { "select": "抽出する要素", "output": "出力", - "in": "対象:" + "in": "対象:", + "prefix": "HTMLコンテンツのプロパティ名" }, "output": { "html": "要素内のHTML", "text": "要素のテキストのみ", - "attr": "要素の全ての属性" + "attr": "要素の全ての属性", + "compl": "要素やHTMLコンテンツの属性オブジェクト" }, "format": { "single": "配列化した1つのメッセージ", From 1cd550022bcb5d742b01745a5fc5b9a0d6d71850 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sat, 16 Mar 2024 18:43:03 +0900 Subject: [PATCH 2/4] Fix typos --- .../node_modules/@node-red/editor-client/locales/ja/editor.json | 2 +- .../node_modules/@node-red/editor-client/src/tours/welcome.js | 2 +- .../@node-red/nodes/locales/ja/common/91-global-config.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 c64cf7560..ad0ddb4ce 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 @@ -929,7 +929,7 @@ }, "date": { "format": { - "timestamp": "エポックからのミリ秒", + "timestamp": "エポックからの経過ミリ秒", "object": "JavaScript日付オブジェクト" } } 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 75152225d..9cb278567 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 @@ -26,7 +26,7 @@ export default { `, "ja": `

    タイムスタンプを設定するノードに、タイムスタンプの形式を指定できる項目が追加されました。

    次の3つの項目を追加したことで、簡単に選択できるようになりました:

    diff --git a/packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html b/packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html index 2b0d0cc19..4de882b05 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html +++ b/packages/node_modules/@node-red/nodes/locales/ja/common/91-global-config.html @@ -1,3 +1,3 @@ p + From 9a19a1113ee0797a7116e42a74834ff30ef6bee6 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sat, 16 Mar 2024 18:44:25 +0900 Subject: [PATCH 3/4] Fix image paths in previous welcome tour --- .../editor-client/src/tours/3.1/welcome.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/tours/3.1/welcome.js b/packages/node_modules/@node-red/editor-client/src/tours/3.1/welcome.js index 6905e5494..ce48fb45f 100644 --- a/packages/node_modules/@node-red/editor-client/src/tours/3.1/welcome.js +++ b/packages/node_modules/@node-red/editor-client/src/tours/3.1/welcome.js @@ -50,7 +50,7 @@ export default { "ja": "タブ上の変更通知", "fr": "Notification de changement sur les onglets" }, - image: 'images/tab-changes.png', + image: '3.1/images/tab-changes.png', description: { "en-US": `

    When a tab contains undeployed changes it now shows the same style of change icon used by nodes.

    @@ -89,7 +89,7 @@ export default { "ja": "ヘルプを見つける", "fr": "Trouver de l'aide" }, - image: 'images/node-help.png', + image: '3.1/images/node-help.png', description: { "en-US": `

    All node edit dialogs now include a link to that node's help in the footer.

    @@ -107,7 +107,7 @@ export default { "ja": "コンテキストメニューの改善", "fr": "Menu contextuel amélioré" }, - image: 'images/context-menu.png', + image: '3.1/images/context-menu.png', description: { "en-US": `

    The editor's context menu has been expanded to make lots more of the built-in actions available.

    @@ -129,7 +129,7 @@ export default { "ja": "フローを非表示", "fr": "Masquage de flux" }, - image: 'images/hiding-flows.png', + image: '3.1/images/hiding-flows.png', description: { "en-US": `

    Hiding flows is now done through the flow context menu.

    The 'hide' button in previous releases has been removed from the tabs @@ -147,7 +147,7 @@ export default { "ja": "フローを固定", "fr": "Verrouillage de flux" }, - image: 'images/locking-flows.png', + image: '3.1/images/locking-flows.png', description: { "en-US": `

    Flows can now be locked to prevent accidental changes being made.

    When locked you cannot modify the nodes in any way.

    @@ -187,7 +187,7 @@ export default { "ja": "Mermaid図を追加", "fr": "Ajout de diagrammes Mermaid" }, - image: 'images/mermaid.png', + image: '3.1/images/mermaid.png', description: { "en-US": `

    You can also add Mermaid diagrams directly into your node or flow descriptions.

    This gives you much richer options for documenting your flows.

    `, @@ -203,7 +203,7 @@ export default { "ja": "グローバル環境変数の管理", "fr": "Gestion des variables d'environnement globales" }, - image: 'images/global-env-vars.png', + image: '3.1/images/global-env-vars.png', description: { "en-US": `

    You can set environment variables that apply to all nodes and flows in the new 'Global Environment Variables' section of User Settings.

    `, From 4f1e4faede6d14b4eb945f34b2ccf78112bbe52d Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sat, 16 Mar 2024 19:32:42 +0900 Subject: [PATCH 4/4] Add Japanese translations for TCP and CSV nodes --- .../@node-red/nodes/locales/ja/network/31-tcpin.html | 2 ++ .../@node-red/nodes/locales/ja/parsers/70-CSV.html | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/locales/ja/network/31-tcpin.html b/packages/node_modules/@node-red/nodes/locales/ja/network/31-tcpin.html index e63c93ae5..915fb83d1 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/network/31-tcpin.html +++ b/packages/node_modules/@node-red/nodes/locales/ja/network/31-tcpin.html @@ -24,12 +24,14 @@

    msg.payloadのみが送信対象となります。

    msg.payloadがバイナリデータをBase64エンコーディングの文字列に変換したものの場合、Base64デコードオプションを指定するとデータをバイナリに変換して送信します。

    msg._sessionが存在しない場合、接続している全てのクライアントに送信します。

    +

    応答モードでは、msg.reset = trueを設定すると_session.idで指定した接続がリセットされます。もし_session.idを指定しない場合は、全ての接続がリセットされます。

    注: 1024番より小さな番号のポートをアクセスするにはrootもしくはadministrator権限が必要なシステムもあります。

    diff --git a/packages/node_modules/@node-red/nodes/locales/ja/parsers/70-CSV.html b/packages/node_modules/@node-red/nodes/locales/ja/parsers/70-CSV.html index 60645e4cc..d56e3c01d 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/parsers/70-CSV.html +++ b/packages/node_modules/@node-red/nodes/locales/ja/parsers/70-CSV.html @@ -34,7 +34,9 @@

    詳細

    -

    「列名」にカラム名のリストを指定することができます。CSVからオブジェクトに変換を行う際、カラム名をプロパティ名として使用します。「列名」の代わりに、CSVデータの1行目にカラム名を含めることもできます。

    +

    「列名」にカラム名のリストを指定することができます。CSVからオブジェクトに変換を行う際、カラム名をプロパティ名として使用します。「列名」の代わりに、CSVデータの1行目にカラム名を含めることもできます。 +

    RFCパーサが選択されている場合、列のテンプレートはRFC4180に準拠する必要があります。

    +

    CSVへの変換を行う際には、オブジェクトから取り出すべきプロパティとその順序を「列名」を参照して決めます。

    列名がない場合、本ノードはmsg.columnsプロパティの単純なコンマ区切りリストを使用して、何をどの順序で抽出するかを決定します。もし存在しない場合、すべてのオブジェクトプロパティを見つけた順序で出力します。

    入力が配列の場合には、「列名」はカラム名を表す行の出力指定がされた場合だけ用います。