mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-15 12:38:11 +00:00
19 lines
540 B
C++
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];
|
||
|
}
|