]> git.ozlabs.org Git - petitboot/commitdiff
ui/ncurses: Use a separate type for help text
authorJeremy Kerr <jk@ozlabs.org>
Tue, 24 Jun 2014 05:18:03 +0000 (13:18 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 28 Jul 2014 05:20:34 +0000 (13:20 +0800)
Because it's initialised statically, help text won't be directly
gettext()-ed. Instead, we need to perform the gettext translation at
runtime, and pass untranslated strings into the help_screen code.

Instead of trusting callers to pass the untranslated strings though, we
encapsulate the help text data into struct help_text, so we know we have
an unstranslated string.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found