1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-21 23:35:22 +03:00

More i18n

More strings passed to the messages file for i18n.
This commit is contained in:
Miguel Angel Mulero Martinez 2017-12-18 20:21:38 +01:00
parent 148178e109
commit 65728c913a
11 changed files with 158 additions and 47 deletions

View file

@ -164,6 +164,13 @@
"message": "Modes"
},
"logActionHide": {
"message": "Hide Log"
},
"logActionShow": {
"message": "Show Log"
},
"serialPortOpened": {
"message": "Serial port <span class=\"message-positive\">successfully</span> opened with ID: $1"
},
@ -303,6 +310,9 @@
"message": "Welcome to <strong>Betaflight - Configurator</strong>, a utility designed to simplify updating, configuring and tuning of your flight controller."
},
"defaultWelcomeHead": {
"message": "Hardware"
},
"defaultWelcomeText": {
"message": "The application supports all hardware that can run Betaflight. Check flash tab for full list of hardware.<br><br> <a href=\"https://chrome.google.com/webstore/detail/betaflight-blackbox-explo/canpiagfkeefejklcojkhojdijglnghc\" target=\"_blank\"> Download Betaflight Blackbox</a><br /><br />The firmware source code can be downloaded from <a href=\"https://github.com/betaflight/betaflight\" title=\"www.github.com\" target=\"_blank\">here</a><br />The newest binary firmware image is available <a href=\"https://github.com/betaflight/betaflight/releases\" title=\"www.github.com\" target=\"_blank\">here</a><br /><br />Latest <a href=\"http://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx\" title=\"http://www.silabs.com\" target=\"_blank\">CP210x Drivers</a> can be downloaded from <a href=\"http://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx\" title=\"http://www.silabs.com\" target=\"_blank\">here</a><br />Latest <a href=\"http://www.st.com/web/en/catalog/tools/PF257938\" title=\"http://www.st.com\" target=\"_blank\">STM USB VCP Drivers</a> can be downloaded from <a href=\"http://www.st.com/web/en/catalog/tools/PF257938\" title=\"http://www.st.com\" target=\"_blank\">here</a><br />Latest <a href=\"http://zadig.akeo.ie/\" title=\"http://zadig.akeo.ie\" target=\"_blank\">Zadig</a> for Windows USB driver installation can be downloaded from <a href=\"http://zadig.akeo.ie/\" title=\"http://zadig.akeo.ie\" target=\"_blank\">here</a><br />"
},
@ -312,6 +322,9 @@
"defaultContributingText": {
"message": "If you would like to help make Betaflight even better you can help in many ways, including:<br /><ul><li>Answering other users questions on the forums and IRC.</li><li>Contributing code to the firmware and configurator - new features, fixes, improvements</li><li>Testing <a href=\"https://github.com/Betaflight/betaflight/pulls\" target=\"_blank\">new features/fixes</a> and providing feedback.</li><li>Helping out with <a href=\"https://github.com/betaflight/betaflight/issues\" target=\"_blank\">issues and commenting on feature requests</a>.</li><li></li></ul>"
},
"defaultChangelogAction": {
"message": "Changelog"
},
"defaultChangelogHead": {
"message": "Configurator - Changelog"
},
@ -385,6 +398,9 @@
"initialSetupCalibrateMagText": {
"message": "Move multirotor at least <strong>360</strong> degrees on all axis of rotation, you have 30 seconds to perform this task"
},
"initialSetupButtonCalibratingText": {
"message": "Calibrating..."
},
"initialSetupButtonReset": {
"message": "Reset Settings"
},
@ -712,6 +728,9 @@
"configurationSensorAlignmentMag": {
"message": "MAG Alignment"
},
"configurationSensorAlignmentDefaultOption": {
"message": "Default"
},
"configurationAccelTrims": {
"message": "Accelerometer Trim"
},
@ -1190,12 +1209,18 @@
"receiverChannelMap": {
"message": "Channel Map"
},
"receiverChannelDefaultOption": {
"message": "Default"
},
"receiverChannelMapTitle": {
"message": "You can define your own channel map by clicking inside the box"
},
"receiverRssiChannel": {
"message": "RSSI Channel"
},
"receiverRssiChannelDisabledOption": {
"message": "Disabled"
},
"receiverRefreshRateTitle": {
"message": "Graph refresh rate"
},
@ -1523,7 +1548,16 @@
"gpsSignalStr": {
"message": "Signal Strength"
},
"gpsSignalSatId": {
"message": "Sat ID"
},
"gpsSignalQty": {
"message": "Qty"
},
"motorsText":{
"message": "Motors"
},
"motorNumber1":{
"message": "Motor - 1"
},
@ -1549,6 +1583,9 @@
"message": "Motor - 8"
},
"servosText":{
"message": "Servos"
},
"servoNumber1":{
"message": "Servo - 1"
},
@ -1573,10 +1610,19 @@
"servoNumber8":{
"message": "Servo - 8"
},
"motorsResetMaximumButton":{
"message": "Reset"
},
"motorsResetMaximum":{
"message": "Reset overtime maximum"
},
"motorsSensorGyroSelect":{
"message": "gyro"
},
"motorsSensorAccelSelect":{
"message": "accel"
},
"motorsMaster": {
"message": "Master"
},
@ -1596,6 +1642,42 @@
"sensorsScale": {
"message": "Scale:"
},
"sensorsGyroSelect": {
"message": "Gyroscope"
},
"sensorsAccelSelect": {
"message": "Accelerometer"
},
"sensorsMagSelect": {
"message": "Magnetometer"
},
"sensorsBaroSelect": {
"message": "Barometer"
},
"sensorsSonarSelect": {
"message": "Sonar"
},
"sensorsDebugSelect": {
"message": "Debug"
},
"sensorsGyroTitle": {
"message": "Gyroscope - deg/s"
},
"sensorsAccelTitle": {
"message": "Accelerometer - g"
},
"sensorsMagTitle": {
"message": "Magnetometer - Ga"
},
"sensorsBaroTitle": {
"message": "Barometer - meters"
},
"sensorsSonarTitle": {
"message": "Sonar - cm"
},
"sensorsDebugTitle": {
"message": "Debug 0"
},
"cliInfo": {
"message": "<strong>Note</strong>: Leaving CLI tab or pressing Disconnect will <strong>automatically</strong> send \"<strong>exit</strong>\" to the board. With the latest firmware this will make the controller <span class=\"message-negative\">restart</span> and unsaved changes will be <span class=\"message-negative\">lost</span>."
@ -1679,6 +1761,18 @@
"message": "Flight logs can be recorded to your flight controller's onboard SD card slot."
},
"dataflashUsedSpace": {
"message": "Used space"
},
"dataflashFreeSpace": {
"message": "Free space"
},
"dataflashUnavSpace": {
"message": "Unavailable space"
},
"dataflashLogsSpace": {
"message": "Free space for logs"
},
"dataflashNote": {
"message": "Flight logs can be recorded to your flight controller's onboard dataflash chip."
},
@ -1724,6 +1818,25 @@
"dataflashFileWriteFailed": {
"message": "Failed to write to the file you selected, are the permissions on that folder okay?"
},
"sdcardStatusNoCard": {
"message": "No card inserted"
},
"sdcardStatusReboot": {
"message": "Fatal error<br>Reboot to retry"
},
"sdcardStatusReady": {
"message": "Card ready"
},
"sdcardStatusStarting": {
"message": "Card starting..."
},
"sdcardStatusFileSystem": {
"message": "Filesystem starting..."
},
"sdcardStatusUnknown": {
"message": "Unknown state $1"
},
"firmwareFlasherReleaseSummaryHead": {
"message": "Release info"

View file

@ -339,7 +339,7 @@ $(document).ready(function () {
state = true;
}
$(this).text(state ? 'Hide Log' : 'Show Log');
$(this).text(state ? chrome.i18n.getMessage('logActionHide') : chrome.i18n.getMessage('logActionShow'));
$(this).data('state', state);
});

View file

@ -1,6 +1,6 @@
<div class="tab-configuration toolbar_fixed_bottom">
<div class="content_wrapper">
<div class="tab_title" i18n="tabConfiguration">Configuration</div>
<div class="tab_title" i18n="tabConfiguration"></div>
<div class="cf_doc_version_bt">
<a id="button-documentation" href="https://github.com/betaflight/betaflight/releases" target="_blank"></a>
</div>
@ -271,7 +271,7 @@
<label>
<span i18n="configurationSensorAlignmentGyro"></span>
<select class="gyroalign">
<option value="0">Default</option>
<option i18n="configurationSensorAlignmentDefaultOption" value="0"></option>
<!-- list generated here -->
</select>
</label>
@ -280,7 +280,7 @@
<label>
<span i18n="configurationSensorAlignmentAcc"></span>
<select class="accalign">
<option value="0">Default</option>
<option i18n="configurationSensorAlignmentDefaultOption" value="0"></option>
<!-- list generated here -->
</select>
</label>
@ -289,7 +289,7 @@
<label>
<span i18n="configurationSensorAlignmentMag"></span>
<select class="magalign">
<option value="0">Default</option>
<option value="0" i18n="configurationSensorAlignmentDefaultOption"></option>
<!-- list generated here -->
</select>
</label>

View file

@ -1,6 +1,6 @@
<div class="tab-failsafe toolbar_fixed_bottom">
<div class="content_wrapper">
<div class="tab_title">Failsafe</div>
<div i18n="tabFailsafe" class="tab_title"></div>
<div class="cf_doc_version_bt">
<a id="button-documentation" href="https://github.com/betaflight/betaflight/releases" target="_blank"></a>
</div>

View file

@ -56,9 +56,9 @@
<div class="spacer_box GPS_signal_strength">
<table class="cf_table">
<tr class="titles">
<td style="width: 20%;">Sat ID</td>
<td style="width: 15%;">Qty</td>
<td style="width: 65%;" i18n="gpsSignalStr">Signal Strength</td>
<td style="width: 20%;" i18n="gpsSignalSatId"></td>
<td style="width: 15%;" i18n="gpsSignalQty"></td>
<td style="width: 65%;" i18n="gpsSignalStr"></td>
</tr>
<tr>
<td>0</td>

View file

@ -23,12 +23,12 @@
<div class="table">
<div class="sensor row">
<div class="left-cell motor-button">
<a class="reset_max" href="#" i18n_title="motorsResetMaximum">Reset</a>
<a class="reset_max" href="#" i18n="motorsResetMaximumButton" i18n_title="motorsResetMaximum"></a>
</div>
<div class="right-cell">
<select name="sensor_choice">
<option value="gyro" selected="selected">Gyro</option>
<option value="accel">Accel</option>
<option value="gyro" selected="selected" i18n="motorsSensorGyroSelect"></option>
<option value="accel" i18n="motorsSensorAccelSelect"></option>
</select>
</div>
</div>
@ -104,7 +104,7 @@
<div class="gui_box motorblock">
<div class="spacer">
<div class="left motors">
<div class="title2">Motors</div>
<div class="title2" i18n="motorsText"></div>
<ul class="titles">
<li i18n_title="motorNumber1">1</li>
<li i18n_title="motorNumber2">2</li>
@ -118,7 +118,7 @@
<div class="bar-wrapper"></div>
</div>
<div class="right servos">
<div class="title2">Servos</div>
<div class="title2" i18n="servosText"></div>
<ul class="titles">
<li i18n_title="servoNumber8">8</li>
<li i18n_title="servoNumber7">7</li>

View file

@ -276,11 +276,11 @@ TABS.onboard_logging.initialize = function (callback) {
}
function update_html() {
update_bar_width($(".tab-onboard_logging .dataflash-used"), DATAFLASH.usedSize, DATAFLASH.totalSize, "Used space", false);
update_bar_width($(".tab-onboard_logging .dataflash-free"), DATAFLASH.totalSize - DATAFLASH.usedSize, DATAFLASH.totalSize, "Free space", false);
update_bar_width($(".tab-onboard_logging .dataflash-used"), DATAFLASH.usedSize, DATAFLASH.totalSize, chrome.i18n.getMessage('dataflashUsedSpace'), false);
update_bar_width($(".tab-onboard_logging .dataflash-free"), DATAFLASH.totalSize - DATAFLASH.usedSize, DATAFLASH.totalSize, chrome.i18n.getMessage('dataflashFreeSpace'), false);
update_bar_width($(".tab-onboard_logging .sdcard-other"), SDCARD.totalSizeKB - SDCARD.freeSizeKB, SDCARD.totalSizeKB, "Unavailable space", true);
update_bar_width($(".tab-onboard_logging .sdcard-free"), SDCARD.freeSizeKB, SDCARD.totalSizeKB, "Free space for logs", true);
update_bar_width($(".tab-onboard_logging .sdcard-other"), SDCARD.totalSizeKB - SDCARD.freeSizeKB, SDCARD.totalSizeKB, chrome.i18n.getMessage('dataflashUnavSpace'), true);
update_bar_width($(".tab-onboard_logging .sdcard-free"), SDCARD.freeSizeKB, SDCARD.totalSizeKB, chrome.i18n.getMessage('dataflashLogsSpace'), true);
$(".btn a.erase-flash, .btn a.save-flash").toggleClass("disabled", DATAFLASH.usedSize === 0);
@ -291,22 +291,22 @@ TABS.onboard_logging.initialize = function (callback) {
switch (SDCARD.state) {
case MSP.SDCARD_STATE_NOT_PRESENT:
$(".sdcard-status").text("No card inserted");
$(".sdcard-status").text(chrome.i18n.getMessage('sdcardStatusNoCard'));
break;
case MSP.SDCARD_STATE_FATAL:
$(".sdcard-status").html("Fatal error<br>Reboot to retry");
$(".sdcard-status").html(chrome.i18n.getMessage('sdcardStatusReboot'));
break;
case MSP.SDCARD_STATE_READY:
$(".sdcard-status").text("Card ready");
$(".sdcard-status").text(chrome.i18n.getMessage('sdcardStatusReady'));
break;
case MSP.SDCARD_STATE_CARD_INIT:
$(".sdcard-status").text("Card starting...");
$(".sdcard-status").text(chrome.i18n.getMessage('sdcardStatusStarting'));
break;
case MSP.SDCARD_STATE_FS_INIT:
$(".sdcard-status").text("Filesystem starting...");
$(".sdcard-status").text(chrome.i18n.getMessage('sdcardStatusFileSystem'));
break;
default:
$(".sdcard-status").text("Unknown state " + SDCARD.state);
$(".sdcard-status").text(chrome.i18n.getMessage('sdcardStatusUnknown',[SDCARD.state]));
}
if (SDCARD.supported && !sdcardTimer) {

View file

@ -26,7 +26,7 @@
<input type="text" name="rcmap" spellcheck="false" />
<select class="hybrid_helper"
name="rcmap_helper">
<option value="AETR1234">Default</option>
<option i18n="receiverChannelDefaultOption" value="AETR1234"></option>
<option value="AETR1234">FrSky / Futaba / Hitec</option>
<option value="TAER1234">Spektrum / Graupner / JR</option>
</select>

View file

@ -225,7 +225,7 @@ TABS.receiver.initialize = function (callback) {
// rssi
var rssi_channel_e = $('select[name="rssi_channel"]');
rssi_channel_e.append('<option value="0">Disabled</option>');
rssi_channel_e.append('<option value="0">' + chrome.i18n.getMessage("receiverRssiChannelDisabledOption") + '</option>');
//1-4 reserved for Roll Pitch Yaw & Throttle, starting at 5
for (var i = 5; i < RC.active_channels + 1; i++) {
rssi_channel_e.append('<option value="' + i + '">' + chrome.i18n.getMessage("controlAxisAux" + (i-4)) + '</option>');

View file

@ -1,31 +1,29 @@
<div class="tab-sensors">
<div class="content_wrapper">
<div class="tab_title" i18n="tabRawSensorData">tabRawSensorData</div>
<div class="tab_title" i18n="tabRawSensorData"></div>
<div class="cf_doc_version_bt">
<a id="button-documentation" href="https://github.com/betaflight/betaflight/releases" target="_blank"></a>
</div>
<div class="note" style="margin-bottom: 10px;">
<div class="note_spacer">
<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. We recommend
to only render graphs for sensors you are interested in while using reasonable update periods.</p>
<p i18n="sensorsInfo"></p>
</div>
</div>
</div>
<div class="gui_box">
<div class="info">
<div class="checkboxes">
<label><input type="checkbox" name="gyro_on" class="first" />Gyroscope</label> <label><input
type="checkbox" name="accel_on" />Accelerometer</label> <label><input type="checkbox"
name="mag_on" />Magnetometer</label> <label><input type="checkbox" name="baro_on" />Barometer</label> <label><input
type="checkbox" name="sonar_on" />Sonar</label> <label><input type="checkbox" name="debug_on" />Debug</label>
<label><input type="checkbox" name="gyro_on" class="first" /><span i18n="sensorsGyroSelect"/></label> <label><input
type="checkbox" name="accel_on" /><span i18n="sensorsAccelSelect"/></label> <label><input type="checkbox"
name="mag_on" /><span i18n="sensorsMagSelect"/></label> <label><input type="checkbox" name="baro_on" /><span i18n="sensorsBaroSelect"/></label> <label><input
type="checkbox" name="sonar_on" /><span i18n="sensorsSonarSelect"/></label> <label><input type="checkbox" name="debug_on" /><span i18n="sensorsDebugSelect"/></label>
</div>
</div>
</div>
<div class="wrapper gyro">
<div class="gui_box grey">
<div class="plot_control">
<div class="title">Gyroscope - deg/s</div>
<div class="title" i18n="sensorsGyroTitle"></div>
<dl>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
@ -71,7 +69,7 @@
<div class="wrapper accel">
<div class="gui_box grey">
<div class="plot_control">
<div class="title">Accelerometer - g</div>
<div class="title" i18n="sensorsAccelTitle"></div>
<dl>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
@ -117,7 +115,7 @@
<div class="wrapper mag">
<div class="gui_box grey">
<div class="plot_control">
<div class="title">Magnetometer - Ga</div>
<div class="title" i18n="sensorsMagTitle"></div>
<dl>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
@ -161,7 +159,7 @@
<div class="wrapper baro">
<div class="gui_box grey">
<div class="plot_control">
<div class="title">Barometer - meters</div>
<div class="title" i18n="sensorsBaroTitle"></div>
<dl>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
@ -195,7 +193,7 @@
<div class="wrapper sonar">
<div class="gui_box grey">
<div class="plot_control">
<div class="title">Sonar - cm</div>
<div class="title" i18n="sensorsSonarTitle"></div>
<dl>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
@ -228,7 +226,7 @@
<div class="wrapper debug">
<div class="gui_box grey">
<div class="plot_control">
<div class="title">Debug 0</div>
<div class="title"><span i18n="sensorsDebugTitle"/> 0</div>
<dl>
<dt i18n="sensorsRefresh"></dt>
<dd class="rate">
@ -257,7 +255,7 @@
</svg>
<div class="clear-both"></div>
<div class="plot_control">
<div class="title">Debug 1</div>
<div class="title"><span i18n="sensorsDebugTitle"/> 1</div>
<dl>
<dt>X:</dt>
<dd class="x">blue</dd>
@ -272,7 +270,7 @@
</svg>
<div class="clear-both"></div>
<div class="plot_control">
<div class="title">Debug 2</div>
<div class="title"><span i18n="sensorsDebugTitle"/> 2</div>
<dl>
<dt>X:</dt>
<dd class="x">0</dd>
@ -287,7 +285,7 @@
</svg>
<div class="clear-both"></div>
<div class="plot_control">
<div class="title">Debug 3</div>
<div class="title"><span i18n="sensorsDebugTitle"/> 3</div>
<dl>
<dt>X:</dt>
<dd class="x">0</dd>

View file

@ -16,7 +16,7 @@
<div id="accel_calib_running">
<div class="data-loading-setup">
<p>Calibrating...</p>
<p i18n="initialSetupButtonCalibratingText"></p>
</div>
</div>
</div>
@ -27,7 +27,7 @@
<div id="mag_calib_running">
<div class="data-loading-setup">
<p>Calibrating...</p>
<p i18n="initialSetupButtonCalibratingText"></p>
</div>
</div>
</div>