From 5893ebffada7299ccf439dff47b4305c3d03e89e Mon Sep 17 00:00:00 2001 From: HThuren Date: Mon, 4 Sep 2023 23:58:38 +0200 Subject: [PATCH] translate Stage 1 options --- locales/en/messages.json | 38 +++++++++++++------------------------- src/js/tabs/failsafe.js | 13 +++++++------ 2 files changed, 20 insertions(+), 31 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index b308cec81d..d2047f92bb 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -498,7 +498,6 @@ "stm32UnprotectInitFailed": { "message": "Failed to initiate unprotect routine" }, - "noConfigurationReceived": { "message": "No configuration received within 10 seconds, communication failed" }, @@ -532,7 +531,6 @@ "reportProblemsDialogACC_NEEDS_CALIBRATION": { "message": "the accelerometer is enabled but it is not calibrated.
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.
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." }, - "infoVersionOs": { "message" : "OS: {{operatingSystem}}", "description": "Message that appears in the GUI log panel indicating operating system" @@ -583,7 +581,6 @@ "tabSwitchWaitForOperation": { "message": "You can't do this right now, please wait for current operation to finish ..." }, - "tabSwitchUpgradeRequired": { "message": "You need to upgrade your firmware to the latest version of Betaflight before you can use the $1 tab." }, @@ -629,14 +626,12 @@ "versionLabelConfigurator": { "message": "Configurator" }, - "notifications_app_just_updated_to_version": { "message": "Application just updated to version: $1" }, "notifications_click_here_to_start_app": { "message": "Click here to start the application" }, - "statusbar_port_utilization": { "message": "Port utilization:", "description": "Port utilization text shown in the status bar" @@ -665,7 +660,6 @@ "message": "CPU Load:", "description": "CPU load text shown in the status bar" }, - "dfu_connect_message": { "message": "Please use the Firmware Flasher to access DFU devices" }, @@ -681,15 +675,12 @@ "dfu_error_image_size": { "message": "Error: Supplied image is larger then flash available on the chip! Image: $1 KiB, limit = $2 KiB" }, - "eeprom_saved_ok": { "message": "EEPROM saved" }, - "defaultWelcomeIntro": { "message": "Welcome to Betaflight - Configurator, a utility designed to simplify updating, configuring and tuning of your flight controller." }, - "defaultWelcomeHead": { "message": "Hardware" }, @@ -1919,7 +1910,7 @@ "pidTuningFeedforwardJitterHelp": { "message": "Jitter Reduction reduces Feedforward when the sticks move slowly, regardless of their position.

This allows smooth, jitter-free flight when making smooth slow arcs, yet provides full feedforward without any delay when the sticks are moved quickly. Transition is not required, and should be set to zero, when jitter reduction is active.

Default is 7. Higher values, eg 10-12, are good for cinematic or HD freestyle purposes, 5 may be better for racing with fast RC links." }, - "pidTuningFeedforwardSmoothFactor": { + "idTuningFeedforwardSmoothFactor": { "message": "Smoothness" }, "pidTuningFeedforwardSmoothnessHelp": { @@ -4568,6 +4559,18 @@ "failsafeChannelFallbackSettingsHold": { "message": "Hold means maintain the last good value received. Set means the value given here will be used" }, + "failsafeChannelFallbackSettingsValueAuto": { + "message": "Auto", + "description": "Text for Auto option" + }, + "failsafeChannelFallbackSettingsValueHold": { + "message": "Hold", + "description": "Text for Hold option" + }, + "failsafeChannelFallbackSettingsValueSet": { + "message": "Set", + "description": "Text for Set option" + }, "failsafeStageTwoSettingsTitle": { "message": "Stage 2 - Settings" }, @@ -4604,7 +4607,6 @@ "failsafeProcedureItemSelect4": { "message": "GPS Rescue" }, - "failsafeGpsRescueItemAltitudeMode": { "message": "Altitude mode" }, @@ -4693,7 +4695,6 @@ "failsafeGpsRescueItemSanityChecksFSOnly": { "message": "Failsafe only" }, - "failsafeKillSwitchItem": { "message": "Failsafe Kill Switch (setup Failsafe in Modes Tab)" }, @@ -4880,8 +4881,6 @@ "powerVoltageId85": { "message": "Cell 6" }, - - "powerVoltageScale": { "message": "Scale" }, @@ -4891,7 +4890,6 @@ "powerVoltageMultiplier": { "message": "Multiplier Value" }, - "powerAmperageHead": { "message": "Amperage Meter" }, @@ -4952,7 +4950,6 @@ "powerMahValue": { "message": "$1 mAh" }, - "powerAmperageScale": { "message": "Scale [1/10th mV/A]" }, @@ -4965,7 +4962,6 @@ "powerAmperageCalibratedScale": { "message": "Calibrated Amperage Scale:" }, - "powerBatteryHead": { "message": "Battery" }, @@ -5167,14 +5163,12 @@ "osdSetupCameraConnected": { "message": "Camera Connected" }, - "osdSetupResetText": { "message": "Reset OSD to default" }, "osdSetupButtonReset": { "message": "Reset Settings" }, - "osdTextElementMainBattVoltage": { "message": "Battery voltage", "description": "One of the elements of the OSD" @@ -5854,7 +5848,6 @@ "osdDescElementUnknown" : { "message": "Unknown element (details to be added in a future release)" }, - "osdTextStatMaxSpeed": { "message": "Speed maximum", "description": "One of the statistics that can be shown at the end of the flight in the OSD" @@ -6072,7 +6065,6 @@ "osdDescStatUnknown": { "message": "Unknown statistic (details to be added in a future release)" }, - "osdDescribeFontVersion1": { "message": "Font version: 1 (Betaflight 4.0 or older)" }, @@ -6082,7 +6074,6 @@ "osdDescribeFontVersionCUSTOM": { "message": "Font version: user provided" }, - "osdTimerSource": { "message": "Source:" }, @@ -6141,7 +6132,6 @@ "message": "Altitude", "description": "Text of the altitude alarm" }, - "osdWarningTextArmingDisabled": { "message": "Arming disabled", "description": "One of the warnings that can be selected to be shown in the OSD" @@ -6305,7 +6295,6 @@ "osdButtonSaved": { "message": "Saved" }, - "vtxHelp": { "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.
To set up your VTX use the following steps:
1. Go to this page;
2. Find the appropriate VTX configuration file for your country and your VTX model and download it;
3. Click '$t(vtxButtonLoadFile.message)' below, select the VTX configuration file, load it;
4. Verify that the settings are correct;
5. Click '$t(vtxButtonSave.message)' to store the VTX settings on the flight controller.
6. Optionally click '$t(vtxButtonSaveLua.message)' to save a lua configuration file you can use with the betaflight lua scripts (See more here.)", "description": "Introduction message in the VTX tab" @@ -6594,7 +6583,6 @@ "message": "{{version}} unlocked", "description": "Indicates if SA device is unlocked" }, - "mainHelpArmed": { "message": "Motor Arming" }, diff --git a/src/js/tabs/failsafe.js b/src/js/tabs/failsafe.js index 2cb69b8e71..267dfbf9a7 100644 --- a/src/js/tabs/failsafe.js +++ b/src/js/tabs/failsafe.js @@ -149,9 +149,9 @@ failsafe.initialize = function (callback) { \
\ \
\
\ @@ -167,8 +167,8 @@ failsafe.initialize = function (callback) { \
\ \
\
\ @@ -258,7 +258,8 @@ failsafe.initialize = function (callback) { } // Sort the element, if need to group, do it by lexical sort, ie. by naming of (the translated) selection text - $('#failsafeSwitchSelect').sortSelect(); + // Stage1 on top + $('#failsafeSwitchSelect').sortSelect(i18n.getMessage("failsafeSwitchOptionStage1")); // `failsafe_kill_switch` has been renamed to `failsafe_switch_mode`. // It is backwards compatible with `failsafe_kill_switch`