mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
kconfig: make use of menu_get_ext_help in qconfig
Signed-off-by: Cheng Renquan <crquan@gmail.com> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
1d525e7c1f
commit
d74c15f3b7
1 changed files with 4 additions and 6 deletions
|
@ -1042,12 +1042,10 @@ void ConfigInfoView::menuInfo(void)
|
||||||
if (showDebug())
|
if (showDebug())
|
||||||
debug = debug_info(sym);
|
debug = debug_info(sym);
|
||||||
|
|
||||||
help = menu_get_help(menu);
|
struct gstr help_gstr = str_new();
|
||||||
/* Gettextize if the help text not empty */
|
menu_get_ext_help(menu, &help_gstr);
|
||||||
if (help.isEmpty())
|
help = print_filter(str_get(&help_gstr));
|
||||||
help = print_filter(menu_get_help(menu));
|
str_free(&help_gstr);
|
||||||
else
|
|
||||||
help = print_filter(_(menu_get_help(menu)));
|
|
||||||
} else if (menu->prompt) {
|
} else if (menu->prompt) {
|
||||||
head += "<big><b>";
|
head += "<big><b>";
|
||||||
head += print_filter(_(menu->prompt->text));
|
head += print_filter(_(menu->prompt->text));
|
||||||
|
|
Loading…
Reference in a new issue