mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
Multi-language/I18n support #22
This commit is contained in:
11
src/system.h
11
src/system.h
@@ -203,6 +203,16 @@ class System {
|
||||
return fahrenheit_;
|
||||
}
|
||||
|
||||
uint8_t language_index();
|
||||
|
||||
void locale(String locale) {
|
||||
locale_ = locale;
|
||||
}
|
||||
|
||||
std::string locale() {
|
||||
return std::string(locale_.c_str());
|
||||
}
|
||||
|
||||
void healthcheck(uint8_t healthcheck) {
|
||||
healthcheck_ = healthcheck;
|
||||
}
|
||||
@@ -257,6 +267,7 @@ class System {
|
||||
// EMS-ESP settings
|
||||
// copies from WebSettings class in WebSettingsService.h and loaded with reload_settings()
|
||||
std::string hostname_ = FACTORY_WIFI_HOSTNAME;
|
||||
String locale_;
|
||||
bool hide_led_;
|
||||
uint8_t led_gpio_;
|
||||
bool analog_enabled_;
|
||||
|
||||
Reference in New Issue
Block a user