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

Improved message when save lua VTX file (#3110)

* Improved message when save lua VTX file

* Added new strings

* Missing backslash

* Update messages.json

removed one blank line

* Update locales/en/messages.json

Co-authored-by: Míguel Ángel Mulero Martínez <mcgivergim@gmail.com>

* Update locales/en/messages.json

Co-authored-by: Míguel Ángel Mulero Martínez <mcgivergim@gmail.com>

* Update locales/en/messages.json

Co-authored-by: Míguel Ángel Mulero Martínez <mcgivergim@gmail.com>

Co-authored-by: Míguel Ángel Mulero Martínez <mcgivergim@gmail.com>
This commit is contained in:
HThuren 2022-12-08 23:35:34 +01:00 committed by GitHub
parent ec5453e49b
commit 8b79bcd3a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

@ -6194,7 +6194,6 @@
"message": "This table represents all the frequencies that can be used for your VTX. You can have several bands and for each band you must configure:<br><b>- $t(vtxTableBandTitleName.message):</b> Name that you want to assign to this band, like BOSCAM_A, FATSHARK or RACEBAND.<br><b>- $t(vtxTableBandTitleLetter.message):</b> Short letter that references the band.<br><b>- $t(vtxTableBandTitleFactory.message):</b> This indicates if it is a factory band. If enabled Betaflight sends to the VTX a band and channel number. The VTX will then use its built-in frequency table and the frequencies configured here are only to show the value in the OSD and other places. If it is not enabled, then Betaflight will send to the VTX the real frequency configured here.<br><b>- Frequencies:</b> Frequencies for this band.<br /><br />Remember that not all frequencies are legal at your country. You must put a value of <b>zero</b> to each frequency index that you are not allowed to use to disable it.",
"description": "Help for the table of bands-channels that appears in the VTX tab"
},
"vtxSavedFileOk": {
"message": "VTX Config file <span class=\"message-positive\">saved</span>",
"description": "Message in the GUI log when the VTX Config file is saved"
@ -6203,6 +6202,14 @@
"message": "<span class=\"message-negative\">Error</span> while saving the VTX Config file",
"description": "Message in the GUI log when the VTX Config file is saved"
},
"vtxSavedLuaFileOk": {
"message": "lua VTX Config file <span class=\"message-positive\">saved</span>",
"description": "Message in the GUI log when the lua VTX Config file is saved"
},
"vtxSavedLuaFileKo": {
"message": "<span class=\"message-negative\">Error</span> while saving the lua VTX Config file",
"description": "Message in the GUI log when the lua VTX Config file saving has failed"
},
"vtxLoadFileOk": {
"message": "VTX Config file <span class=\"message-positive\">loaded</span>",
"description": "Message in the GUI log when the VTX Config file is loaded"

View file

@ -633,7 +633,7 @@ vtx.initialize = function (callback) {
writer.onerror = function(){
console.error('Failed to write VTX table lua file');
GUI.log(i18n.getMessage('vtxSavedFileKo'));
GUI.log(i18n.getMessage('vtxSavedLuaFileKo'));
};
writer.onwriteend = function() {
@ -646,7 +646,7 @@ vtx.initialize = function (callback) {
writer.onwriteend = function() {
analytics.sendEvent(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'VtxTableLuaSave', text.length);
console.log('Write VTX table lua file end');
GUI.log(i18n.getMessage('vtxSavedFileOk'));
GUI.log(i18n.getMessage('vtxSavedLuaFileOk'));
};
writer.write(data);
@ -656,7 +656,7 @@ vtx.initialize = function (callback) {
}, function (){
console.error('Failed to get VTX table lua file writer');
GUI.log(i18n.getMessage('vtxSavedFileKo'));
GUI.log(i18n.getMessage('vtxSavedLuaFileKo'));
});
});
}