1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Modify ping, base64 and msgpack node to support multi-language (#364)

Thanks again Yokoi-san

* Internationalize ping node

* Internationalize base64 node

* Internationalize msgpack node
This commit is contained in:
Kazuhito Yokoi 2017-11-11 00:17:05 +09:00 committed by Dave Conway-Jones
parent 482cfea1de
commit 377cfbba92
5 changed files with 24 additions and 8 deletions

View File

@ -1,16 +1,16 @@
<script type="text/x-red" data-template-name="ping">
<div class="form-row">
<label for="node-input-host"><i class="fa fa-dot-circle-o"></i> Target</label>
<label for="node-input-host"><i class="fa fa-dot-circle-o"></i> <span data-i18n="ping.label.target"></span></label>
<input type="text" id="node-input-host" placeholder="www.google.com">
</div>
<div class="form-row">
<label for="node-input-timer"><i class="fa fa-repeat"></i> Ping (S)</label>
<label for="node-input-timer"><i class="fa fa-repeat"></i> <span data-i18n="ping.label.ping"></label>
<input type="text" id="node-input-timer" placeholder="20">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div>
</script>

View File

@ -0,0 +1,8 @@
{
"ping": {
"label": {
"target": "Target",
"ping": "Ping (S)"
}
}
}

View File

@ -0,0 +1,8 @@
{
"ping": {
"label": {
"target": "対象",
"ping": "Ping (秒)"
}
}
}

View File

@ -1,8 +1,8 @@
<script type="text/x-red" data-template-name="base64">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div>
</script>

View File

@ -1,8 +1,8 @@
<script type="text/x-red" data-template-name="msgpack">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div>
</script>