#include <errno.h>
#include <fcntl.h>
+#include <ctype.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
"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:"));
}
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);
}