Refactor strings BREAKING (#1474)

* refactor strings, split out consts breaking!

* move consts out of strings file BREAKING

You will have to remove the constants from your strings files and add the new include instead, a simple diff should obviously show the changes

* adds WM_STRINGS_FILE for env overrides

* Revert "move consts out of strings file BREAKING"

This reverts commit bb9f092413153825d8e7acde1dcc1489e840df1e.

* Create wm_strings_en.h

* final clean up of strings_en.h, legacy

* comments
This commit is contained in:
Shawn A
2022-11-28 16:15:20 -06:00
committed by GitHub
parent 6eb8432357
commit 0080e3581e
4 changed files with 545 additions and 498 deletions
+8 -2
View File
@@ -131,13 +131,19 @@
#include <DNSServer.h>
#include <memory>
#include "strings_en.h"
// Include wm strings vars
// Pass in strings env override via WM_STRINGS_FILE
#ifndef WM_STRINGS_FILE
#define WM_STRINGS_FILE "wm_strings_en.h" // this includes constants as dependency
#endif
#include WM_STRINGS_FILE
// prep string concat vars
#define WM_STRING2(x) #x
#define WM_STRING(x) WM_STRING2(x)
// #include <esp_idf_version.h>
#ifdef ESP_IDF_VERSION
// #pragma message "ESP_IDF_VERSION_MAJOR = " WM_STRING(ESP_IDF_VERSION_MAJOR)