From c325141c622b607112ab3a84a695a985f11f9228 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 24 Jun 2014 13:32:45 +0800 Subject: [PATCH] ui/ncurses: Mark help text as translateable Signed-off-by: Jeremy Kerr --- po/Makevars | 2 +- po/POTFILES.in | 4 ++++ ui/ncurses/nc-helpscreen.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/po/Makevars b/po/Makevars index d3ec84c..777e54c 100644 --- a/po/Makevars +++ b/po/Makevars @@ -8,7 +8,7 @@ subdir = po top_builddir = .. # These options get passed to xgettext. -XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ +XGETTEXT_OPTIONS = --keyword=_ --keyword=define_help_text # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding diff --git a/po/POTFILES.in b/po/POTFILES.in index e9a8562..ba9f977 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -7,4 +7,8 @@ ui/ncurses/nc-helpscreen.c ui/ncurses/nc-menu.c ui/ncurses/nc-sysinfo.c ui/ncurses/nc-textscreen.c +ui/ncurses/generic-main-help.c +ui/ncurses/nc-boot-editor-help.c +ui/ncurses/nc-config-help.c +ui/ncurses/nc-sysinfo-help.c ui/ncurses/generic-main.c diff --git a/ui/ncurses/nc-helpscreen.c b/ui/ncurses/nc-helpscreen.c index fd76a43..d332d14 100644 --- a/ui/ncurses/nc-helpscreen.c +++ b/ui/ncurses/nc-helpscreen.c @@ -64,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); + text_screen_set_text(&screen->text_scr, gettext(text->text)); text_screen_draw(&screen->text_scr); return screen; -- 2.39.2