Add Japanese translations for random node (#658)

This commit is contained in:
Kazuhito Yokoi 2020-06-17 17:02:47 +09:00 committed by GitHub
parent 34fc79ddb6
commit 7cec44d353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 50 additions and 18 deletions

View File

@ -0,0 +1,7 @@
<script type="text/html" data-help-name="random">
<p>Generates a random number between a low and high value.</p>
<p>If set to return an integer it can <i>include</i> both the low and high values.
<code>min <= n <= max</code></p>
<p>If set to return a floating point value it will be from the low value, up to, but
not including the high value. <code>min <= n < max</code></p>
</script>

View File

@ -0,0 +1,13 @@
{
"random": {
"label": {
"generate": "Generate",
"wholeNumber": "a whole number - integer",
"realNumber": "a real number - floating point",
"from": "From",
"lowestNumber": "lowest number",
"to": "To",
"highestNumber": "highest number"
}
}
}

View File

@ -0,0 +1,7 @@
<script type="text/html" data-help-name="random">
<p>最小値と最大値との間の乱数を生成します。</p>
<p>整数値を返すように設定した場合は、乱数には最大値と最小値の両方が<i>含まれます</i>
<code>min <= n <= max</code></p>
<p>浮動小数点値を返すように設定した場合、乱数は最小値から最大値未満の値を含み、最大値は含まれません。
<code>min <= n < max</code></p>
</script>

View File

@ -0,0 +1,13 @@
{
"random": {
"label": {
"generate": "生成",
"wholeNumber": "整数 - 整数値",
"realNumber": "実数 - 浮動小数点",
"from": "最小",
"lowestNumber": "最小値",
"to": "最大",
"highestNumber": "最大値"
}
}
}

View File

@ -1,37 +1,29 @@
<script type="text/x-red" data-template-name="random">
<script type="text/html" data-template-name="random">
<div class="form-row">
<label for="node-input-property"><i class="fa fa-ellipsis-h"></i> <span data-i18n="node-red:common.label.property"></span></label>
<input type="text" id="node-input-property" style="width:70%;"/>
</div>
<div class="form-row">
<label for="node-input-inte"><i class="fa fa-random"></i> Generate</label>
<label for="node-input-inte"><i class="fa fa-random"></i> <span data-i18n="random.label.generate"></label>
<select type="text" id="node-input-inte" style="width:70%;">
<option value="true">a whole number - integer</option>
<option value="false">a real number - floating point</option>
<option value="true" data-i18n="random.label.wholeNumber"></option>
<option value="false" data-i18n="random.label.realNumber"></option>
</select>
</div>
<div class="form-row">
<label for="node-input-low"><i class="fa fa-arrow-down"></i> From</label>
<input type="text" id="node-input-low" placeholder="lowest number" style="width:70%;">
<label for="node-input-low"><i class="fa fa-arrow-down"></i> <span data-i18n="random.label.from"></label>
<input type="text" id="node-input-low" data-i18n="[placeholder]random.label.lowestNumber" style="width:70%;">
</div>
<div class="form-row">
<label for="node-input-high"><i class="fa fa-arrow-up"></i> To</label>
<input type="text" id="node-input-high" placeholder="highest number" style="width:70%;">
<label for="node-input-high"><i class="fa fa-arrow-up"></i> <span data-i18n="random.label.to"></label>
<input type="text" id="node-input-high" data-i18n="[placeholder]random.label.highestNumber" style="width:70%;">
</div>
<br/>
<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" style="width:70%;">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name" style="width:70%;">
</div>
</script>
<script type="text/x-red" data-help-name="random">
<p>Generates a random number between a low and high value.</p>
<p>If set to return an integer it can <i>include</i> both the low and high values.
<code>min <= n <= max</code></p>
<p>If set to return a floating point value it will be from the low value, up to, but
not including the high value. <code>min <= n < max</code></p>
</script>
<script type="text/javascript">
RED.nodes.registerType('random',{