fdisk: document expected answers to quit message
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
This commit is contained in:
parent
e821801ee9
commit
a5e94c1113
1 changed files with 3 additions and 1 deletions
|
@ -433,8 +433,10 @@ int process_fdisk_menu(struct fdisk_context **cxt0)
|
||||||
/* Map ^C and ^D in main menu to 'q' */
|
/* Map ^C and ^D in main menu to 'q' */
|
||||||
if (is_interactive
|
if (is_interactive
|
||||||
&& fdisk_label_is_changed(fdisk_get_label(cxt, NULL))) {
|
&& fdisk_label_is_changed(fdisk_get_label(cxt, NULL))) {
|
||||||
|
/* TRANSLATORS: these yes no questions use rpmatch(),
|
||||||
|
* and should be translated. */
|
||||||
rc = get_user_reply(
|
rc = get_user_reply(
|
||||||
_("\nAll unwritten changes will be lost, do you really want to quit? "),
|
_("\nAll unwritten changes will be lost, do you really want to quit? (y/n)"),
|
||||||
buf, sizeof(buf));
|
buf, sizeof(buf));
|
||||||
if (rc || !rpmatch(buf))
|
if (rc || !rpmatch(buf))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue