Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.2 Chinese translation update and fix errors in tags in html files #4245

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9f7da70
Add new version Chinese translation
XuyuEre Jul 10, 2023
82f0008
Update
XuyuEre Jul 10, 2023
277dc36
fix error type
XuyuEre Jul 10, 2023
78beb3c
fix error type
XuyuEre Jul 10, 2023
87da22e
fix error type
XuyuEre Jul 10, 2023
97e889b
Update 19-batch.html
XuyuEre Jul 10, 2023
5ca2269
Update 70-JSON.html
XuyuEre Jul 10, 2023
d1929b1
Update 70-CSV.html
XuyuEre Jul 10, 2023
85c4e81
fix error type
XuyuEre Jul 10, 2023
762ccfd
fix error type
XuyuEre Jul 10, 2023
97548ad
fix error type
XuyuEre Jul 10, 2023
e443b3c
fix
XuyuEre Jul 10, 2023
cc9d868
fix
XuyuEre Jul 10, 2023
49b8a10
fix
XuyuEre Jul 10, 2023
96d0fa8
fix
XuyuEre Jul 10, 2023
a15561f
fix
XuyuEre Jul 10, 2023
39a8316
fix
XuyuEre Jul 10, 2023
b705b45
fix
XuyuEre Jul 10, 2023
38c09ad
Update 10-mqtt.html
XuyuEre Jul 10, 2023
1d3ae31
fix
XuyuEre Jul 10, 2023
95df8ea
fix
XuyuEre Jul 10, 2023
d7d3715
fix
XuyuEre Jul 10, 2023
d1bac57
fix
XuyuEre Jul 10, 2023
5d2acc6
fix
XuyuEre Jul 10, 2023
b98feb0
fix
XuyuEre Jul 10, 2023
fb817a8
fix
XuyuEre Jul 10, 2023
2cc5afe
fix、
XuyuEre Jul 10, 2023
ff99a37
fix
XuyuEre Jul 10, 2023
f6e529c
fix
XuyuEre Jul 10, 2023
848c27f
Update 80-template.html
XuyuEre Jul 10, 2023
e09d889
Update 89-trigger.html
XuyuEre Jul 10, 2023
378e2f9
Update 90-exec.html
XuyuEre Jul 10, 2023
d968e8e
Create rbe.html
XuyuEre Jul 10, 2023
cf79731
Update 10-function.html
XuyuEre Jul 10, 2023
546b339
Update 60-link.html
XuyuEre Jul 10, 2023
10b8aaa
Update 89-delay.html
XuyuEre Jul 10, 2023
de0d13a
Update messages.json
XuyuEre Jul 10, 2023
0df8a2e
Merge branch 'master' into patch-2
XuyuEre Jul 10, 2023
5905551
replace invalid JSON characters in runtime.json
Steve-Mcl Jul 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="inject">
<script type="text/html" data-help-name="inject">
<p>手动或定期得将消息注入流中。消息的有效荷载可以为多种类型,包括字符串,JavaScript对象或当前时间。</p>
<h3>输出</h3>
<dl class="message-properties">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="debug">
<script type="text/html" data-help-name="debug">
<p>在“调试”侧边栏选项卡和运行时日志中显示选定的消息属性。 默认情况下,它会显示<code>msg.payload</code>的值,但您也可以将其设置成显示任意属性,完整消息或JSONata表达式的结果。</p>
<h3>详细</h3>
<p>调试侧边栏会提供已发消息的结构化视图,方便您查询消息的结构。</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="complete">
<script type="text/html" data-help-name="complete">
<p>当另一个节点完成对消息的处理时触发流。</p>
<h3>详细</h3>
<p>如果一个节点通知运行时它已完成消息的处理,该节点可用于触发第二个流。</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="catch">
<script type="text/html" data-help-name="catch">
<p>捕获由同一标签页上的节点引发的错误。</p>
<h3>输出</h3>
<dl class="message-properties">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="status">
<script type="text/html" data-help-name="status">
<p>获取在同一标签页上的其他节点的状态消息。</p>
<h3>输出</h3>
<dl class="message-properties">
Expand Down

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed incorrect code tags; content in code tags does not need translation; modified some syntax that is more suitable for Chinese

XuyuEre#1

Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,39 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="link in">
<script type="text/html" data-help-name="link in">
<p>在流之间创建虚拟连线。</p>
<h3>详细</h3>
<p>该节点可以连接到任何标签页上存在的任何<code>link out</code>节点。连接后,它们的行为就像连接在一起。</p>
<p>仅当选择链接节点时,才会显示链接节点之间的链接。如果有指向另一个选项卡的链接,则显示一个虚拟节点。单击该虚拟节点将带您到相应的选项卡。</p>
<p><b>注意:</b>无法创建进入或离开子流的链接。</p>
</script>

<script type="text/x-red" data-help-name="link out">
<script type="text/html" data-help-name="link out">
<p>在流之间创建虚拟连线。</p>
<h3>详细</h3>
<p>该节点可以连接到任何标签页上存在的任何<code>link in</code>节点。连接后,它们的行为就像连接在一起。</p>
<p>仅当选择链接节点时,才会显示链接节点之间的链接。如果有指向另一个选项卡的链接,则显示一个虚拟节点。单击该虚拟节点将带您到相应的选项卡。</p>
<p><b>注意:</b>无法创建进入或离开子流的链接。</p>
</script>

<script type="text/html" data-help-name="link call">
<p>调用以 <code>link in</code> 节点开始的流程并传递响应。</p>
<h3>输入</h3>
<dl class="message-properties">
<dt class="optional">target<span class="property-type">字符串</span></dt>
<dd>当选项<b>链接类型</b>设置为“动态目标”时,将<code>msg.target</code>设置为您的<code>链接</code>节点的名称调用。</dd>
</dl>
<h3>详细</h3>
<p>此节点可以连接到任何选项卡上存在的<code>link in</code>节点。 连接到该节点的流必须以配置为“返回”模式的<code>link out</code>节点结束。</p>
<p>当该节点收到消息时,会将其传递到所连接的 <code>link in</code> 节点。 然后它等待响应,然后发送响应。</p>
<p>如果在配置的超时(默认 30 秒)内未收到响应,节点将记录一个错误,可以使用 <code>catch</code> 节点捕获该错误。</p>
<p>当选项<b>链接类型</b>设置为“动态目标”时,<code>msg.target</code>可用于按名称或名称调用<code>链接</code> ID。
<ul>
<li>如果</code>节点中存在具有相同id的<code>链接,则会调用</li>
<li>如果有两个或多个 <code>link in</code> 节点具有相同的名称,则会引发错误</li>
<li><code>链接调用</code>无法调用子流内的<code>link in</code>节点</li>
</ul>
</p>
连接到该节点的流必须以配置为“返回”模式的<code>link out</code>节点结束。</p>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="comment">
<script type="text/html" data-help-name="comment">
<p>可用于向流添加注释的节点。</p>
<h3>详细</h3>
<p>编辑面板接受Markdown语法。输入的文本将在信息侧面板中显示。</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="unknown">
<script type="text/html" data-help-name="unknown">
<p>您安装的Node-RED无法识别该节点的类型。</p>
<h3>详细</h3>
<p><i>如果在此状态下部署节点,其配置会被保存。但是在安装缺少的类型之前,流不会开始。</i></p>
Expand Down
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use words that have been translated in v3.1.0

fullmooooon@5112bb7

Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="function">
<script type="text/html" data-help-name="function">
<p>定义对接收到的消息进行处理的JavaScript代码(函数的主体)。</p>
<p>输入消息在名为<code>msg</code>的JavaScript对象中传递。</p>
<p>通常,<code>msg</code>对象将消息正文保留在<code>msg.payload</code>属性中。</p>
<p>该函数一般会返回一个消息对象(或多个消息对象),但也可以为了停止流而什么都不返回。</p>
<p><b>On Start</b> 选项卡包含每当节点启动时都会运行的代码。 <b>On Stop</b> 选项卡包含节点停止时将运行的代码。</p>
<p>如果 On Start 代码返回 Promise 对象,则在解决 Promise 之前节点不会开始处理消息。</p>
<h3>详细</h3>
<p>请参见<a target="_blank" href="http://nodered.org/docs/writing-functions.html">在线文档</a>来获得更多有关编写函数的信息。</p>
<h4>传送消息</h4>
Expand All @@ -28,6 +30,7 @@ <h4>传送消息</h4>
<li>单个消息对象 - 传递给连接到第一个输出的节点</li>
<li>消息对象数组,传递给连接到相应输出的节点</li>
</ul>
<p>注意:设置代码在节点初始化期间执行。 因此,如果在setup选项卡中调用<code>node.send</code>,后续节点可能无法接收到该消息。</p>
<p>如果数组元素是数组,则将多个消息发送到相应的输出。</p>
<p>无论return方法是单个值还是数组元素,如果返回值为null,则不会发送任何消息。</p>
<h4>日志输出和错误处理</h4>
Expand All @@ -45,7 +48,8 @@ <h4>访问节点信息</h4>
<ul>
<li><code>node.id</code> - 节点的ID</li>
<li><code>node.name</code> - 节点的名称</li>
</ul>
<li><code>node.outputCount</code> - 节点输出数量</li>
</ul>
<h4>使用环境变量</h4>
<p>环境变量可以通过<code>env.get("MY_ENV_VAR")</code>来进行访问。</p>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="switch">
<script type="text/html" data-help-name="switch">
<p>按属性值来分配消息的传送路线。</p>
<h3>详细</h3>
<p>根据接收到的消息评估指定的规则,然后将消息发送到与匹配的规则相对应的输出端口。</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="change">
<script type="text/html" data-help-name="change">
<p>设置,更改,删除或移动消息,流上下文或全局上下文的属性。</p>
<p>如果指定了多个规则,则将按定义的顺序来应用它们。</p>
<h3>详细</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="range">
<script type="text/html" data-help-name="range">
<p>将数值映射为另一个区间的数值</p>
<h3>输入</h3>
<dl class="message-properties">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="template">
<script type="text/html" data-help-name="template">
<p>根据提供的模板设置属性。</p>
<h3>输入</h3>
<dl class="message-properties">
<dt>msg <span class="property-type">object</span></dt>
<dd>一个msg对象,其中包含着用于填充模板的信息。</dd>
<dt class="optional">template <span class="property-type">string</span></dt>
<dt class="optional">template <span class="property-type">字符串</span></dt>
<dd>由<code>msg.payload</code>填充的模板。如果未在编辑面板中配置,则可以将设为msg的属性。</dd>
</dl>
<h3>Outputs</h3>
<h3>输出</h3>
<dl class="message-properties">
<dt>msg <span class="property-type">object</span></dt>
<dd>由来自传入msg的属性来填充已配置的模板后输出的带有属性的msg。</dd>
</dl>
<h3>详细</h3>
<p>默认情况下使用<i><a href="http://mustache.github.io/mustache.5.html" target="_blank">mustache</a></i>格式。如有需要也可以切换其他格式。</p>
<p>例如:
<p>例如,当模板为:
<pre>Hello {{payload.name}}. Today is {{date}}</pre>
<p>receives a message containing:
<p>收到一条消息,其中包含:
<pre>{
date: "Monday",
payload: {
Expand All @@ -42,5 +42,11 @@ <h3>详细</h3>
<p>输出的消息将会是:
<pre>Hello Fred. Today is Monday</pre>
<p>也可以使用流上下文或全局上下文中的属性:<code>{{flow.name}}</code>或者<code>{{global.name}}</code>,或者为了持久储存<code>store</code>,可以使用<code>{{flow[store].name}}</code>或<code>{{global[store].name}}</code>。
<p><b>注意:</b>默认情况下,<i>mustache</i>将在其替换的值中转义任何非字母数字或HTML实体。为了防止这种情况,请使用<code>{{{triple}}}</code>大括号。
<p><b>注意:</b>默认情况下,<i>mustache</i>将在其替换的值中转义任何非字母数字或HTML实体。为了防止这种情况,请使用<code>{{{triple}}}</code>大括号。</p>
<p>如果您需要在内容中使用<code>{{ }}</code>,您可以更改用于标记模板化部分的字符。
例如,要使用<code>[[ ]]</code>代替,请将以下行添加到模板顶部:</p>
<pre>{{=[[ ]]=}}</pre>
<h4>使用环境变量</h4>
<p>模板节点可以使用以下语法访问环境变量:</p>
<pre>My favourite colour is {{env.COLOUR}}.</pre>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,29 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="delay">
<script type="text/html" data-help-name="delay">
<p>对通过节点的消息进行延迟发送或限制。</p>
<h3>输入</h3>
<dl class="message-properties">
<dt class="optional">delay <span class="property-type">数值</span></dt>
<dd>设置要应用于消息的延迟(以毫秒为单位)。仅当节点配置为允许消息去覆盖配置的默认延迟间隔时,此选项才适用。</dd>
<dt class="optional">rate <span class="property-type">数值</span></dt>
<dd>设置消息之间的速率值(以毫秒为单位)。 当该节点收到包含 <code>msg.rate</code> 值(以毫秒为单位)的消息时,它会覆盖节点配置中定义的现有速率值。 仅当节点配置为允许消息覆盖配置的默认速率间隔时,此选项才适用。</dd>
<dt class="optional">reset</dt>
<dd>如果接收到的消息将此属性设置为任何值,则将清空该节点保留的所有的未发送消息。</dd>
<dt class="optional">flush</dt>
<dd>如果接收到的消息的此属性设置为任何值,则将立即发送该节点保留的所有未发送消息。</dd>
<dd>如果收到的消息将此属性设置为数值,则将立即释放该多条消息。 如果设置为任何其他类型(例如布尔值),则立即发送节点持有的所有未完成的消息。</dd>
<dt class="optional">toFront</dt>
<dd>在速率限制模式下,如果收到的消息将此属性设置为布尔值<code>true</code>,则该消息将被推送到队列的前面,然后将被释放。 这可以与 <code>msg.flush=1</code> 结合使用以立即重新发送。
</dd>
</dl>
<h3>详细</h3>
<p>当配置为延迟发送消息时,延迟间隔可以是一个固定值,一个范围内的随机值或为每个消息动态设置。</p>
<p>当配置为对消息进行限制时,它们的传递将分散在配置的时间段内。状态显示队列中当前的消息数。可以选择在中间消息到达时丢弃它们。</p>
<p>速率限制可以应用于所有消息,也可以根据<code>msg.topic</code>的值来进行分组。分组时,中间消息将会被自动删除。在每个时间间隔,节点可以释放所有主题的最新消息,或释放下一个主题的最新消息。</p>
<p>当配置为延迟消息时,延迟间隔可以是固定值、一定范围内的随机值或为每个消息动态设置。 每条消息都会根据其到达时间独立于任何其他消息进行延迟。 </p>
<p>当配置为限制消息速率时,它们的传递将分布在配置的时间段内。 状态显示当前队列中的消息数。 它可以选择在中间消息到达时丢弃它们。</p>
<p>如果设置为允许覆盖速率,则新速率将立即应用,并将一直有效,直到再次更改、重置节点或重新启动流程。</p>
<p>速率限制可以应用于所有消息,或根据其 <code>msg.topic</code> 值对它们进行分组。 分组时,中间消息会自动丢弃。 在每个时间间隔,节点可以发布所有主题的最新消息,或者发布下一个主题的最新消息。 </p>
<p><b>注意</b>:在速率限制模式下,可以通过 <i>settings.js</i> 文件中的属性设置最大队列深度。 例如<code>nodeMessageBufferMaxLength:1000,</code></p>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="trigger">
<script type="text/html" data-help-name="trigger">
<p>触发后,将会发送一条消息。如果被拓展或重置,则可以选择发送第二条消息。</p>

<h3>输入</h3>
Expand All @@ -26,11 +26,12 @@ <h3>输入</h3>
</dl>

<h3>详细</h3>
<p>该节点可用于在流中创建一个超时。 默认情况下,当它收到一条消息时,它将发送一条带有<code>1</code>的有效荷载的消息。然后它将等待250毫秒,再发送第二条消息,其有效荷载为<code>0</code>。这可以用于使连接到Raspberry Pi GPIO引脚的LED闪烁等例子上。</p>
<p>该节点可用于在流中创建一个超时。 默认情况下,当它收到一条消息时,它将发送一条带有<code>1</code>的<code>payload</code>的消息。然后它将等待250毫秒,再发送第二条消息,<code>payload</code>为<code>0</code>。这可以用于使连接到树莓派 GPIO引脚的LED闪烁等例子上。</p>
<p>可以将发送的每个消息的有效荷载配置为各种值,包括不发送任何内容的选项。例如,将初始消息设置为<i>nothing</i>,然后选择将计时器与每个收到的消息一起扩展的选项,则该节点将充当看门狗计时器;仅在设置的间隔内未收到任何消息时才发送消息。</p>
<p>如果设置为<i>字符串</i>类型,则该节点支持<i>mustache</i>模板语法。</p>
<p>如果节点中启用了该选项,则可以通过<code> msg.delay </code>覆盖发送消息之间的延迟。该值必须以毫秒为单位。</p>
<p>如果节点收到具有<code>reset</code>属性或与节点中配置的匹配的<code>有效荷载</code>的消息,则将清除当前正在进行的任何超时或重复,并且不会触发任何消息。</p>
<p>如果节点收到具有<code>reset</code>属性或与节点中配置的匹配的<code>payload</code>的消息,则将清除当前正在进行的任何超时或重复,并且不会触发任何消息。</p>
<p>可以将节点配置为以固定的时间间隔重新发送消息,直到被收到的消息重置为止。</p>
<p>(可选)可以将节点配置为将带有<code>msg.topic</code>的消息视为独立的流。</p>
<p>或者,可以将节点配置为将消息视为单独的流,并使用 msg 属性来标识每个流。默认 <code>msg.topic</code>。</p>
<p>状态指示节点当前处于活动状态。 如果使用多个流,则状态指示所持有的流的数量。</p>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<script type="text/x-red" data-help-name="exec">
<script type="text/html" data-help-name="exec">
<p>运行系统命令并返回其输出。</p>
<p>可以将节点配置为等待命令完成,或者在命令生成时发送其输出。</p>
<p>运行的命令可以在节点中配置,也可以由收到的消息提供。</p>
Expand All @@ -31,7 +31,7 @@ <h3>输入</h3>

<h3>输出</h3>
<ol class="node-ports">
<li>标准输出(stdout)
<li>标准输出
<dl class="message-properties">
<dt>payload <span class="property-type">字符串</span></dt>
<dd>命令的标准输出。</dd>
Expand All @@ -41,7 +41,7 @@ <h3>输出</h3>
<dd>(仅执行模式)一个返回代码对象的副本(在端口3上也可用)</dd>
</dl>
</li>
<li>标准error输出(stderr)
<li>标准错误
<dl class="message-properties">
<dt>payload <span class="property-type">字符串</span></dt>
<dd>命令的标准错误输出。</dd>
Expand All @@ -66,6 +66,7 @@ <h3>详细</h3>
<p>带空格的命令或参数应该用引号引起来:<code>“这是一个参数”</code></p>
<p>返回的<code>有效荷载</code>通常是<i>字符串</i>类型,除非检测到非UTF8字符,在这种情况下,它会是<i>buffer</i>类型。</p>
<p>节点处于活动状态时,该节点的状态图标和PID将可见。对此更改可以通过<code>Status</code>节点读取。</p>
<p><code>隐藏控制台</code> 选项将隐藏通常在Windows系统上显示的进程控制台。</p>
<h4>杀死进程</h4>
<p>发送<code>msg.kill</code>将杀死一个活动进程。<code>msg.kill</code>应该是包含要发送的信号类型的字符串,例如<code>SIGINT</code>,<code>SIGQUIT</code>或<code>SIGHUP</code>。如果设置为空字符串,则默认为<code>SIGTERM</code>。</p>
<p>如果节点有多个进程在运行,则还必须设置<code>msg.pid</code>并设置要杀死的PID的值。</p>
Expand Down