ui/ncurses: Mark help text as translateable
authorJeremy Kerr <jk@ozlabs.org>
Tue, 24 Jun 2014 05:32:45 +0000 (13:32 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 28 Jul 2014 05:20:34 +0000 (13:20 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
po/Makevars
po/POTFILES.in
ui/ncurses/nc-helpscreen.c

index d3ec84ce8c3b1707558f655960ae0b008535409a..777e54ca9a338b513f20997ab35e9636ad9508cf 100644 (file)
@@ -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
index e9a8562a26759a56e156273aeb245b3f1d64656a..ba9f977a56ae69d621206ddff56800a7149b0884 100644 (file)
@@ -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
index fd76a43226b6f59a52cbd679816ad75193518454..d332d14923154e442eef2687a4043a2c62e7f3b0 100644 (file)
@@ -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;