add lv_i18n support

This commit is contained in:
2023-08-08 21:14:14 +02:00
parent 6f8986a0a1
commit 8b9115044e
7 changed files with 321 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#include "ui/launch_screen.h"
#include <lvgl.h>
#include "lv_i18n/lv_i18n.h"
void ui_LaunchScreen_open()
{
@@ -14,7 +15,7 @@ void ui_LaunchScreen_open()
lv_obj_align(img, LV_ALIGN_CENTER, 0, 0);
auto *label = lv_label_create(ui_SplashScreen);
lv_label_set_text(label, "OS-Railway");
lv_label_set_text(label, _("appName"));
lv_obj_align(label, LV_ALIGN_BOTTOM_MID, 0, -25);
lv_disp_load_scr(ui_SplashScreen);