summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-06-24 13:32:45 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-07-28 13:20:34 +0800
commitc325141c622b607112ab3a84a695a985f11f9228 (patch)
tree34b05863405946501370ab7b66a0a5b24fb6e7ba
parent4e30f260106ac5f7007e213db1d1e54298393290 (diff)
downloadtalos-petitboot-c325141c622b607112ab3a84a695a985f11f9228.tar.gz
talos-petitboot-c325141c622b607112ab3a84a695a985f11f9228.zip
ui/ncurses: Mark help text as translateable
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-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