lvgl / lv_i18n

Internationalization (i18n) for LVGL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postponed

puzrin opened this issue · comments

This is cemetery area for ideas :).

  • sprintf support in translations
    • Probably, overkill.
    • Unwanded possible memory allocations. Without sprintf _() will return just a pointer to const in flash/ram
  • _() would be nice for plurals to. Functions overload is available in CPP and can be emulated in C11 via _Generic. Was removed because lvgl wish to support C89.
  • Web transtators export/import #6

In this example the use of sprintf is moved to the user's code. So he can decide to:

  • use sprintf
  • write lightweighted custom formatter
  • do nothing if only "static" texts are used

Added note about overloaded functions.

Close - i guess nothing of described will be implemented. No need to keep this open. Here we just land any kind of [crazy] ideas to keep brain free :).