]> git.deb.at Git - pkg/abook.git/blobdiff - ui.c
Minor fix.
[pkg/abook.git] / ui.c
diff --git a/ui.c b/ui.c
index 1923138da1d45ac9d44637cd6a986bd128a54c76..b4152699b560df0e02f664133c8ccf3520bd45f0 100644 (file)
--- 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();