kopia lustrzana https://github.com/OpenRTX/OpenRTX
Extracted and added a few more strings to the string table and created voice prompts for those strings.
rodzic
46fab4642b
commit
e691f37f88
|
|
@ -80,5 +80,7 @@ const stringsTable_t englishStrings =
|
|||
.toReset = "To reset:",
|
||||
.pressEnterTwice = "Press Enter twice",
|
||||
.macroMenu = "Macro Menu",
|
||||
.forEmergencyUse = "For emergency use",
|
||||
.pressAnyButton = "press any button.",
|
||||
};
|
||||
#endif //EnglishStrings_h_included
|
||||
|
|
|
|||
|
|
@ -85,6 +85,8 @@ typedef struct
|
|||
const char* toReset;
|
||||
const char* pressEnterTwice;
|
||||
const char* macroMenu;
|
||||
const char* forEmergencyUse;
|
||||
const char* pressAnyButton;
|
||||
} stringsTable_t;
|
||||
|
||||
extern const stringsTable_t languages[];
|
||||
|
|
|
|||
|
|
@ -423,7 +423,7 @@ void ui_drawSplashScreen(bool centered)
|
|||
splash_origin.y = SCREEN_HEIGHT / 2 + 6;
|
||||
else
|
||||
splash_origin.y = SCREEN_HEIGHT / 4;
|
||||
gfx_print(splash_origin, FONT_SIZE_12PT, TEXT_ALIGN_CENTER, yellow_fab413, "OpenRTX");
|
||||
gfx_print(splash_origin, FONT_SIZE_12PT, TEXT_ALIGN_CENTER, yellow_fab413, currentLanguage->openRTX);
|
||||
#else
|
||||
if(centered)
|
||||
splash_origin.y = SCREEN_HEIGHT / 2 - 6;
|
||||
|
|
@ -447,12 +447,12 @@ void _ui_drawLowBatteryScreen()
|
|||
FONT_SIZE_6PT,
|
||||
TEXT_ALIGN_CENTER,
|
||||
color_white,
|
||||
"For emergency use");
|
||||
currentLanguage->forEmergencyUse);
|
||||
gfx_print(text_pos_2,
|
||||
FONT_SIZE_6PT,
|
||||
TEXT_ALIGN_CENTER,
|
||||
color_white,
|
||||
"press any button.");
|
||||
currentLanguage->pressAnyButton);
|
||||
}
|
||||
|
||||
freq_t _ui_freq_add_digit(freq_t freq, uint8_t pos, uint8_t number)
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue