aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEGRY Gabor <gaboregry1@t-online.hu>2008-01-11 17:47:58 -0500
committerSam Ravnborg <sam@ravnborg.org>2008-01-28 17:14:38 -0500
commitbb7ef3905adce28db31933ae77e5397c0b89227a (patch)
tree8f3c7c0c4b154edba15c69ce90f402055d3f407a /scripts
parentf7a4b4cdc26846a0ac5b3023cb1b97dc632dfd35 (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/gconf.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index df910cbab2c0..dfe748c38b72 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -455,11 +455,15 @@ static void text_insert_help(struct menu *menu)
455{ 455{
456 GtkTextBuffer *buffer; 456 GtkTextBuffer *buffer;
457 GtkTextIter start, end; 457 GtkTextIter start, end;
458 const char *prompt = menu_get_prompt(menu); 458 const char *prompt = _(menu_get_prompt(menu));
459 gchar *name; 459 gchar *name;
460 const char *help; 460 const char *help;
461 461
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);
463 467
464 if (menu->sym && menu->sym->name) 468 if (menu->sym && menu->sym->name)
465 name = g_strdup_printf(_(menu->sym->name)); 469 name = g_strdup_printf(_(menu->sym->name));
@@ -1169,7 +1173,7 @@ static gchar **fill_row(struct menu *menu)
1169 bzero(row, sizeof(row)); 1173 bzero(row, sizeof(row));
1170 1174
1171 row[COL_OPTION] = 1175 row[COL_OPTION] =
1172 g_strdup_printf("%s %s", menu_get_prompt(menu), 1176 g_strdup_printf("%s %s", _(menu_get_prompt(menu)),
1173 sym && sym_has_value(sym) ? "(NEW)" : ""); 1177 sym && sym_has_value(sym) ? "(NEW)" : "");
1174 1178
1175 if (show_all && !menu_is_visible(menu)) 1179 if (show_all && !menu_is_visible(menu))
@@ -1219,7 +1223,7 @@ static gchar **fill_row(struct menu *menu)
1219 1223
1220 if (def_menu) 1224 if (def_menu)
1221 row[COL_VALUE] = 1225 row[COL_VALUE] =
1222 g_strdup(menu_get_prompt(def_menu)); 1226 g_strdup(_(menu_get_prompt(def_menu)));
1223 } 1227 }
1224 if (sym->flags & SYMBOL_CHOICEVAL) 1228 if (sym->flags & SYMBOL_CHOICEVAL)
1225 row[COL_BTNRAD] = GINT_TO_POINTER(TRUE); 1229 row[COL_BTNRAD] = GINT_TO_POINTER(TRUE);