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