Merge pull request #881 from McGiverGim/bf-i18n_serial

i18n serial console and others
10.3.x-maintenance
Michael Keller 2018-01-23 08:58:31 +13:00 committed by GitHub
commit 7ffa50cd32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 8 deletions

View File

@ -193,6 +193,9 @@
"serialPortClosedFail": { "serialPortClosedFail": {
"message": "<span class=\"message-negative\">Failed</span> to close serial port" "message": "<span class=\"message-negative\">Failed</span> to close serial port"
}, },
"serialUnrecoverable" : {
"message": "Unrecoverable <span class=\"message-negative\">failure</span> of serial connection, disconnecting..."
},
"usbDeviceOpened": { "usbDeviceOpened": {
"message": "USB device <span class=\"message-positive\">successfully</span> opened with ID: $1" "message": "USB device <span class=\"message-positive\">successfully</span> opened with ID: $1"
@ -921,7 +924,7 @@
"configurationSerialRX": { "configurationSerialRX": {
"message": "Serial Receiver Provider" "message": "Serial Receiver Provider"
}, },
"configurationSpiRx": { "configurationSpiRX": {
"message": "SPI Bus Receiver Provider" "message": "SPI Bus Receiver Provider"
}, },
"configurationEepromSaved": { "configurationEepromSaved": {
@ -1960,6 +1963,9 @@
"firmwareFlasherShowDevelopmentReleasesDescription":{ "firmwareFlasherShowDevelopmentReleasesDescription":{
"message": "Show Release-Candidates and Development Releases." "message": "Show Release-Candidates and Development Releases."
}, },
"firmwareFlasherOptionLoading": {
"message": "Loading ..."
},
"firmwareFlasherOptionLabelSelectFirmware": { "firmwareFlasherOptionLabelSelectFirmware": {
"message": "Choose a Firmware / Board" "message": "Choose a Firmware / Board"
}, },

View File

@ -66,7 +66,7 @@ var serial = {
self.failed = 0; self.failed = 0;
} else { } else {
console.log('SERIAL: Connection did not recover from last onReceiveError, disconnecting'); console.log('SERIAL: Connection did not recover from last onReceiveError, disconnecting');
GUI.log('Unrecoverable <span style="color: red">failure</span> of serial connection, disconnecting...'); GUI.log(chrome.i18n.getMessage('serialUnrecoverable'));
if (GUI.connected_to || GUI.connecting_to) { if (GUI.connected_to || GUI.connecting_to) {
$('a.connect').click(); $('a.connect').click();
@ -96,7 +96,7 @@ var serial = {
if (info.paused) { if (info.paused) {
// assume unrecoverable, disconnect // assume unrecoverable, disconnect
console.log('SERIAL: Connection did not recover from ' + self.error + ' condition, disconnecting'); console.log('SERIAL: Connection did not recover from ' + self.error + ' condition, disconnecting');
GUI.log('Unrecoverable <span style="color: red">failure</span> of serial connection, disconnecting...'); GUI.log(chrome.i18n.getMessage('serialUnrecoverable'));
if (GUI.connected_to || GUI.connecting_to) { if (GUI.connected_to || GUI.connecting_to) {
$('a.connect').click(); $('a.connect').click();

View File

@ -180,7 +180,7 @@
<li class="baro" i18n_title="sensorStatusBaro"> <li class="baro" i18n_title="sensorStatusBaro">
<div class="baroicon">Baro</div> <div class="baroicon">Baro</div>
</li> </li>
<li class="gps" i18n_title="sensorStatusGps"> <li class="gps" i18n_title="sensorStatusGPS">
<div class="gpsicon">GPS</div> <div class="gpsicon">GPS</div>
</li> </li>
<li class="sonar" i18n_title="sensorStatusSonar"> <li class="sonar" i18n_title="sensorStatusSonar">

View File

@ -5,7 +5,7 @@
<table class="cf_table" style="margin-top: 10px;"> <table class="cf_table" style="margin-top: 10px;">
<tr> <tr>
<td><select name="board"> <td><select name="board">
<option value="0">Loading ...</option> <option value="0" i18n="firmwareFlasherOptionLoading">Loading ...</option>
</select></td> </select></td>
<td><span class="description" i18n="firmwareFlasherOnlineSelectBoardDescription"></span></td> <td><span class="description" i18n="firmwareFlasherOnlineSelectBoardDescription"></span></td>
</tr> </tr>
@ -76,7 +76,7 @@
</div> </div>
<div class="spacer" style="margin-bottom: 10px;"> <div class="spacer" style="margin-bottom: 10px;">
<strong i18n="firmwareFlasherReleaseTarget"></strong> <span class="target"></span><br /> <strong <strong i18n="firmwareFlasherReleaseTarget"></strong> <span class="target"></span><br /> <strong
i18n="firmwareFlasherReleaseName"></strong> <a i18n_title="firmwareFlasherReleaseUrl" class="name" i18n="firmwareFlasherReleaseName"></strong> <a i18n_title="firmwareFlasherReleaseVersionUrl" class="name"
href="#" target="_blank"></a><br /> <strong i18n="firmwareFlasherReleaseFile"></strong> <a href="#" target="_blank"></a><br /> <strong i18n="firmwareFlasherReleaseFile"></strong> <a
i18n_title="firmwareFlasherReleaseFileUrl" class="file" href="#" target="_blank"></a><br /> <strong i18n_title="firmwareFlasherReleaseFileUrl" class="file" href="#" target="_blank"></a><br /> <strong
i18n="firmwareFlasherReleaseDate"></strong> <span class="date"></span><br /> <strong i18n="firmwareFlasherReleaseDate"></strong> <span class="date"></span><br /> <strong

2
tabs/osd.html Executable file → Normal file
View File

@ -8,7 +8,7 @@
</div> </div>
<div class="unsupported hide"> <div class="unsupported hide">
<p class="note" i18n="osdSetupUnsupportedNote1" /> <p class="note" i18n="osdSetupUnsupportedNote1" />
<p class="note" i18n="osdsetupUnsupportedNote2" /> <p class="note" i18n="osdSetupUnsupportedNote2" />
</div> </div>
<div class="supported hide"> <div class="supported hide">
<div style="margin-bottom: 20px;"> <div style="margin-bottom: 20px;">

View File

@ -72,7 +72,7 @@
<div class="gui_box grey topspacer" style="margin-top: 0px;"> <div class="gui_box grey topspacer" style="margin-top: 0px;">
<table class="pid_titlebar"> <table class="pid_titlebar">
<tr> <tr>
<th class="name" i18n="pidTuningName"></th> <th class="name"></th>
<th class="proportional" i18n="pidTuningProportional"></th> <th class="proportional" i18n="pidTuningProportional"></th>
<th class="integral" i18n="pidTuningIntegral"></th> <th class="integral" i18n="pidTuningIntegral"></th>
<th class="derivative" i18n="pidTuningDerivative"></th> <th class="derivative" i18n="pidTuningDerivative"></th>