Skip to content

Commit bb7ef39

Browse files
EGRY Gaborsravnborg
authored andcommitted
kconfig: missing macros in gconfig
This patch adds missing gettext macros. Signed-off-by: Egry Gabor <gaboregry1@t-online.hu> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Roman Zippel <zippel@linux-m68k.org>
1 parent f7a4b4c commit bb7ef39

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎scripts/kconfig/gconf.c‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,11 +455,15 @@ static void text_insert_help(struct menu *menu)
455455
{
456456
GtkTextBuffer *buffer;
457457
GtkTextIter start, end;
458-
const char *prompt = menu_get_prompt(menu);
458+
const char *prompt = _(menu_get_prompt(menu));
459459
gchar *name;
460460
const char *help;
461461

462-
help = _(menu_get_help(menu));
462+
help = menu_get_help(menu);
463+
464+
/* Gettextize if the help text not empty */
465+
if ((help != 0) && (help[0] != 0))
466+
help = _(help);
463467

464468
if (menu->sym && menu->sym->name)
465469
name = g_strdup_printf(_(menu->sym->name));
@@ -1169,7 +1173,7 @@ static gchar **fill_row(struct menu *menu)
11691173
bzero(row, sizeof(row));
11701174

11711175
row[COL_OPTION] =
1172-
g_strdup_printf("%s %s", menu_get_prompt(menu),
1176+
g_strdup_printf("%s %s", _(menu_get_prompt(menu)),
11731177
sym && sym_has_value(sym) ? "(NEW)" : "");
11741178

11751179
if (show_all && !menu_is_visible(menu))
@@ -1219,7 +1223,7 @@ static gchar **fill_row(struct menu *menu)
12191223

12201224
if (def_menu)
12211225
row[COL_VALUE] =
1222-
g_strdup(menu_get_prompt(def_menu));
1226+
g_strdup(_(menu_get_prompt(def_menu)));
12231227
}
12241228
if (sym->flags & SYMBOL_CHOICEVAL)
12251229
row[COL_BTNRAD] = GINT_TO_POINTER(TRUE);

0 commit comments

Comments
 (0)