From 8b29c1973de6464e4c5f0d009112fbec6767e172 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sat, 11 Mar 2023 17:31:33 +0100 Subject: [PATCH] DEMSESP_EN_ONLY --- pio_local.ini_example | 1 + src/common.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pio_local.ini_example b/pio_local.ini_example index e8850a979..eed96ed5e 100644 --- a/pio_local.ini_example +++ b/pio_local.ini_example @@ -10,6 +10,7 @@ ; -DCORE_DEBUG_LEVEL=5 ; verbose core level debugging 5=verbose, 4=debug, 3=info ; -DEMSESP_TEST ; enable the tests. EN language only ; -DEMSESP_DE_ONLY ; only DE translated entity names +; -DEMSESP_EN_ONLY ; only EN translated entity names ; my_build_flags = -DEMSESP_DEBUG [env:esp32_4M] diff --git a/src/common.h b/src/common.h index e1c987df5..b63ca01a6 100644 --- a/src/common.h +++ b/src/common.h @@ -52,7 +52,7 @@ using string_vector = std::vector; #define F_(string_name) (__pstr__##string_name) #define FL_(list_name) (__pstr__L_##list_name) -#if defined(EMSESP_TEST) +#if defined(EMSESP_TEST) || defined(EMSESP_EN_ONLY) // 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)