summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--po/Makevars2
-rw-r--r--po/POTFILES.in4
-rw-r--r--ui/ncurses/nc-helpscreen.c2
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;
OpenPOWER on IntegriCloud