Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.76k stars 3.17k forks source link

Add translation #459

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi Maybe a good feature request will be add multilanguage ? I can support translation to POLISH language. What do you think ?

Aircoookie commented 4 years ago

Hi, yes I do believe that is a very good idea! I still have to add the necessary infrastructure to support multiple languages though. Also I already have other users who would be doing translations to Spanish, Russian, Danish, maybe Japanese and German (myself haha). So I will think about adding that language support soon, at least for the main UI!

ghost commented 4 years ago

You can inform US on this thread when you add?

Aircoookie commented 4 years ago

Sure!

keesg60 commented 4 years ago

Please add Dutch also when you’re ready. I’m willing to do the translation.

Vvasyash commented 4 years ago

I’m ready for Russian

Hi, yes I do believe that is a very good idea! I still have to add the necessary infrastructure to support multiple languages though. Also I already have other users who would be doing translations to Spanish, Russian, Danish, maybe Japanese and German (myself haha). So I will think about adding that language support soon, at least for the main UI!

deusyv commented 4 years ago

and me for French

Nikolay16700011 commented 3 years ago

Good afternoon, is the theme still alive? Today I picked through the code. It was not difficult to translate the configuration pages, they are open in the IDE sketch. But how to translate the main screen, with control buttons. In the Arduino IDE, it is somehow encoded. The data folder contains html files, but changing their language does not affect anything. How to translate the program desktop correctly.

Aircoookie commented 3 years ago

@Nikolay16700011 you'd need to edit the files in the data folder indeed, and after that run an npm command to encode the data for the sketch. No need to change anything in the .h files directly: https://github.com/Aircoookie/WLED/wiki/Add-own-functionality#changing-web-ui

Note that I'll still need to add a custom JSON infrastructure to support dynamic language switching. So you can translate it for your own use, but you won't be able to switch between it and the english version easily.

pepsonEL commented 3 years ago

But when you plan add translation support ? I also can help with translation POLISH.

Nikolay16700011 commented 3 years ago

Thanks to Aircoookie, it worked!!! There was a problem with the settings page (settings.html), it had to be corrected manually. When translating the names of buttons other than English, symbols were displayed instead of letters on the buttons. At the top of the page code, I added the line < html> . After that, everything was displayed normally. Recommendations for those who want to make this journey. Make all changes on one page, and immediately try to upload to ESP. To see the error in time. Then proceed to the next one. The names of the effects themselves need to be translated in the Arduino sketch, FX tab.h the names of the effects :const char JSON_mode_names[] The names of the color palettes: JSON_palette_names const char[].

DarkAssassinUA commented 1 week ago

Still waiting possibility to translate

Sojourneer commented 1 day ago

Still waiting possibility to translate

I'm well under way as described in #3180. Google Translate API gives a quick translation which can be tweaked.