Probleme char input
Dependencies: TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG lvgl_RB FastPWM millis
Diff: lv_i18n.c
- Revision:
- 4:6a3d12663549
- Parent:
- 1:404ee28a0b60
- Child:
- 6:519d681050af
diff -r 78125a86a357 -r 6a3d12663549 lv_i18n.c --- a/lv_i18n.c Fri Jan 17 06:32:53 2020 +0000 +++ b/lv_i18n.c Sun Jan 26 16:19:54 2020 +0000 @@ -9,8 +9,32 @@ #define UNUSED(x) (void)(x) -static lv_i18n_phrase_t en_gb_texts[] = { - {"dog", "This is a dog"}, +static lv_i18n_phrase_t fr_texts[] = { + {"M100", "Mesures"}, + {"M200", "Prélevement"}, + {"M300", "Paramètres"}, + {"M400", "Menu 4"}, + {"M500", "Menu 5"}, + {"M600", "Menu 6"}, + {"SM301", "langage"}, + {"Temps de cycle = %3.3f us", "Temps de cycle = %3.3f us"}, + {NULL, NULL} // End mark +}; + +static const lv_i18n_lang_t fr_lang = { + .locale_name = "fr", + .singulars = fr_texts, +}; + +static lv_i18n_phrase_t en_gb_texts[] = { + {"M100", "Measures"}, + {"M200", "Sample"}, + {"M300", "Setting"}, + {"M400", "Menu 4"}, + {"M500", "Menu 5"}, + {"M600", "Menu 6"}, + {"SM301", "language"}, + {"Temps de cycle = %3.3f us", "Cycle time= %3.3f us"}, {"cat", "This is a cat"}, {NULL, NULL} // End mark }; @@ -21,17 +45,6 @@ .singulars = en_gb_texts, }; -static lv_i18n_phrase_t fr_texts[] = { - {"dog", "c'est un chien"}, - {"cat", "Ceci est un chat"}, - {NULL, NULL} // End mark -}; - -static const lv_i18n_lang_t fr_lang = { - .locale_name = "fr", - .singulars = fr_texts, -}; - const lv_i18n_language_pack_t lv_i18n_language_pack[] = { &en_gb_lang, &fr_lang,