Print in other languages

Description

how to print in Russian?

What MCU/Processor/Board and compiler are you using?

STM32F407

What LVGL version are you using?

7

What do you want to achieve?

how to add Russian to the library?

What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

You can search this forum for i18n (short form of ‘internationalization’).
You may find this link:
lv_i18n - Internationalization for LittlevGL

Thank you very much for the help! Do you need to add the entire lv_i18n-master folder to the project?

For your firmware you really need only the two files in folder ‘src’.
Whereas the name lv_i18n.template.c is chosen a bit unfortunate.
I would prefer lv_i18n.c and put the implementation (for a specific language) in a different file.

For a clearly number of textes the approch as it is described within the i18n page is OK,
but for a larger number of text (and languages) I would prefer a different approach.
For my PC apps I use poedit, which then produces binary files (mo files) which contains the text within a table which is searchable with a binary tree algorithm.
But currently the lvgl’s implementation doesn’t support mo files which for example would be located on a SD card. That’s something which is on my plan… some day.

For further information use aunt G… E.g search for i18n gettext poedit