X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-helpscreen.c;h=d332d14923154e442eef2687a4043a2c62e7f3b0;hp=3b27d5760090c618a785fd513b2feebecb66127f;hb=c325141c622b607112ab3a84a695a985f11f9228;hpb=494988c501287e03da3becba5c03cbce7c3d9d20 diff --git a/ui/ncurses/nc-helpscreen.c b/ui/ncurses/nc-helpscreen.c index 3b27d57..d332d14 100644 --- a/ui/ncurses/nc-helpscreen.c +++ b/ui/ncurses/nc-helpscreen.c @@ -48,7 +48,8 @@ struct nc_scr *help_screen_return_scr(struct help_screen *screen) struct help_screen *help_screen_init(struct cui *cui, struct nc_scr *current_scr, - const char *title_suffix, const char *text, + const char *title_suffix, + const struct help_text *text, void (*on_exit)(struct cui *)) { struct help_screen *screen; @@ -63,7 +64,7 @@ struct help_screen *help_screen_init(struct cui *cui, _("Petitboot help: %s"), title_suffix); text_screen_init(&screen->text_scr, cui, title, on_exit); - text_screen_set_text(&screen->text_scr, text); + text_screen_set_text(&screen->text_scr, gettext(text->text)); text_screen_draw(&screen->text_scr); return screen;