Add Japanese translations for daemon Node (#843)

* Separate language resources

* Add Japanese translations for daemon Node
This commit is contained in:
Wataru Sato
2021-10-19 05:12:00 +09:00
committed by GitHub
parent e6b9da52aa
commit eec57351d0
5 changed files with 128 additions and 32 deletions

View File

@@ -2,51 +2,50 @@
<script type="text/html" data-template-name="daemon">
<div class="form-row">
<label for="node-input-command"><i class="fa fa-file"></i> Command</label>
<input type="text" id="node-input-command" placeholder="command">
<label for="node-input-command"><i class="fa fa-file"></i><span data-i18n="daemon.label.command"></span></label>
<input type="text" id="node-input-command" data-i18n="[placeholder]daemon.label.command">
</div>
<div class="form-row">
<label for="node-input-args"><i class="fa fa-list"></i> Arguments</label>
<input type="text" id="node-input-args" placeholder="space separated arguments">
<label for="node-input-args"><i class="fa fa-list"></i><span data-i18n="daemon.label.arguments"></span></label>
<input type="text" id="node-input-args" data-i18n="[placeholder]daemon.placeholder.arguments">
</div>
<div class="form-row">
<label>&nbsp;</label>
<input type="checkbox" id="node-input-autorun" style="display:inline-block; width: auto; vertical-align:baseline;">
<label for="node-input-autorun" style="width: 70%;">Auto-start daemon on deploy ?</label>
<label for="node-input-autorun" style="width: 70%;"><span data-i18n="daemon.label.autostart"></span></label>
</div>
<div class="form-row">
<label>&nbsp;</label>
<input type="checkbox" id="node-input-cr" style="display:inline-block; width:auto; vertical-align:baseline;">
<label for="node-input-cr" style="width: 70%;">Add [enter] to every message sent ?</label>
<label for="node-input-cr" style="width: 70%;"><span data-i18n="daemon.label.addenter"></span></label>
</div>
<div class="form-row">
<label>&nbsp;</label>
<input type="checkbox" id="node-input-redo" style="display:inline-block; width:auto; vertical-align:baseline;">
<label for="node-input-redo" style="width: 70%;">Relaunch command on exit or error ?</label>
<label for="node-input-redo" style="width: 70%;"><span data-i18n="daemon.label.relaunch"></span></label>
</div>
<div class="form-row">
<label for="node-input-op"> and</label>
<label for="node-input-op"><span data-i18n="daemon.label.reply"></span></label>
<select id="node-input-op" style='width:70%'>
<option value="buffer">leave reply as a buffer</option>
<option value="string">format reply as a string</option>
<option value="lines">output lines of text</option>
<option value="number">try to convert reply to a number</option>
<option value="buffer" data-i18n="[label]daemon.option.reply.buffer"></option>
<option value="string" data-i18n="[label]daemon.option.reply.string"></option>
<option value="lines" data-i18n="[label]daemon.option.reply.lines"></option>
<option value="number" data-i18n="[label]daemon.option.reply.number"></option>
</select>
</div>
<div class="form-row">
<label for="node-input-closer"> on close</label>
<label for="node-input-closer"><span data-i18n="daemon.label.onclose"></span></label>
<select id="node-input-closer" style='width:70%'>
<option value="SIGKILL">kill process immediately</option>
<option value="SIGTERM">try to terminate process</option>
<option value="SIGINT">try to interrupt process</option>
<option value="SIGKILL" data-i18n="[label]daemon.option.onclose.sigkill"></option>
<option value="SIGTERM" data-i18n="[label]daemon.option.onclose.sigterm"></option>
<option value="SIGINT" data-i18n="[label]daemon.option.onclose.sigint"></option>
</select>
</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>
<div class="form-tips"><b>Note:</b> The command should just be the actual command.
All parameters should be passed in as arguments.</div>
<div class="form-tips"><span data-i18n="[html]daemon.tip"></span></div>
</script>
<script type="text/javascript">