2023-12-12 15:55:50 +00:00
|
|
|
#ifndef __UI_LANGUAGE_H__
|
|
|
|
#define __UI_LANGUAGE_H__
|
|
|
|
|
|
|
|
enum LanguageList {
|
|
|
|
ENGLISH,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum LangConsts {
|
|
|
|
LANG_OK,
|
|
|
|
LANG_CANCEL,
|
|
|
|
LANG_ERROR,
|
|
|
|
LANG_MODEM_SETUP,
|
|
|
|
LANG_DEBUG,
|
|
|
|
LANG_LOG,
|
|
|
|
LANG_DONE,
|
|
|
|
LANG_START,
|
|
|
|
LANG_STOP,
|
|
|
|
LANG_SCAN,
|
|
|
|
LANG_CLEAR,
|
|
|
|
LANG_READY,
|
2024-01-05 09:46:09 +00:00
|
|
|
LANG_DATADP,
|
|
|
|
LANG_LOOP
|
2023-12-12 15:55:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class LanguageHelper {
|
|
|
|
public:
|
|
|
|
static void setLanguage(LanguageList lang);
|
|
|
|
static const char* getMessage(LangConsts msg);
|
|
|
|
static const char** currentMessages; // expose, so can link directly too
|
|
|
|
|
|
|
|
private:
|
|
|
|
static const char* englishMessages[];
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|