mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
show Boiler/HP on web pages
This commit is contained in:
@@ -155,6 +155,9 @@ const char * EMSdevice::device_type_2_device_name(const uint8_t device_type) {
|
|||||||
const char * EMSdevice::device_type_2_device_name_translated() {
|
const char * EMSdevice::device_type_2_device_name_translated() {
|
||||||
switch (device_type_) {
|
switch (device_type_) {
|
||||||
case DeviceType::BOILER:
|
case DeviceType::BOILER:
|
||||||
|
if (flags_ == EMS_DEVICE_FLAG_HEATPUMP) {
|
||||||
|
return Helpers::translated_word(FL_(boiler_hp_device));
|
||||||
|
}
|
||||||
return Helpers::translated_word(FL_(boiler_device));
|
return Helpers::translated_word(FL_(boiler_device));
|
||||||
case DeviceType::THERMOSTAT:
|
case DeviceType::THERMOSTAT:
|
||||||
return Helpers::translated_word(FL_(thermostat_device));
|
return Helpers::translated_word(FL_(thermostat_device));
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
// if there is no translation, it will default to en
|
// if there is no translation, it will default to en
|
||||||
//
|
//
|
||||||
// device types, as display in Web and Console
|
// device types, as display in Web and Console
|
||||||
|
MAKE_WORD_TRANSLATION(boiler_hp_device, "Boiler/HP", "Kessel/WP", "CV ketel/WP", "Värmepanna/VP", "Kocioł/PC", "Varmekjele/VP", "", "Kazan/IP", "Caldaia/PC", "Bojler/Tč") // TODO translate
|
||||||
MAKE_WORD_TRANSLATION(boiler_device, "Boiler", "Kessel", "CV ketel", "Värmepanna", "Kocioł", "Varmekjele", "", "Kazan", "Caldaia", "Bojler") // TODO translate
|
MAKE_WORD_TRANSLATION(boiler_device, "Boiler", "Kessel", "CV ketel", "Värmepanna", "Kocioł", "Varmekjele", "", "Kazan", "Caldaia", "Bojler") // TODO translate
|
||||||
MAKE_WORD_TRANSLATION(thermostat_device, "Thermostat", "Thermostat", "Thermostaat", "Termostat", "Termostat", "Termostat", "", "Termostat", "Termostato", "Termostat") // TODO translate
|
MAKE_WORD_TRANSLATION(thermostat_device, "Thermostat", "Thermostat", "Thermostaat", "Termostat", "Termostat", "Termostat", "", "Termostat", "Termostato", "Termostat") // TODO translate
|
||||||
MAKE_WORD_TRANSLATION(heatpump_device, "Heat Pump", "Wärmepumpe", "Warmtepomp", "Värmepump", "Pompa ciepła", "Varmepumpe", "", "Isı Pompası", "Pompa di Calore", "Tepelné čerpadlo") // TODO translate
|
MAKE_WORD_TRANSLATION(heatpump_device, "Heat Pump", "Wärmepumpe", "Warmtepomp", "Värmepump", "Pompa ciepła", "Varmepumpe", "", "Isı Pompası", "Pompa di Calore", "Tepelné čerpadlo") // TODO translate
|
||||||
|
|||||||
Reference in New Issue
Block a user