summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-textscreen.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-12-18 09:49:23 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-07-28 13:20:34 +0800
commit494988c501287e03da3becba5c03cbce7c3d9d20 (patch)
tree670537e83a47b9c3a10df69ce4a7c6b6f0f3f13f /ui/ncurses/nc-textscreen.c
parent08bc314efca8bbde9e9461c4d425caf1e0ad0e5f (diff)
downloadtalos-petitboot-494988c501287e03da3becba5c03cbce7c3d9d20.tar.gz
talos-petitboot-494988c501287e03da3becba5c03cbce7c3d9d20.zip
i18n: Mark translatable strings for ncurses UI
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-textscreen.c')
-rw-r--r--ui/ncurses/nc-textscreen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/ncurses/nc-textscreen.c b/ui/ncurses/nc-textscreen.c
index ad91f61..4ae0db4 100644
--- a/ui/ncurses/nc-textscreen.c
+++ b/ui/ncurses/nc-textscreen.c
@@ -26,6 +26,7 @@
#include <log/log.h>
#include <fold/fold.h>
#include <util/util.h>
+#include <i18n/i18n.h>
#include "nc-cui.h"
#include "nc-textscreen.h"
@@ -177,7 +178,7 @@ void text_screen_set_help(struct text_screen *screen, const char *title,
{
screen->help_title = title;
screen->help_text = text;
- screen->scr.frame.help = "x=exit, h=help";
+ screen->scr.frame.help = _("x=exit, h=help");
}
static int text_screen_post(struct nc_scr *scr)
@@ -204,6 +205,6 @@ void text_screen_init(struct text_screen *screen, struct cui *cui,
screen->scr.frame.ltitle = talloc_strdup(screen, title);
screen->scr.frame.rtitle = NULL;
- screen->scr.frame.help = "x=exit";
+ screen->scr.frame.help = _("x=exit");
scrollok(screen->scr.sub_ncw, true);
}
OpenPOWER on IntegriCloud