if( LINES < MIN_LINES || COLS < MIN_COLS ) {
clear(); refresh(); endwin();
fprintf(stderr, _("Your terminal size is %dx%d\n"), COLS, LINES);
- fprintf(stderr, _("Terminal is too small. Minium terminal size "
- "for abook is "
+ fprintf(stderr, _("Terminal is too small. Minimum terminal "
+ "size for abook is "
"%dx%d\n"), MIN_COLS, MIN_LINES);
return 1;
}
void
ui_read_database()
{
- if(items > 0)
- if(!statusline_ask_boolean(_("Your current data will be lost - "
- "Press 'y' to continue"), FALSE))
+ char *msg;
+
+ if(items > 0) {
+ msg = mkstr(_("Your current data will be lost - "
+ "Press '%c' to continue"),
+ *(S_("keybinding for yes|y")));
+ if(!statusline_ask_boolean(msg, FALSE)) {
+ free(msg);
return;
+ }
+ free(msg);
+ }
load_database(datafile);
refresh_list();