Skip to content

Commit a5df92f

Browse files
HThurenchmelevskij
authored andcommitted
Translate Failsafe Stage 1 options, improve explanation of function "Time in stage 1" (betaflight#3565)
* translate Stage 1 options * small bug * small bug * Changed message and help text * Update messages.json change "Channel Fallback Settings" to "Stage 1 - Channel Fallback Settings"
1 parent 02f5166 commit a5df92f

File tree

2 files changed

+22
-33
lines changed

2 files changed

+22
-33
lines changed

locales/en/messages.json

+15-27
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@
498498
"stm32UnprotectInitFailed": {
499499
"message": "Failed to initiate unprotect routine"
500500
},
501-
502501
"noConfigurationReceived": {
503502
"message": "No configuration received within <span class=\"message-negative\">10 seconds</span>, communication <span class=\"message-negative\">failed</span>"
504503
},
@@ -532,7 +531,6 @@
532531
"reportProblemsDialogACC_NEEDS_CALIBRATION": {
533532
"message": "<strong>the accelerometer is enabled but it is not calibrated</strong>.<br>If you plan to use the accelerometer, please follow the instructions for '$t(initialSetupButtonCalibrateAccel.message)' on the '$t(tabSetup.message)' tab. If any function that requires the accelerometer (auto level modes, GPS rescue, ...) is enabled, arming of the craft will be disabled until the accelerometer has been calibrated.<br>If you are not planning on using the accelerometer it is recommended that you disable it in '$t(configurationSystem.message)' on the '$t(tabConfiguration.message)' tab."
534533
},
535-
536534
"infoVersionOs": {
537535
"message" : "OS: <strong>{{operatingSystem}}</strong>",
538536
"description": "Message that appears in the GUI log panel indicating operating system"
@@ -583,7 +581,6 @@
583581
"tabSwitchWaitForOperation": {
584582
"message": "You <span class=\"message-negative\">can't</span> do this right now, please wait for current operation to finish ..."
585583
},
586-
587584
"tabSwitchUpgradeRequired": {
588585
"message": "You need to <strong>upgrade</strong> your firmware to the latest version of Betaflight before you can use the $1 tab."
589586
},
@@ -629,14 +626,12 @@
629626
"versionLabelConfigurator": {
630627
"message": "Configurator"
631628
},
632-
633629
"notifications_app_just_updated_to_version": {
634630
"message": "Application just updated to version: $1"
635631
},
636632
"notifications_click_here_to_start_app": {
637633
"message": "Click here to start the application"
638634
},
639-
640635
"statusbar_port_utilization": {
641636
"message": "Port utilization:",
642637
"description": "Port utilization text shown in the status bar"
@@ -665,7 +660,6 @@
665660
"message": "CPU Load:",
666661
"description": "CPU load text shown in the status bar"
667662
},
668-
669663
"dfu_connect_message": {
670664
"message": "Please use the Firmware Flasher to access DFU devices"
671665
},
@@ -681,15 +675,12 @@
681675
"dfu_error_image_size": {
682676
"message": "<span class=\"message-negative\">Error</span>: Supplied image is larger then flash available on the chip! Image: $1 KiB, limit = $2 KiB"
683677
},
684-
685678
"eeprom_saved_ok": {
686679
"message": "EEPROM <span class=\"message-positive\">saved</span>"
687680
},
688-
689681
"defaultWelcomeIntro": {
690682
"message": "Welcome to <strong>Betaflight - Configurator</strong>, a utility designed to simplify updating, configuring and tuning of your flight controller."
691683
},
692-
693684
"defaultWelcomeHead": {
694685
"message": "Hardware"
695686
},
@@ -4580,7 +4571,7 @@
45804571
"message": "Maximum length"
45814572
},
45824573
"failsafeChannelFallbackSettingsTitle": {
4583-
"message": "Channel Fallback Settings"
4574+
"message": "Stage 1 - Channel Fallback Settings"
45844575
},
45854576
"failsafeChannelFallbackSettingsHelp": {
45864577
"message": "These settings are applied to invalid individual AUX channels or to all channels when entering stage 1. <strong>Note:</strong> values are saved in steps of 25usec, so small changes disappear"
@@ -4591,14 +4582,26 @@
45914582
"failsafeChannelFallbackSettingsHold": {
45924583
"message": "<strong>Hold</strong> means maintain the last good value received. <strong>Set</strong> means the value given here will be used"
45934584
},
4585+
"failsafeChannelFallbackSettingsValueAuto": {
4586+
"message": "Auto",
4587+
"description": "Text for Auto option"
4588+
},
4589+
"failsafeChannelFallbackSettingsValueHold": {
4590+
"message": "Hold",
4591+
"description": "Text for Hold option"
4592+
},
4593+
"failsafeChannelFallbackSettingsValueSet": {
4594+
"message": "Set",
4595+
"description": "Text for Set option"
4596+
},
45944597
"failsafeStageTwoSettingsTitle": {
45954598
"message": "Stage 2 - Settings"
45964599
},
45974600
"failsafeDelayItem": {
4598-
"message": "Guard time for stage 2 activation after signal lost [seconds]"
4601+
"message": "Period of time in Stage 1 failsafe after signal loss [seconds]"
45994602
},
46004603
"failsafeDelayHelp": {
4601-
"message": "Time for stage 1 to wait for recovery"
4604+
"message": "Set the period of time in Stage 1 failsafe after signal loss. If the delay time expires without return of signal, Stage 2 failsafe will start"
46024605
},
46034606
"failsafeThrottleLowItem": {
46044607
"message": "Failsafe Throttle Low Delay [seconds]"
@@ -4627,7 +4630,6 @@
46274630
"failsafeProcedureItemSelect4": {
46284631
"message": "GPS Rescue"
46294632
},
4630-
46314633
"failsafeGpsRescueItemAltitudeMode": {
46324634
"message": "Altitude mode"
46334635
},
@@ -4716,7 +4718,6 @@
47164718
"failsafeGpsRescueItemSanityChecksFSOnly": {
47174719
"message": "Failsafe only"
47184720
},
4719-
47204721
"failsafeKillSwitchItem": {
47214722
"message": "Failsafe Kill Switch (setup Failsafe in Modes Tab)"
47224723
},
@@ -4903,8 +4904,6 @@
49034904
"powerVoltageId85": {
49044905
"message": "Cell 6"
49054906
},
4906-
4907-
49084907
"powerVoltageScale": {
49094908
"message": "Scale"
49104909
},
@@ -4914,7 +4913,6 @@
49144913
"powerVoltageMultiplier": {
49154914
"message": "Multiplier Value"
49164915
},
4917-
49184916
"powerAmperageHead": {
49194917
"message": "Amperage Meter"
49204918
},
@@ -4975,7 +4973,6 @@
49754973
"powerMahValue": {
49764974
"message": "$1 mAh"
49774975
},
4978-
49794976
"powerAmperageScale": {
49804977
"message": "Scale [1/10th mV/A]"
49814978
},
@@ -4988,7 +4985,6 @@
49884985
"powerAmperageCalibratedScale": {
49894986
"message": "Calibrated Amperage Scale:"
49904987
},
4991-
49924988
"powerBatteryHead": {
49934989
"message": "Battery"
49944990
},
@@ -5190,14 +5186,12 @@
51905186
"osdSetupCameraConnected": {
51915187
"message": "Camera Connected"
51925188
},
5193-
51945189
"osdSetupResetText": {
51955190
"message": "Reset OSD to default"
51965191
},
51975192
"osdSetupButtonReset": {
51985193
"message": "Reset Settings"
51995194
},
5200-
52015195
"osdTextElementMainBattVoltage": {
52025196
"message": "Battery voltage",
52035197
"description": "One of the elements of the OSD"
@@ -5877,7 +5871,6 @@
58775871
"osdDescElementUnknown" : {
58785872
"message": "Unknown element (details to be added in a future release)"
58795873
},
5880-
58815874
"osdTextStatMaxSpeed": {
58825875
"message": "Speed maximum",
58835876
"description": "One of the statistics that can be shown at the end of the flight in the OSD"
@@ -6095,7 +6088,6 @@
60956088
"osdDescStatUnknown": {
60966089
"message": "Unknown statistic (details to be added in a future release)"
60976090
},
6098-
60996091
"osdDescribeFontVersion1": {
61006092
"message": "Font version: 1 (Betaflight 4.0 or older)"
61016093
},
@@ -6105,7 +6097,6 @@
61056097
"osdDescribeFontVersionCUSTOM": {
61066098
"message": "Font version: user provided"
61076099
},
6108-
61096100
"osdTimerSource": {
61106101
"message": "Source:"
61116102
},
@@ -6164,7 +6155,6 @@
61646155
"message": "Altitude",
61656156
"description": "Text of the altitude alarm"
61666157
},
6167-
61686158
"osdWarningTextArmingDisabled": {
61696159
"message": "Arming disabled",
61706160
"description": "One of the warnings that can be selected to be shown in the OSD"
@@ -6328,7 +6318,6 @@
63286318
"osdButtonSaved": {
63296319
"message": "Saved"
63306320
},
6331-
63326321
"vtxHelp": {
63336322
"message": "Here you can configure the values for your Video Transmitter (VTX). You can view and change the transmission values, including the VTX Tables, if the flight controller and the VTX support it.<br>To set up your VTX use the following steps:<br>1. Go to <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://betaflight.com/docs/wiki/archive/VTX-tables\">this</a> page;<br>2. Find the appropriate VTX configuration file for your country and your VTX model and download it;<br>3. Click '$t(vtxButtonLoadFile.message)' below, select the VTX configuration file, load it;<br>4. Verify that the settings are correct;<br>5. Click '$t(vtxButtonSave.message)' to store the VTX settings on the flight controller.<br>6. Optionally click '$t(vtxButtonSaveLua.message)' to save a lua configuration file you can use with the betaflight lua scripts (See more <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/betaflight/betaflight-tx-lua-scripts/\">here</a>.)",
63346323
"description": "Introduction message in the VTX tab"
@@ -6617,7 +6606,6 @@
66176606
"message": "{{version}} unlocked",
66186607
"description": "Indicates if SA device is unlocked"
66196608
},
6620-
66216609
"mainHelpArmed": {
66226610
"message": "Motor Arming"
66236611
},

src/js/tabs/failsafe.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ failsafe.initialize = function (callback) {
149149
</div>\
150150
<div class="cf_tip channelsetting" title="${i18n.getMessage("failsafeChannelFallbackSettingsAuto")}">\
151151
<select class="aux_set" id="${i}">\
152-
<option value="0">Auto</option>\
153-
<option value="1">Hold</option>\
154-
<option value="2">Set</option>\
152+
<option value="0">${i18n.getMessage("failsafeChannelFallbackSettingsValueAuto")}</option>\
153+
<option value="1">${i18n.getMessage("failsafeChannelFallbackSettingsValueHold")}</option>\
154+
<option value="2">${i18n.getMessage("failsafeChannelFallbackSettingsValueSet")}</option>\
155155
</select>\
156156
</div>\
157157
<div class="auxiliary"><input type="number" name="aux_value" min="750" max="2250" step="25" id="${i}"/></div>\
@@ -167,8 +167,8 @@ failsafe.initialize = function (callback) {
167167
</div>\
168168
<div class="cf_tip channelsetting" title="${i18n.getMessage("failsafeChannelFallbackSettingsHold")}">\
169169
<select class="aux_set" id="${i}">\
170-
<option value="1">Hold</option>\
171-
<option value="2">Set</option>\
170+
<option value="1">${i18n.getMessage("failsafeChannelFallbackSettingsValueHold")}</option>\
171+
<option value="2">${i18n.getMessage("failsafeChannelFallbackSettingsValueSet")}</option>\
172172
</select>\
173173
</div>\
174174
<div class="auxiliary"><input type="number" name="aux_value" min="750" max="2250" step="25" id="${i}"/></div>\
@@ -258,7 +258,8 @@ failsafe.initialize = function (callback) {
258258
}
259259

260260
// Sort the element, if need to group, do it by lexical sort, ie. by naming of (the translated) selection text
261-
$('#failsafeSwitchSelect').sortSelect();
261+
// Stage1 on top
262+
$('#failsafeSwitchSelect').sortSelect(i18n.getMessage("failsafeSwitchOptionStage1"));
262263

263264
// `failsafe_kill_switch` has been renamed to `failsafe_switch_mode`.
264265
// It is backwards compatible with `failsafe_kill_switch`

0 commit comments

Comments
 (0)