X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=abook.c;h=2f6c2d53437e3fd95e44652f507a304d08955303;hb=9081d7af2b76878548db7a0d78a37933e3b934d7;hp=c2367bbec44bf18c76986fa0df9086c48eae4124;hpb=a1bba6c6aa1c73bd8e6423008dd89c35fec23f6b;p=pkg%2Fabook.git diff --git a/abook.c b/abook.c index c2367bb..2f6c2d5 100644 --- a/abook.c +++ b/abook.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -407,7 +408,7 @@ show_usage() "add the sender to the addressbook")); puts (_(" --add-email-quiet " "same as --add-email but doesn't\n" - " confirm adding")); + " require to confirm adding")); putchar('\n'); puts (_(" --convert convert address book files")); puts (_(" options to use with --convert:")); @@ -736,17 +737,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, + *S_("keybinding for yes|y"), + *S_("keybinding for no|n")); + c = tolower(getc(in)); + if(c == *S_("keybinding for no|n")) { fclose(in); return 0; } - } while(c != 'y' && c != 'Y'); + } while(c != *S_("keybinding for yes|y")); fclose(in); }