[PATCH 13/19] Kconfig I18N: menuconfig: answering

From: Egry Gábor
Date: Wed Jul 13 2005 - 18:31:22 EST



I18N support for answering in menuconfig. This patch is useful for
non-latin based languages.

Signed-off-by: Egry Gabor <gaboregry@xxxxxxxxxxx>
---

scripts/kconfig/mconf.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)

diff -puN scripts/kconfig/mconf.c~kconfig-i18n-13-menuconfig-key scripts/kconfig/mconf.c
--- linux-2.6.13-rc3-i18n-kconfig/scripts/kconfig/mconf.c~kconfig-i18n-13-menuconfig-key 2005-07-13 18:32:19.000000000 +0200
+++ linux-2.6.13-rc3-i18n-kconfig-gabaman/scripts/kconfig/mconf.c 2005-07-13 18:36:44.000000000 +0200
@@ -564,7 +564,7 @@ static void build_conf(struct menu *menu
struct menu *child;
int type, tmp, doint = 2;
tristate val;
- char ch;
+ const char *ch;

if (!menu_is_visible(menu))
return;
@@ -622,11 +622,11 @@ static void build_conf(struct menu *menu
break;
case S_TRISTATE:
switch (val) {
- case yes: ch = '*'; break;
- case mod: ch = 'M'; break;
- default: ch = ' '; break;
+ case yes: ch = "*"; break;
+ case mod: ch = _("M"); break;
+ default: ch = " "; break;
}
- cprint1("<%c>", ch);
+ cprint1("<%s>", ch);
break;
}
} else {
@@ -673,12 +673,12 @@ static void build_conf(struct menu *menu
case S_TRISTATE:
cprint("t%p", menu);
switch (val) {
- case yes: ch = '*'; break;
- case mod: ch = 'M'; break;
- default: ch = ' '; break;
+ case yes: ch = "*"; break;
+ case mod: ch = _("M"); break;
+ default: ch = " "; break;
}
if (sym_is_changable(sym))
- cprint1("<%c>", ch);
+ cprint1("<%s>", ch);
else
cprint1("---");
break;
_


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/