chore(radio): unify the bootloader UI code (#6189)

Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
philmoz
2025-05-23 11:06:20 +10:00
committed by GitHub
co-authored by Richard Li
parent bb4fb456a6
commit dc0d85d035
53 changed files with 2159 additions and 3957 deletions
-74
View File
@@ -1027,80 +1027,6 @@
#define TR_WIDGET_VALUE "Værdi"
#endif
// Bootloader common - ASCII characters only
#define TR_BL_USB_CONNECTED "USB forbundet"
#define TR_BL_USB_PLUGIN "eller brug USB kabel"
#define TR_BL_USB_MASS_STORE "for USB disk"
#define TR_BL_USB_PLUGIN_MASS_STORE "eller brug USB kabel for USB disk"
#define TR_BL_WRITE_FW "Installer firmware"
#define TR_BL_FORK "Fork:"
#define TR_BL_VERSION "Version:"
#define TR_BL_RADIO "Radio:"
#define TR_BL_EXIT "Forlad"
#define TR_BL_DIR_MISSING " Katalog mangler"
#define TR_BL_DIR_EMPTY " Katalog er tomt"
#define TR_BL_WRITING_FW "Installerer..."
#define TR_BL_WRITING_COMPL "Installation slut"
#if LCD_W >= 480
#define TR_BL_INVALID_FIRMWARE "Ikke en installationsfil!"
#elif LCD_W >= 212
#define TR_BL_OR_PLUGIN_USB_CABLE TR_BL_USB_PLUGIN_MASS_STORE
#define TR_BL_HOLD_ENTER_TO_START "\012[ENT] for at starte installation"
#define TR_BL_INVALID_FIRMWARE "\011Ikke en installationsfil! "
#define TR_BL_INVALID_EEPROM "\011Ikke en EEPROM fil! "
#else
#define TR_BL_OR_PLUGIN_USB_CABLE TR_BL_USB_PLUGIN
#define TR_BL_HOLD_ENTER_TO_START "\006[ENT] for at starte"
#define TR_BL_INVALID_FIRMWARE "\004Ikke en installationsfil! "
#define TR_BL_INVALID_EEPROM "\004Ikke en EEPROM fil! "
#endif
// Bootloader Taranis specific - ASCII characters only
#define TR_BL_RESTORE_EEPROM "Genskab EEPROM"
#define TR_BL_POWER_KEY "Tryk power knap."
#define TR_BL_FLASH_EXIT "Forlad installation tilstand."
// Bootloader Horus specific - ASCII characters only
#define TR_BL_ERASE_INT_FLASH "Slet intern flash lager"
#define TR_BL_ERASE_FLASH "Slet flash lager"
#define TR_BL_ERASE_FLASH_MSG "Dette kan vare op til 200s"
#define TR_BL_RF_USB_ACCESS "RF USB adgang"
#define TR_BL_CURRENT_FW "Current firmware:"
#if defined(PCBPL18)
// Bootloader PL18/NB4+ specific - ASCII characters only
#define TR_BL_ENABLE "Aktiver"
#define TR_BL_DISABLE "Deaktiver"
#if defined(RADIO_NV14_FAMILY)
#define TR_BL_SELECT_KEY "[R TRIM] for at bruge fil"
#define TR_BL_FLASH_KEY "Hold [R TRIM] laenge, for at starte"
#define TR_BL_ERASE_KEY "Hold [R TRIM] laenge, for at slette"
#define TR_BL_EXIT_KEY "[L TRIM] for at forlade"
#elif defined(RADIO_NB4P)
#define TR_BL_SELECT_KEY "[SW1A] for at bruge fil"
#define TR_BL_FLASH_KEY "Hold [SW1A] laenge, for at starte"
#define TR_BL_ERASE_KEY "Hold [SW1A] laenge, for at slette"
#define TR_BL_EXIT_KEY "[SW1B] for at forlade"
#else
#define TR_BL_SELECT_KEY "[TR4 Dn] for at bruge fil"
#define TR_BL_FLASH_KEY "Hold [TR4 Dn] laenge, for at starte"
#define TR_BL_ERASE_KEY "Hold [TR4 Dn] laenge, for at slette"
#define TR_BL_EXIT_KEY "[TR4 Up] for at forlade"
#endif
#elif defined(PCBNV14)
#define TR_BL_SELECT_KEY "[R TRIM] for at bruge fil"
#define TR_BL_FLASH_KEY "[R TRIM] laenge, for at starte"
#define TR_BL_EXIT_KEY "[L TRIM] for at forlade"
#define TR_BL_ENABLE "Aktiver"
#define TR_BL_DISABLE "Deaktiver"
#else
#define TR_BL_SELECT_KEY "[ENT] for at bruge fil"
#define TR_BL_FLASH_KEY "Hold [ENT] laenge, for at starte"
#define TR_BL_ERASE_KEY "Hold [ENT] laenge, for at slette"
#define TR_BL_EXIT_KEY "[RTN] for at forlade"
#endif
// About screen
#define TR_ABOUTUS TR(" OM ", "OM")