Add multilingual support with language selection and translation strings
- Introduced language management with English and German translations. - Added language settings to NVS for persistent storage. - Updated display functions to use translated strings for various messages. - Implemented API endpoints for language retrieval and setting. - Refactored existing text strings in the codebase to utilize the new translation system.
This commit is contained in:
1 parent
067807d1a6
commit
9311162463
12 files changed
+522
-68
No files matched your search
+2
-1
@@ -3,6 +3,7 @@
|
||||
#include <commonFS.h>
|
||||
#include "scale.h"
|
||||
#include "nfc.h"
|
||||
#include "lang.h"
|
||||
|
||||
|
||||
// Globale Variablen für Config Backups hinzufügen
|
||||
@@ -178,7 +179,7 @@ void handleUpdate(AsyncWebServer &server) {
|
||||
static int lastProgress = -1;
|
||||
if (currentProgress != lastProgress && (currentProgress % 10 == 0 || final)) {
|
||||
sendUpdateProgress(currentProgress, "uploading");
|
||||
oledShowProgressBar(currentProgress, 100, "Update", "Download");
|
||||
oledShowProgressBar(currentProgress, 100, tr(STR_UPDATE), tr(STR_DOWNLOAD));
|
||||
vTaskDelay(pdMS_TO_TICKS(50));
|
||||
lastProgress = currentProgress;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user