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

aux i18n support

This commit is contained in:
cTn 2014-05-06 23:39:37 +02:00
parent a7c0e56254
commit efb481227c
3 changed files with 34 additions and 15 deletions

View file

@ -304,5 +304,24 @@
},
"receiverEepromSaved": {
"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>"
}
}

View file

@ -8,20 +8,20 @@
<th colspan="3">AUX 4</th>
</tr>
<tr class="main">
<th>Name</th>
<th>LOW</th>
<th>MED</th>
<th>HIGH</th>
<th>LOW</th>
<th>MED</th>
<th>HIGH</th>
<th>LOW</th>
<th>MED</th>
<th>HIGH</th>
<th>LOW</th>
<th>MED</th>
<th>HIGH</th>
<th i18n="auxiliaryName"></th>
<th i18n="auxiliaryLow"></th>
<th i18n="auxiliaryMed"></th>
<th i18n="auxiliaryHigh"></th>
<th i18n="auxiliaryLow"></th>
<th i18n="auxiliaryMed"></th>
<th i18n="auxiliaryHigh"></th>
<th i18n="auxiliaryLow"></th>
<th i18n="auxiliaryMed"></th>
<th i18n="auxiliaryHigh"></th>
<th i18n="auxiliaryLow"></th>
<th i18n="auxiliaryMed"></th>
<th i18n="auxiliaryHigh"></th>
</tr>
</table>
<a class="update" href="#" title="">Save</a>
<a class="update" href="#" i18n="auxiliaryButtonSave"></a>
</div>

View file

@ -98,7 +98,7 @@ function tab_initialize_auxiliary_configuration() {
function save_to_eeprom() {
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');
element.addClass('success');