From: Cedric Duval Date: Mon, 26 Sep 2005 16:08:00 +0000 (+0000) Subject: Localized keybindings for --add-email X-Git-Tag: upstream/0.6.1~2^2~149 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=b7e40d5b0aef77bca4ee3e90b85daf94c5d95a26;p=pkg%2Fabook.git Localized keybindings for --add-email --- 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); }