char input
Dependencies: TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG lvgl_RB FastPWM millis
AIDE.h
- Committer:
- becanromain
- Date:
- 2020-02-27
- Revision:
- 6:519d681050af
- Parent:
- 4:6a3d12663549
File content as of revision 6:519d681050af:
//Multilangue
//lvgl has lv_i18n module for internationalization: https://github.com/littlevgl/lv_i18n
// - It's a script which automatically extracts the strings to translate from you code
// - However to run the script you need the code offline
// - An other option is to manually create the internationalization file
// - I've added lv_i18n.c/h as a reference
// - You can test it like this
// lv_i18n_init(lv_i18n_language_pack);
// lv_i18n_set_locale("en-GB");
// printf(_("dog"));
// printf("\n");
//
// lv_i18n_set_locale("fr");
// printf(_("dog"));
// printf("\n");
//
// - '_' is a function which get the translated version of "dog" and "cat" in the given local
// - You can use it with labels: lv_label_set_text(label, _("dog"))
// - Translation with prinf-like format characters are also possible. E.g.
// - In lv_i18n.c: {"user_count", "There are %d users"},
// - Usage:
// char buf[128];
// sprintf(buf, _("user_count"), 55);
//
// - Or:
// lv_label_set_text_fmt(label, _("user_count"), 55);