Commit 6dd308d0 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

prompt: recognize Yes/No/All in English when the locale gives no match

parent 4872f42c
Showing with 9 additions and 0 deletions
+9 -0
......@@ -716,12 +716,21 @@ int do_yesno_prompt(bool all, const char *msg)
kbinput = get_kbinput(bottomwin, !all);
/* See if the pressed key is in the Yes, No, or All strings. */
#ifdef ENABLE_NLS
if (strchr(yesstr, kbinput) != NULL)
response = 1;
else if (strchr(nostr, kbinput) != NULL)
response = 0;
else if (all && strchr(allstr, kbinput) != NULL)
response = 2;
else
#endif
if (strchr("Yy", kbinput) != NULL)
response = 1;
else if (strchr("Nn", kbinput) != NULL)
response = 0;
else if (all && strchr("Aa", kbinput) != NULL)
response = 2;
else if (func_from_key(&kbinput) == do_cancel)
response = -1;
#ifdef ENABLE_MOUSE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment