diff --git a/README.md b/README.md index 3d9ccefef..e00731177 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## Sonoff-Tasmota Provide ESP8266 based Sonoff by [iTead Studio](https://www.itead.cc/) and ElectroDragon IoT Relay with Serial, Web and MQTT control allowing 'Over the Air' or OTA firmware updates using Arduino IDE. -Current version is **5.6.1j** - See [sonoff/_releasenotes.ino](https://github.com/arendst/Sonoff-Tasmota/blob/development/sonoff/_releasenotes.ino) for change information. +Current version is **5.6.1k** - See [sonoff/_releasenotes.ino](https://github.com/arendst/Sonoff-Tasmota/blob/development/sonoff/_releasenotes.ino) for change information. ### ATTENTION All versions diff --git a/sonoff/_releasenotes.ino b/sonoff/_releasenotes.ino index 7ac6c1dfc..57183d6f0 100644 --- a/sonoff/_releasenotes.ino +++ b/sonoff/_releasenotes.ino @@ -1,4 +1,7 @@ -/* 5.6.1j +/* 5.6.1k + * Fix preprocessor language selection + * + * 5.6.1j * Fix compile error on Linux due to language folder name * * 5.6.1i diff --git a/sonoff/i18n.h b/sonoff/i18n.h index f13ff4c7c..a7cb34e14 100644 --- a/sonoff/i18n.h +++ b/sonoff/i18n.h @@ -17,10 +17,14 @@ along with this program. If not, see . */ -#ifndef LANGUAGE - #define LANGUAGE "language/en-GB.h" +#ifndef MY_LANGUAGE + #include "language/en-GB.h" +#else + #define QUOTEME(x) QUOTEME_1(x) + #define QUOTEME_1(x) #x + #define INCLUDE_FILE(x) QUOTEME(language/x.h) + #include INCLUDE_FILE(MY_LANGUAGE) #endif -#include LANGUAGE // Common diff --git a/sonoff/language/nl-NL.h b/sonoff/language/nl-NL.h index dc0e4b369..eece900a5 100644 --- a/sonoff/language/nl-NL.h +++ b/sonoff/language/nl-NL.h @@ -1,5 +1,5 @@ /* - i18n_nl-NL.h - localization for Dutch - Nederland for Sonoff-Tasmota + nl-NL.h - localization for Dutch - Nederland for Sonoff-Tasmota Copyright (C) 2017 Theo Arends @@ -26,7 +26,6 @@ * \*********************************************************************/ -// Time and Date managed by SDK will not be localized (yet) // "2017-03-07T11:08:02" - ISO8601:2004 #define D_YEAR_MONTH_SEPARATOR "-" #define D_MONTH_DAY_SEPARATOR "-" diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index d0c953be8..0a311ea37 100644 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -25,7 +25,7 @@ - Select IDE Tools - Flash Size: "1M (no SPIFFS)" ====================================================*/ -#define VERSION 0x0506010A // 5.6.1j +#define VERSION 0x0506010B // 5.6.1k enum log_t {LOG_LEVEL_NONE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_DEBUG_MORE, LOG_LEVEL_ALL}; enum week_t {Last, First, Second, Third, Fourth}; diff --git a/sonoff/user_config.h b/sonoff/user_config.h index 5160626c0..08ab2bac7 100644 --- a/sonoff/user_config.h +++ b/sonoff/user_config.h @@ -26,8 +26,8 @@ \*********************************************************************************************/ // -- Localization -------------------------------- -#define LANGUAGE "language/en-GB.h" -//#define LANGUAGE "language/nl-NL.h" +//#define MY_LANGUAGE en-GB // Enabled by Default +//#define MY_LANGUAGE nl-NL // -- Project ------------------------------------- #define PROJECT "sonoff" // PROJECT is used as the default topic delimiter and OTA file name