From 7cc2eac79d927ef75f3a01fee3b06bf107fb3c6f Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Fri, 2 Sep 2022 14:15:49 +0200 Subject: [PATCH] add nl to entity translation --- src/locale_translations.h | 13 +++++++------ src/system.cpp | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/locale_translations.h b/src/locale_translations.h index f3a23cd99..a90f6f575 100644 --- a/src/locale_translations.h +++ b/src/locale_translations.h @@ -21,15 +21,16 @@ // Makes sure they are also added in same order to languages[] in system.cpp #define EMSESP_LOCALE_EN "en" #define EMSESP_LOCALE_DE "de" +#define EMSESP_LOCALE_NL "nl" // translations are in order en, de // if there is no translation, it will default to en // General -MAKE_PSTR_LIST(on, F("on"), F("an")) -MAKE_PSTR_LIST(off, F("off"), F("aus")) -MAKE_PSTR_LIST(ON, F("ON"), F("AN")) -MAKE_PSTR_LIST(OFF, F("OFF"), F("AUS")) +MAKE_PSTR_LIST(on, F("on"), F("an"), F("naar")) +MAKE_PSTR_LIST(off, F("off"), F("aus"), F("van")) +MAKE_PSTR_LIST(ON, F("ON"), F("AN"), F("NAAR")) +MAKE_PSTR_LIST(OFF, F("OFF"), F("AUS"), F("VAN")) // Unit Of Measurement mapping - maps to DeviceValueUOM_s in emsdevice.cpp // uom - also used with HA see https://github.com/home-assistant/core/blob/d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf/homeassistant/const.py#L384 @@ -366,8 +367,8 @@ MAKE_PSTR_LIST(wwMaxTemp, F("wwmaxtemp"), F("maximum temperature"), F("Maximale MAKE_PSTR_LIST(wwOneTimeKey, F("wwonetimekey"), F("one time key function"), F("Einmalladungstaste")) // mqtt values / commands -MAKE_PSTR_LIST(switchtime, F("switchtime"), F("program switchtime"), F("Program Schaltzeit")) -MAKE_PSTR_LIST(switchtime1, F("switchtime1"), F("own1 program switchtime"), F("Program 1 Schaltzeit")) +MAKE_PSTR_LIST(switchtime, F("switchtime"), F("program switchtime"), F("Programm Schaltzeit")) +MAKE_PSTR_LIST(switchtime1, F("switchtime1"), F("own1 program switchtime"), F("Programm 1 Schaltzeit")) MAKE_PSTR_LIST(switchtime2, F("switchtime2"), F("own2 program switchtime"), F("Programm 2 Schaltzeit")) MAKE_PSTR_LIST(wwswitchtime, F("wwswitchtime"), F("program switchtime"), F("Programm Schaltzeit")) MAKE_PSTR_LIST(wwcircswitchtime, F("wwcircswitchtime"), F("circulation program switchtime"), F("Zirculationsprogramm Schaltzeit")) diff --git a/src/system.cpp b/src/system.cpp index c46bd79e8..0b763649e 100644 --- a/src/system.cpp +++ b/src/system.cpp @@ -42,7 +42,7 @@ namespace emsesp { // Languages supported. Note: the order is important and must match locale_translations.h -const char * const languages[] = {EMSESP_LOCALE_EN, EMSESP_LOCALE_DE}; +const char * const languages[] = {EMSESP_LOCALE_EN, EMSESP_LOCALE_DE, EMSESP_LOCALE_NL}; size_t num_languages = sizeof(languages) / sizeof(const char *);