2018-12-22 09:22:25 +01:00
|
|
|
<!--
|
|
|
|
Copyright JS Foundation and other contributors, http://js.foundation
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
2020-01-15 03:40:48 +01:00
|
|
|
<script type="text/html" data-help-name="template">
|
rework of DE translation (#2806)
* started rework of translation to DE, added translation rules and dictionary
* reworks DE translation of JSONata /editor-client/locales/de/jsonata.json
* rework DE translation of editor-client
* moved /editor-client/locales/de/README.md to Wiki https://github.com/node-red/node-red/wiki/Design:-i18n-de
* Update README.md
* Update README.md
* Create README.md
* Create README.md
* fixed #2: "Sie müssen ..., um ... zu können"
* fixed #3
* fixed #4 and removed unnecessary spaces
* fixed #5
* fixed #6, added missing dots, removed unnecessary spaces
* fixed #7, #8, #9
* fixed #10, #11, #12, #13, #14, #15
* fixed #17, #18, 19
* fixed #19
* moved /editor-client/locales/de/dictionary.csv to https://github.com/heikokue/node-red-designs/blob/i18n-de/designs/i18n-de/dictionary.csv
* reworked DE translation of runtime
* fine-tuned DE translation of editor-client
* reworked DE translation of common nodes, fine-tuned editor-client
* reworked DE translation of all nodes, fine-tuned editor-client, intotips, jsonata & runtime
* small i18n fixes
2021-03-12 14:07:12 +01:00
|
|
|
<p>Festlegen einer Eigenschaft anhand einer Vorlage (template).</p>
|
|
|
|
<h3>Eingangsdaten</h3>
|
|
|
|
<dl class="message-properties">
|
|
|
|
<dt>msg<span class="property-type">object</span></dt>
|
|
|
|
<dd>msg-Objekt mit Informationen zum Befüllen der Vorlage</dd>
|
|
|
|
<dt class="optional">template<span class="property-type">string</span></dt>
|
|
|
|
<dd>Mit msg.payload zu befüllende Vorlage.
|
|
|
|
Falls nicht im Editorfenster angegeben, kann die Vorlage auch als Eigenschaft von msg vorgegeben werden.</dd>
|
|
|
|
</dl>
|
|
|
|
<h3>Ausgangsdaten</h3>
|
|
|
|
<dl class="message-properties">
|
|
|
|
<dt>msg<span class="property-type">object</span></dt>
|
|
|
|
<dd>Nachricht auf Basis der Vorlage und gefüllt mit Eigenschaften aus der eingehenden Nachricht</dd>
|
|
|
|
</dl>
|
|
|
|
<h3>Details</h3>
|
|
|
|
<p>Die Vorlage verwendet standardmäßig das
|
|
|
|
<i><a href="http://mustache.github.io/mustache.5.html" target="_blank">Mustache</a></i>-Format,
|
|
|
|
was aber bei Bedarf ausgeschaltet werden kann.</p>
|
|
|
|
<p>Beispiel: Wenn die Vorlage</p>
|
|
|
|
<pre>Hallo {{payload.name}}. Heute ist {{date}}</pre>
|
|
|
|
<p>die Nachricht</p>
|
|
|
|
<pre>
|
|
|
|
{
|
2019-10-10 11:34:10 +02:00
|
|
|
date: "Montag",
|
|
|
|
payload: {
|
|
|
|
name: "Fred"
|
|
|
|
}
|
rework of DE translation (#2806)
* started rework of translation to DE, added translation rules and dictionary
* reworks DE translation of JSONata /editor-client/locales/de/jsonata.json
* rework DE translation of editor-client
* moved /editor-client/locales/de/README.md to Wiki https://github.com/node-red/node-red/wiki/Design:-i18n-de
* Update README.md
* Update README.md
* Create README.md
* Create README.md
* fixed #2: "Sie müssen ..., um ... zu können"
* fixed #3
* fixed #4 and removed unnecessary spaces
* fixed #5
* fixed #6, added missing dots, removed unnecessary spaces
* fixed #7, #8, #9
* fixed #10, #11, #12, #13, #14, #15
* fixed #17, #18, 19
* fixed #19
* moved /editor-client/locales/de/dictionary.csv to https://github.com/heikokue/node-red-designs/blob/i18n-de/designs/i18n-de/dictionary.csv
* reworked DE translation of runtime
* fine-tuned DE translation of editor-client
* reworked DE translation of common nodes, fine-tuned editor-client
* reworked DE translation of all nodes, fine-tuned editor-client, intotips, jsonata & runtime
* small i18n fixes
2021-03-12 14:07:12 +01:00
|
|
|
}
|
|
|
|
</pre>
|
|
|
|
<p>empfängt, wird die resultierende Ausgangsnachricht wie folgt sein:</p>
|
|
|
|
<pre>Hallo Fred. Heute ist Montag</pre>
|
|
|
|
<p>Es ist möglich, eine Eigenschaft aus dem Flowkontext oder dem globalen Kontext zu verwenden,
|
|
|
|
indem <code>{{flow.name}}</code> oder <code>{{global.name}}</code> verwendet wird.
|
|
|
|
Oder für den persistenten Speicher <code>store</code> kann <code>{{flow[store].name}}</code> oder
|
|
|
|
<code>{{global[store].name}}</code> verwendet werden.
|
2021-03-16 10:52:16 +01:00
|
|
|
<p><b>Hinweis</b>: Standardmäßig werden bei <i>Mustache</i> sog. <i>Escaper</i>
|
rework of DE translation (#2806)
* started rework of translation to DE, added translation rules and dictionary
* reworks DE translation of JSONata /editor-client/locales/de/jsonata.json
* rework DE translation of editor-client
* moved /editor-client/locales/de/README.md to Wiki https://github.com/node-red/node-red/wiki/Design:-i18n-de
* Update README.md
* Update README.md
* Create README.md
* Create README.md
* fixed #2: "Sie müssen ..., um ... zu können"
* fixed #3
* fixed #4 and removed unnecessary spaces
* fixed #5
* fixed #6, added missing dots, removed unnecessary spaces
* fixed #7, #8, #9
* fixed #10, #11, #12, #13, #14, #15
* fixed #17, #18, 19
* fixed #19
* moved /editor-client/locales/de/dictionary.csv to https://github.com/heikokue/node-red-designs/blob/i18n-de/designs/i18n-de/dictionary.csv
* reworked DE translation of runtime
* fine-tuned DE translation of editor-client
* reworked DE translation of common nodes, fine-tuned editor-client
* reworked DE translation of all nodes, fine-tuned editor-client, intotips, jsonata & runtime
* small i18n fixes
2021-03-12 14:07:12 +01:00
|
|
|
bei allen nicht-numerischen und HTML-Entitäten erzeugt.
|
2021-03-16 10:52:16 +01:00
|
|
|
Z.B. <code>&</code> wird durch <code>&amp;</code> ersetzt.
|
rework of DE translation (#2806)
* started rework of translation to DE, added translation rules and dictionary
* reworks DE translation of JSONata /editor-client/locales/de/jsonata.json
* rework DE translation of editor-client
* moved /editor-client/locales/de/README.md to Wiki https://github.com/node-red/node-red/wiki/Design:-i18n-de
* Update README.md
* Update README.md
* Create README.md
* Create README.md
* fixed #2: "Sie müssen ..., um ... zu können"
* fixed #3
* fixed #4 and removed unnecessary spaces
* fixed #5
* fixed #6, added missing dots, removed unnecessary spaces
* fixed #7, #8, #9
* fixed #10, #11, #12, #13, #14, #15
* fixed #17, #18, 19
* fixed #19
* moved /editor-client/locales/de/dictionary.csv to https://github.com/heikokue/node-red-designs/blob/i18n-de/designs/i18n-de/dictionary.csv
* reworked DE translation of runtime
* fine-tuned DE translation of editor-client
* reworked DE translation of common nodes, fine-tuned editor-client
* reworked DE translation of all nodes, fine-tuned editor-client, intotips, jsonata & runtime
* small i18n fixes
2021-03-12 14:07:12 +01:00
|
|
|
Um dies zu verhindern, müssen <code>{{{dreifache}}}</code> Klammern verwendet werden.
|
2018-12-22 09:22:25 +01:00
|
|
|
</script>
|