mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-30 01:36:50 -05:00
d31857c21e
* moved to ook_remote dir * moved to new filenames / dir * adjusted build files to new dir/filenames * changed name of var / dirname * deleted wrongly included swap files * Added 'Set' 'Open File' * Use language API, make it so TX can be started and also stopped * added send, recv * fixed the name which was too long * renamed some fields, moved the ui, added some text informations, renames some variables * changed to FrequencyField, allow on change, on edit, commented out button_save for a next pass * added OOK files examples * added button_save feature
21 lines
844 B
C++
21 lines
844 B
C++
#include "ui_language.hpp"
|
|
|
|
// use the exact position in this array! the enum's value is the identifier. Best to add to the end
|
|
const char* LanguageHelper::englishMessages[] = {"OK", "Cancel", "Error", "Modem setup", "Debug", "Log", "Done", "Start", "Stop", "Scan", "Clear", "Ready", "Data:", "Loop", "Reset", "Pause", "Resume", "Flood", "Show QR", "Save", "Lock", "Unlock", "Browse", "Set", "Open File", "Save File", "Send", "Receive"};
|
|
|
|
// multi language support will changes (not in use for now)
|
|
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];
|
|
}
|