Replies: 3 comments 3 replies
-
If you set preferences in the |
Beta Was this translation helpful? Give feedback.
-
You could try to rename |
Beta Was this translation helpful? Give feedback.
-
Yes, that works - thank you. There are only a few strings which are hardcoded to the cpp files and therefore not able to be changed. I am still searching for a way to display dates including weekdays in German language ("template":"%a, %e. %b %Y"). As far as I understand, the function strftime() is used in hasp_event.cpp to translate the magic string. This function should take the localization into account. I tried to add setlocale(LC_TIME, "de_DE") in front of strftime(), but this did not change anything. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I try compile the code with language set to German. For my M5Stack Core2 I did the following:
In user_config_override.h, I enabled "#define HASP_LANGUAGE de_DE", the others disabled
In platformio_override.h I enabled:
user_setups/esp32/*.ini
-DUSE_CONFIG_OVERRIDE
m5stack-core2
The code is compiled successfully, but after uploading the compiled firmware "build_output/firmware/m5stack-core2_ota_v0.7.0-rc12_73c1539.bin" the gui is still in English language. For test, I also set a MQTT username in user_config_override.h, which is ignored and not shown in the gui.
To test, whether the file user_config_override.h is really used during compilation, I added a wrong string to the file, which gave me an error (as expected).
Is there any additional measure I have to take to get a firmware with German gui?
Beta Was this translation helpful? Give feedback.
All reactions