Browse Source

add french language for webpages

pull/1778/head
you69man 1 year ago
parent
commit
93c262c02d
  1. 2
      scripts/convertHtml.py
  2. 28
      src/platformio.ini
  3. 45
      src/web/lang.h
  4. 908
      src/web/lang.json

2
scripts/convertHtml.py

@ -232,6 +232,8 @@ def main():
lang = "en"
if env['PIOENV'][-3:] == "-de":
lang = "de"
if env['PIOENV'][-3:] == "-fr":
lang = "fr"
# go throw the array

28
src/platformio.ini

@ -67,6 +67,20 @@ build_flags = ${env.build_flags}
monitor_filters =
esp8266_exception_decoder
[env:esp8266-fr]
platform = espressif8266
board = esp12e
board_build.f_cpu = 80000000L
build_flags = ${env.build_flags}
-DEMC_MIN_FREE_MEMORY=4096
-DLANG_FR
-DENABLE_MQTT
-DPLUGIN_DISPLAY
-DENABLE_HISTORY
;-Wl,-Map,output.map
monitor_filters =
esp8266_exception_decoder
[env:esp8266-prometheus]
platform = espressif8266
board = esp12e
@ -104,8 +118,6 @@ build_flags = ${env.build_flags}
monitor_filters =
esp8266_exception_decoder
[env:esp8285]
platform = espressif8266
board = esp8285
@ -164,6 +176,18 @@ build_flags = ${env.build_flags}
monitor_filters =
esp32_exception_decoder
[env:esp32-wroom32-fr]
platform = espressif32@6.5.0
board = lolin_d32
build_flags = ${env.build_flags}
-DUSE_HSPI_FOR_EPD
-DENABLE_MQTT
-DPLUGIN_DISPLAY
-DENABLE_HISTORY
-DLANG_FR
monitor_filters =
esp32_exception_decoder
[env:esp32-wroom32-prometheus]
platform = espressif32@6.5.0
board = lolin_d32

45
src/web/lang.h

@ -8,68 +8,91 @@
#ifdef LANG_DE
#define REBOOT_ESP_APPLY_CHANGES "starte AhoyDTU neu, um die Änderungen zu speichern"
#else /*LANG_EN*/
#elif LANG_FR
#define REBOOT_ESP_APPLY_CHANGES "redémarrer AhoyDTU pour appliquer tous vos changements de configuration"
#else
#define REBOOT_ESP_APPLY_CHANGES "reboot AhoyDTU to apply all your configuration changes"
#endif
#ifdef LANG_DE
#define TIME_NOT_SET "keine gültige Zeit, daher keine Kommunikation zum Wechselrichter möglich"
#else /*LANG_EN*/
#elif LANG_FR
#define TIME_NOT_SET "heure non définie. Aucune communication avec l'onduleur possible"
#else
#define TIME_NOT_SET "time not set. No communication to inverter possible"
#endif
#ifdef LANG_DE
#define WAS_IN_CH_12_TO_14 "Der ESP war in WLAN Kanal 12 bis 14, was uU. zu Abstürzen führt"
#else /*LANG_EN*/
#elif LANG_FR
#define WAS_IN_CH_12_TO_14 "Votre ESP était sur les canaux wifi 12 à 14. Cela peut entraîner des redémarrages de votre AhoyDTU"
#else
#define WAS_IN_CH_12_TO_14 "Your ESP was in wifi channel 12 to 14. It may cause reboots of your AhoyDTU"
#endif
#ifdef LANG_DE
#define PATH_NOT_FOUND "Pfad nicht gefunden: "
#else /*LANG_EN*/
#elif LANG_FR
#define PATH_NOT_FOUND "Chemin introuvable : "
#else
#define PATH_NOT_FOUND "Path not found: "
#endif
#ifdef LANG_DE
#define INCOMPLETE_INPUT "Unvollständige Eingabe"
#else /*LANG_EN*/
#elif LANG_FR
#define INCOMPLETE_INPUT "Saisie incomplète"
#else
#define INCOMPLETE_INPUT "Incomplete input"
#endif
#ifdef LANG_DE
#define INVALID_INPUT "Ungültige Eingabe"
#else /*LANG_EN*/
#elif LANG_FR
#define INVALID_INPUT "Saisie invalide"
#else
#define INVALID_INPUT "Invalid input"
#endif
#ifdef LANG_DE
#define NOT_ENOUGH_MEM "nicht genügend Speicher"
#else /*LANG_EN*/
#elif LANG_FR
#define NOT_ENOUGH_MEM "Mémoire insuffisante"
#else
#define NOT_ENOUGH_MEM "Not enough memory"
#endif
#ifdef LANG_DE
#define DESER_FAILED "Deserialisierung fehlgeschlagen"
#else /*LANG_EN*/
#elif LANG_FR
#define DESER_FAILED "Échec de la désérialisation"
#else
#define DESER_FAILED "Deserialization failed"
#endif
#ifdef LANG_DE
#define INV_NOT_FOUND "Wechselrichter nicht gefunden!"
#else /*LANG_EN*/
#elif LANG_FR
#define INV_NOT_FOUND "onduleur non trouvé !"
#else
#define INV_NOT_FOUND "inverter not found!"
#endif
#ifdef LANG_DE
#define FACTORY_RESET "Ahoy auf Werkseinstellungen zurücksetzen"
#else /*LANG_EN*/
#elif LANG_FR
#define FACTORY_RESET "Réinitialisation d'usine d'Ahoy"
#else
#define FACTORY_RESET "Ahoy Factory Reset"
#endif
#ifdef LANG_DE
#define BTN_REBOOT "Ahoy neustarten"
#else /*LANG_EN*/
#elif LANG_FR
#define BTN_REBOOT "Redémarrer"
#else
#define BTN_REBOOT "Reboot"
#endif
#endif /*__LANG_H__*/

908
src/web/lang.json

File diff suppressed because it is too large
Loading…
Cancel
Save