This commit is contained in:
proddy
2026-07-26 11:16:10 +02:00
parent ac36b072e8
commit c91488d2fe
8 changed files with 15 additions and 10 deletions
+6 -1
View File
@@ -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) {