mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 04:36:38 +00:00
Translate strings
This commit is contained in:
parent
00111e46c5
commit
3ed8fdaa80
@ -142,22 +142,22 @@ void Page::load_jsonl(const char* pagesfile)
|
|||||||
if(pagesfile[0] == '\0') return;
|
if(pagesfile[0] == '\0') return;
|
||||||
|
|
||||||
if(!filesystemSetup()) {
|
if(!filesystemSetup()) {
|
||||||
LOG_ERROR(TAG_HASP, F("FS not mounted. Failed to load %s"), pagesfile);
|
LOG_ERROR(TAG_HASP, F("FS not mounted. " D_FILE_LOAD_FAILED), pagesfile);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!HASP_FS.exists(pagesfile)) {
|
if(!HASP_FS.exists(pagesfile)) {
|
||||||
LOG_ERROR(TAG_HASP, F("Non existing file %s"), pagesfile);
|
LOG_ERROR(TAG_HASP, F(D_FILE_LOAD_FAILED), pagesfile);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_TRACE(TAG_HASP, F("Loading file %s"), pagesfile);
|
LOG_TRACE(TAG_HASP, F(D_FILE_LOADING), pagesfile);
|
||||||
|
|
||||||
File file = HASP_FS.open(pagesfile, "r");
|
File file = HASP_FS.open(pagesfile, "r");
|
||||||
dispatch_parse_jsonl(file);
|
dispatch_parse_jsonl(file);
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
LOG_INFO(TAG_HASP, F("File %s loaded"), pagesfile);
|
LOG_INFO(TAG_HASP, F(D_FILE_LOADED), pagesfile);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#if HASP_USE_EEPROM > 0
|
#if HASP_USE_EEPROM > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user