diff -ur mutt-1.3.22.1~/curs_lib.c mutt-1.3.22.1/curs_lib.c --- mutt-1.3.22.1~/curs_lib.c Mon Aug 6 21:48:45 2001 +++ mutt-1.3.22.1/curs_lib.c Tue Sep 18 11:54:00 2001 @@ -150,8 +150,8 @@ int mutt_yesorno (const char *msg, int def) { event_t ch; - char *yes = _("yes"); - char *no = _("no"); + char *yes = option( OPTSHOWALT ) ? AltYes : _("yes"); + char *no = option( OPTSHOWALT ) ? AltNo : _("no"); #ifdef HAVE_LANGINFO_YESEXPR char *expr; diff -ur mutt-1.3.22.1~/globals.h mutt-1.3.22.1/globals.h --- mutt-1.3.22.1~/globals.h Mon Jun 18 19:56:14 2001 +++ mutt-1.3.22.1/globals.h Tue Sep 18 11:39:47 2001 @@ -31,6 +31,8 @@ WHERE char *AliasFile; WHERE char *AliasFmt; +WHERE char *AltYes; +WHERE char *AltNo; WHERE char *AttachSep; WHERE char *Attribution; WHERE char *AttachFormat; diff -ur mutt-1.3.22.1~/init.h mutt-1.3.22.1/init.h --- mutt-1.3.22.1~/init.h Sun Aug 12 14:14:00 2001 +++ mutt-1.3.22.1/init.h Tue Sep 18 11:39:47 2001 @@ -153,6 +153,18 @@ ** you receive mail. This affects Mutt's idea about messages from you ** and addressed to you. */ + { "alt_yes", DT_STR, R_NONE, UL &AltYes, UL "y" }, + /* + ** .pp + ** Alternative key to show instead of "yes" when answering questions. Useful + ** when using non-english locales. Also see ``$$alt_no'' and ``$$show_alt''. + */ + { "alt_no", DT_STR, R_NONE, UL &AltNo, UL "n" }, + /* + ** .pp + ** Alternative key to show instead of "no" when answering questions. Useful + ** when using non-english locales. Also see ``$$alt_yes'' and ``$$show_alt''. + */ { "arrow_cursor", DT_BOOL, R_BOTH, OPTARROWCURSOR, 0 }, /* ** .pp @@ -1872,6 +1884,12 @@ ** .pp ** Command to use when spawning a subshell. By default, the user's login ** shell from /etc/passwd is used. + */ + { "show_alt", DT_BOOL, R_NONE, OPTSHOWALT, 0 }, + /* + ** .pp + ** If set, possible answers in questions will be shown as ``$$alt_yes''/``$$alt_no'' + ** instead of locale dependant. */ { "sig_dashes", DT_BOOL, R_NONE, OPTSIGDASHES, 1 }, /* diff -ur mutt-1.3.22.1~/mutt.h mutt-1.3.22.1/mutt.h --- mutt-1.3.22.1~/mutt.h Fri Jun 29 14:05:50 2001 +++ mutt-1.3.22.1/mutt.h Tue Sep 18 11:39:47 2001 @@ -448,7 +448,7 @@ #endif - + OPTSHOWALT, OPTMAX };