Skip to content

Commit

Permalink
chore(translation): compiler warning, cleanup (EdgeTX#4825)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick authored Apr 1, 2024
1 parent 0ec64c9 commit 9357e2d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions radio/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ include(CMakeForceCompiler)
include(Bitmaps)

set(PCB_TYPES X9LITE X9LITES X7 XLITE XLITES X9D X9D+ X9E X10 X12S NV14 PL18)
set(RADIO_LANGUAGES CN CZ DA DE EN ES FI FR HE IT JP PT RU SK SE PL HU NL TW UA)
set(TTS_LANGUAGES CN CZ DA DE EN ES FR HE IT JP PT RU SK SE PL HU NL UA)
set(RADIO_LANGUAGES CN CZ DA DE EN ES FI FR HE HU IT JP NL PL PT RU SE SK TW UA)
set(TTS_LANGUAGES CN CZ DA DE EN ES FR HE HU IT JP NL PL PT RU SE SK UA)

set(PCB "X9D+" CACHE STRING "Radio type, one of: ${PCB_TYPES}")
set_property(CACHE PCB PROPERTY STRINGS ${PCB_TYPES})
Expand Down
7 changes: 2 additions & 5 deletions radio/src/targets/taranis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ elseif(PCB STREQUAL XLITES)
add_definitions(-DMANUFACTURER_FRSKY)
endif()

message("CPU_TYPE_FULL = ${CPU_FULL_TYPE}")
message("CPU_TYPE_FULL = ${CPU_TYPE_FULL}")
if(CPU_TYPE_FULL STREQUAL STM32F205xE)
set(CPU_TYPE STM32F2)
add_definitions(-DSTM32F205xx)
Expand All @@ -504,12 +504,9 @@ elseif (CPU_TYPE_FULL STREQUAL STM32F413xG)
add_definitions(-DSTM32F40_41xxx -DSTM32F413xx)
set(TARGET_LINKER_DIR stm32f413)
else()
message( FATAL_ERROR "Unknown CPU_TYPE_FULL" )
message(FATAL_ERROR "Unknown CPU_TYPE_FULL" )
endif()

if(TRANSLATIONS STREQUAL UA AND NOT TARGET_FLASH_SIZE STREQUAL 1M)
set(PXX2 OFF)
endif()

if(ENABLE_SERIAL_PASSTHROUGH)
set(CLI ON "Enable CLI")
Expand Down
2 changes: 1 addition & 1 deletion radio/src/translations/cz.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@
#define TR_SETMIDPOINT CENTER "\006NASTAVIT STŘED POTU"
#define TR_MOVESTICKSPOTS CENTER "\002HÝBAT TOČIT/PLYN/POTY/OSY"
#else
#define TR_SETMIDPOINT TR(CENTER "\006NASTAVIT STŘED OSY", "\004STŘED OSY/SLIDERU")
#define TR_SETMIDPOINT TR(CENTER "\006NASTAVIT STŘED OSY", CENTER "\004STŘED OSY/SLIDERU")
#define TR_MOVESTICKSPOTS CENTER "\007HÝBAT OSY/POTY"
#endif
#endif
Expand Down
1 change: 0 additions & 1 deletion radio/src/translations/pl.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@
#define TR_POPUPS_ENTER_EXIT TR_ENTER "\010" TR_EXIT
#endif

#define TR_MENUWHENDONE CENTER "\006" TR_ENTER " > DALEJ"
#define TR_FREE "woln"
#define TR_YES "Tak"
#define TR_NO "Nie"
Expand Down

0 comments on commit 9357e2d

Please sign in to comment.