X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.c;fp=ui.c;h=644c2acc184b237fb9be0a18d5c0b255e045c1cb;hb=4164f9d94097406569736b02f5caa6a76eff38f1;hp=1923138da1d45ac9d44637cd6a986bd128a54c76;hpb=e2253a4463efe57462d292fe894e32286bbc6061;p=pkg%2Fabook.git diff --git a/ui.c b/ui.c index 1923138..644c2ac 100644 --- a/ui.c +++ b/ui.c @@ -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();