mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
aux i18n support
This commit is contained in:
parent
a7c0e56254
commit
efb481227c
3 changed files with 34 additions and 15 deletions
|
@ -304,5 +304,24 @@
|
||||||
},
|
},
|
||||||
"receiverEepromSaved": {
|
"receiverEepromSaved": {
|
||||||
"message": "EEPROM <span style=\"color: green\">saved</span>"
|
"message": "EEPROM <span style=\"color: green\">saved</span>"
|
||||||
|
},
|
||||||
|
|
||||||
|
"auxiliaryName": {
|
||||||
|
"message": "Name"
|
||||||
|
},
|
||||||
|
"auxiliaryLow": {
|
||||||
|
"message": "LOW"
|
||||||
|
},
|
||||||
|
"auxiliaryMed": {
|
||||||
|
"message": "MED"
|
||||||
|
},
|
||||||
|
"auxiliaryHigh": {
|
||||||
|
"message": "HIGH"
|
||||||
|
},
|
||||||
|
"auxiliaryButtonSave": {
|
||||||
|
"message": "Save"
|
||||||
|
},
|
||||||
|
"auxiliaryEepromSaved": {
|
||||||
|
"message": "EEPROM <span style=\"color: green\">saved</span>"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,20 +8,20 @@
|
||||||
<th colspan="3">AUX 4</th>
|
<th colspan="3">AUX 4</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="main">
|
<tr class="main">
|
||||||
<th>Name</th>
|
<th i18n="auxiliaryName"></th>
|
||||||
<th>LOW</th>
|
<th i18n="auxiliaryLow"></th>
|
||||||
<th>MED</th>
|
<th i18n="auxiliaryMed"></th>
|
||||||
<th>HIGH</th>
|
<th i18n="auxiliaryHigh"></th>
|
||||||
<th>LOW</th>
|
<th i18n="auxiliaryLow"></th>
|
||||||
<th>MED</th>
|
<th i18n="auxiliaryMed"></th>
|
||||||
<th>HIGH</th>
|
<th i18n="auxiliaryHigh"></th>
|
||||||
<th>LOW</th>
|
<th i18n="auxiliaryLow"></th>
|
||||||
<th>MED</th>
|
<th i18n="auxiliaryMed"></th>
|
||||||
<th>HIGH</th>
|
<th i18n="auxiliaryHigh"></th>
|
||||||
<th>LOW</th>
|
<th i18n="auxiliaryLow"></th>
|
||||||
<th>MED</th>
|
<th i18n="auxiliaryMed"></th>
|
||||||
<th>HIGH</th>
|
<th i18n="auxiliaryHigh"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<a class="update" href="#" title="">Save</a>
|
<a class="update" href="#" i18n="auxiliaryButtonSave"></a>
|
||||||
</div>
|
</div>
|
|
@ -98,7 +98,7 @@ function tab_initialize_auxiliary_configuration() {
|
||||||
|
|
||||||
function save_to_eeprom() {
|
function save_to_eeprom() {
|
||||||
send_message(MSP_codes.MSP_EEPROM_WRITE, false, false, function() {
|
send_message(MSP_codes.MSP_EEPROM_WRITE, false, false, function() {
|
||||||
GUI.log('EEPROM <span style="color: green">saved</span>');
|
GUI.log(chrome.i18n.getMessage('auxiliaryEepromSaved'));
|
||||||
|
|
||||||
var element = $('a.update');
|
var element = $('a.update');
|
||||||
element.addClass('success');
|
element.addClass('success');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue