sensors i18n support

10.3.x-maintenance
cTn 2014-05-08 11:09:23 +02:00
parent 36a47f5abd
commit ef2e8086d5
2 changed files with 20 additions and 11 deletions

View File

@ -413,5 +413,15 @@
},
"motorsNotice": {
"message": "<strong>Motor Test Mode Notice:</strong><br />Moving the sliders will cause the motors to <strong>spin up</strong>.<br />In order to prevent injury <strong style=\"color: red\">remove ALL propellers</strong> before using this feature.<br />If you understand these instructions check the <strong>box</strong> below to <strong style=\"color: green\">enable</strong> motor test.<br /><br /><label>Check: <input type=\"checkbox\" /></label>"
},
"sensorsInfo": {
"message": "Keep in mind that using fast update periods and rendering multiple graphs at the same time is resource heavy and will burn your battery quicker if you use a laptop.<br />We recommend to only render graphs for sensors you are interested in while using reasonable update periods."
},
"sensorsRefresh": {
"message": "Refresh:"
},
"sensorsScale": {
"message": "Scale:"
}
}

View File

@ -1,10 +1,9 @@
<div class="tab-sensors">
<div class="info">
<p>
<p i18n="sensorsInfo">
Keep in mind that using fast update periods and rendering multiple graphs at the same time
is resource heavy and will burn your battery quicker if you use a laptop.<br />
We recommend to only render graphs for sensors you are interested in while using reasonable
update periods.<br />
We recommend to only render graphs for sensors you are interested in while using reasonable update periods.
</p>
<div class="checkboxes">
<label>Gyroscope <input type="checkbox" name="gyro_on" /></label>
@ -18,7 +17,7 @@
<div class="plot_control">
<div class="title">Gyroscope - deg/s</div>
<dl>
<dt>Refresh:</dt>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
<select name="gyro_refresh_rate">
<option value="10">10 ms</option>
@ -32,7 +31,7 @@
<option value="1000">1000 ms</option>
</select>
</dd>
<dt>Scale:</dt>
<dt i18n="sensorsScale"></dt>
<dd class="scale">
<select name="gyro_scale">
<option value="100">100</option>
@ -59,7 +58,7 @@
<div class="plot_control">
<div class="title">Accelerometer - g</div>
<dl>
<dt>Refresh:</dt>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
<select name="accel_refresh_rate">
<option value="10">10 ms</option>
@ -73,7 +72,7 @@
<option value="1000">1000 ms</option>
</select>
</dd>
<dt>Scale:</dt>
<dt i18n="sensorsScale"></dt>
<dd class="scale">
<select name="accel_scale">
<option value="0.5">0.5</option>
@ -99,7 +98,7 @@
<div class="plot_control">
<div class="title">Magnetometer - Ga</div>
<dl>
<dt>Refresh:</dt>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
<select name="mag_refrash_rate">
<option value="10">10 ms</option>
@ -113,7 +112,7 @@
<option value="1000">1000 ms</option>
</select>
</dd>
<dt>Scale:</dt>
<dt i18n="sensorsScale"></dt>
<dd class="scale">
<select name="mag_scale">
<option value="0.5">0.5</option>
@ -138,7 +137,7 @@
<div class="plot_control">
<div class="title">Barometer - meters</div>
<dl>
<dt>Refresh:</dt>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
<select name="baro_refresh_rate">
<option value="10">10 ms</option>
@ -168,7 +167,7 @@
<div class="plot_control">
<div class="title">Debug 1</div>
<dl>
<dt>Refresh:</dt>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
<select name="debug_refresh_rate">
<option value="10">10 ms</option>