Jomelo / LCDMenuLib2

Create a tree menu. Use it with different lcd types / console output / ssh console.
MIT License
251 stars 48 forks source link

Select language during program execution #42

Closed effeci closed 5 years ago

effeci commented 5 years ago

Hello! Firstable, Thanks for this beautiful library... I was tinkering with it from version one. I do like how the multilanguage is implemented, but i was wondering if it the language can be changed while using the program, like --->settings--->Language---->select Language; and then going back and ... boom: language switched. Is it possible? Thanks for the attention.

Jomelo commented 5 years ago

Yes it is possible with the latest version 2.1.0

In version 2.1.0 is a new example named LCDML_022_multiLanguage and some new macros. When you open this example and changed the variable from

g_lcdml_lang_select = LANG_DE; to g_lcdml_lang_select = LANG_DEFAULT;

in your program. The language will change directly.

Edit: remove the type of the variable :-)

effeci commented 5 years ago

Sorry but is it possible to switch while the program is running?

Jomelo commented 5 years ago

yes change the variable in the program.

Jomelo commented 5 years ago

I add a smaller example to test it:

https://github.com/Jomelo/LCDMenuLib2/tree/master/examples/02_functionality

LCDML_023_multiLanguage_small

effeci commented 5 years ago

Ohhhh now I see! Vielen dank!