added compile flag -DEMSESP_DE_ONLY

This commit is contained in:
Proddy
2023-03-11 17:23:41 +01:00
parent dc3c6cad05
commit c960db5180
3 changed files with 4 additions and 1 deletions

View File

@@ -55,6 +55,8 @@ using string_vector = std::vector<const char *>;
#if defined(EMSESP_TEST)
// In testing just take one language (en) to save on Flash space
#define MAKE_TRANSLATION(list_name, shortname, en, ...) static const char * const __pstr__L_##list_name[] = {shortname, en, nullptr};
#elif defined(EMSESP_DE_ONLY)
#define MAKE_TRANSLATION(list_name, shortname, en, de, ...) static const char * const __pstr__L_##list_name[] = {shortname, de, nullptr};
#else
#define MAKE_TRANSLATION(list_name, ...) static const char * const __pstr__L_##list_name[] = {__VA_ARGS__, nullptr};
#endif