From b7e40d5b0aef77bca4ee3e90b85daf94c5d95a26 Mon Sep 17 00:00:00 2001 From: Cedric Duval Date: Mon, 26 Sep 2005 16:08:00 +0000 Subject: [PATCH] Localized keybindings for --add-email --- abook.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/abook.c b/abook.c index daffe43..9458cfd 100644 --- a/abook.c +++ b/abook.c @@ -736,17 +736,18 @@ add_email_add_item(int quiet, char *name, char *email) } do { - /* TODO gettext: handle translated keypresses? */ - printf(_("Add \"%s <%s>\" to %s? (y/n)\n"), + printf(_("Add \"%s <%s>\" to %s? (%c/%c)\n"), name, email, - datafile); - c = getc(in); - if(c == 'n' || c == 'N') { + datafile, + *_("keybinding for yes|y"), + *_("keybinding for no|n")); + c = tolower(getc(in)); + if(c == *_("keybinding for no|n")) { fclose(in); return 0; } - } while(c != 'y' && c != 'Y'); + } while(c != *_("keybinding for yes|y")); fclose(in); } -- 2.39.2