Skip to content

Commit 8b79bcd

Browse files
HThurenMcGiverGim
andauthored
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 <[email protected]> * Update locales/en/messages.json Co-authored-by: Míguel Ángel Mulero Martínez <[email protected]> * Update locales/en/messages.json Co-authored-by: Míguel Ángel Mulero Martínez <[email protected]> Co-authored-by: Míguel Ángel Mulero Martínez <[email protected]>
1 parent ec5453e commit 8b79bcd

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

locales/en/messages.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6194,7 +6194,6 @@
61946194
"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.",
61956195
"description": "Help for the table of bands-channels that appears in the VTX tab"
61966196
},
6197-
61986197
"vtxSavedFileOk": {
61996198
"message": "VTX Config file <span class=\"message-positive\">saved</span>",
62006199
"description": "Message in the GUI log when the VTX Config file is saved"
@@ -6203,6 +6202,14 @@
62036202
"message": "<span class=\"message-negative\">Error</span> while saving the VTX Config file",
62046203
"description": "Message in the GUI log when the VTX Config file is saved"
62056204
},
6205+
"vtxSavedLuaFileOk": {
6206+
"message": "lua VTX Config file <span class=\"message-positive\">saved</span>",
6207+
"description": "Message in the GUI log when the lua VTX Config file is saved"
6208+
},
6209+
"vtxSavedLuaFileKo": {
6210+
"message": "<span class=\"message-negative\">Error</span> while saving the lua VTX Config file",
6211+
"description": "Message in the GUI log when the lua VTX Config file saving has failed"
6212+
},
62066213
"vtxLoadFileOk": {
62076214
"message": "VTX Config file <span class=\"message-positive\">loaded</span>",
62086215
"description": "Message in the GUI log when the VTX Config file is loaded"

src/js/tabs/vtx.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ vtx.initialize = function (callback) {
633633

634634
writer.onerror = function(){
635635
console.error('Failed to write VTX table lua file');
636-
GUI.log(i18n.getMessage('vtxSavedFileKo'));
636+
GUI.log(i18n.getMessage('vtxSavedLuaFileKo'));
637637
};
638638

639639
writer.onwriteend = function() {
@@ -646,7 +646,7 @@ vtx.initialize = function (callback) {
646646
writer.onwriteend = function() {
647647
analytics.sendEvent(analytics.EVENT_CATEGORIES.FLIGHT_CONTROLLER, 'VtxTableLuaSave', text.length);
648648
console.log('Write VTX table lua file end');
649-
GUI.log(i18n.getMessage('vtxSavedFileOk'));
649+
GUI.log(i18n.getMessage('vtxSavedLuaFileOk'));
650650
};
651651

652652
writer.write(data);
@@ -656,7 +656,7 @@ vtx.initialize = function (callback) {
656656

657657
}, function (){
658658
console.error('Failed to get VTX table lua file writer');
659-
GUI.log(i18n.getMessage('vtxSavedFileKo'));
659+
GUI.log(i18n.getMessage('vtxSavedLuaFileKo'));
660660
});
661661
});
662662
}

0 commit comments

Comments
 (0)