WiP: String arrays for translations

DE, EN, FI, FR are done, now we need all the other languages
This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent db684893e2
commit 56bec5ca3a
21 changed files with 3369 additions and 2547 deletions
+4 -7
View File
@@ -745,17 +745,14 @@ void checkAll()
auto dlg = new FullScreenDialog(WARNING_TYPE_ALERT, STR_KEYSTUCK);
LED_ERROR_BEGIN();
AUDIO_ERROR_MESSAGE(AU_ERROR);
tmr10ms_t tgtime = get_tmr10ms() + 500;
uint32_t keys = readKeys();
std::string strKeys("");
const char STR_VKEYS[] = TR_VKEYS;
const int len = int(LEN_VKEYS[0]);
char s[6];
s[5] = 0;
std::string strKeys;
for (int i = 0; i < (int)TRM_BASE; i++) {
if (keys & (1 << i)) {
strncpy(s, &STR_VKEYS[i * len], len);
strKeys += s;
strKeys += std::string(STR_VKEYS[i]);
}
}