Probleme char input
Dependencies: TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG lvgl_RB FastPWM millis
Diff: AIDE.h
- Revision:
- 4:6a3d12663549
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AIDE.h Sun Jan 26 16:19:54 2020 +0000 @@ -0,0 +1,27 @@ + + //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); \ No newline at end of file