mayhem-firmware/firmware/common/ui_language.cpp
Totoo b58ee761a1
Move more apps + language module (#1643)
* CoasterP to ext (Burger pager)
* LGE to ext app
* Solve compiler literal removal with centralizing common string literals.
2023-12-12 16:55:50 +01:00

19 lines
540 B
C++

#include "ui_language.hpp"
const char* LanguageHelper::englishMessages[] = {"OK", "Cancel", "Error", "Modem setup", "Debug", "Log", "Done", "Start", "Stop", "Scan", "Clear", "Ready", "Data:"};
const char** LanguageHelper::currentMessages = englishMessages;
void LanguageHelper::setLanguage(LanguageList lang) {
switch (lang) {
default:
case ENGLISH:
currentMessages = englishMessages;
break;
}
}
const char* LanguageHelper::getMessage(LangConsts msg) {
return currentMessages[msg];
}