1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-20 14:55:15 +03:00

sensors i18n support

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