mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
d303098e35
* Moved GPSSim * Moved spainter
19 lines
548 B
C++
19 lines
548 B
C++
#include "ui_language.hpp"
|
|
|
|
const char* LanguageHelper::englishMessages[] = {"OK", "Cancel", "Error", "Modem setup", "Debug", "Log", "Done", "Start", "Stop", "Scan", "Clear", "Ready", "Data:", "Loop"};
|
|
|
|
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];
|
|
}
|