mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-09-13 13:44:10 +00:00
cz -> cs
This commit is contained in:
+6
-1
@@ -71,7 +71,7 @@ const char * const languages[] = {EMSESP_LOCALE_EN,
|
||||
EMSESP_LOCALE_TR,
|
||||
EMSESP_LOCALE_IT,
|
||||
EMSESP_LOCALE_SK,
|
||||
EMSESP_LOCALE_CZ};
|
||||
EMSESP_LOCALE_CS};
|
||||
#endif
|
||||
|
||||
static constexpr uint8_t NUM_LANGUAGES = sizeof(languages) / sizeof(const char *);
|
||||
@@ -1632,6 +1632,11 @@ bool System::check_upgrade() {
|
||||
return StateUpdateResult::CHANGED;
|
||||
}
|
||||
}
|
||||
// Migrate language from cz to cs
|
||||
if (settings.locale == "cz") {
|
||||
settings.locale = "cs";
|
||||
return StateUpdateResult::CHANGED;
|
||||
}
|
||||
return StateUpdateResult::UNCHANGED;
|
||||
});
|
||||
} else if (this_version < settings_version) {
|
||||
|
||||
Reference in New Issue
Block a user