X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.c;h=b4152699b560df0e02f664133c8ccf3520bd45f0;hb=0cd708a881cb4c6f398381b43be3521a36ca8bd4;hp=1923138da1d45ac9d44637cd6a986bd128a54c76;hpb=0f71d26e346631862bc00473662e674df3faa57f;p=pkg%2Fabook.git diff --git a/ui.c b/ui.c index 1923138..b415269 100644 --- a/ui.c +++ b/ui.c @@ -144,8 +144,8 @@ init_ui() 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; } @@ -598,10 +598,18 @@ ui_print_number_of_items() 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();