]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: document expected answers to quit message
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 19 Feb 2023 16:09:43 +0000 (16:09 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 19 Feb 2023 16:13:49 +0000 (16:13 +0000)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
disk-utils/fdisk-menu.c

index b41754b56569fa8cfaa0a84128c8a4cf58e61949..52282dde614b8665dd996ba8009ccc21b568f624 100644 (file)
@@ -433,8 +433,10 @@ int process_fdisk_menu(struct fdisk_context **cxt0)
                /* Map ^C and ^D in main menu to 'q' */
                if (is_interactive
                    && fdisk_label_is_changed(fdisk_get_label(cxt, NULL))) {
+                       /* TRANSLATORS: these yes no questions use rpmatch(),
+                        * and should be translated.  */
                        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));
                        if (rc || !rpmatch(buf))
                                return 0;