X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=abook.c;h=1ad38caa579005e7673493a7e23464d7226595e1;hb=05213a4b7e811d9e52f733436422519439da248d;hp=f4675b2887b521d982f6a79de1d3e0b0ded683ff;hpb=4b8f9231090ada43f7e16987ec46ac7f45a914ec;p=pkg%2Fabook.git diff --git a/abook.c b/abook.c index f4675b2..1ad38ca 100644 --- a/abook.c +++ b/abook.c @@ -407,7 +407,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:")); @@ -616,7 +616,7 @@ convert(char *srcformat, char *srcfile, char *dstformat, char *dstfile) int ret=0; if( !srcformat || !srcfile || !dstformat || !dstfile ) { - fprintf(stderr, _("too few argumets to make conversion\n")); + fprintf(stderr, _("too few arguments to make conversion\n")); fprintf(stderr, _("try --help\n")); } @@ -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, + *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); }