1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-30 02:32:46 +02:00

* miscutil.c (answer_is_yes_no_default, answer_is_yes_no_quit): Don't use

alternate strings when not needed so we don't have to re-translate them.
Hopefully the comment will be enough to indicate multiple match strings.
This commit is contained in:
David Shaw 2003-12-03 13:35:09 +00:00
parent 2af7f3b03d
commit 02d27268ca
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2003-12-03 David Shaw <dshaw@jabberwocky.com>
* miscutil.c (answer_is_yes_no_default, answer_is_yes_no_quit):
Don't use alternate strings when not needed so we don't have to
re-translate them. Hopefully the comment will be enough to
indicate multiple match strings.
2003-11-20 David Shaw <dshaw@jabberwocky.com>
* miscutil.c (match_multistr): New. Match against each segment in

View File

@ -294,10 +294,10 @@ int
answer_is_yes_no_default( const char *s, int def_answer )
{
/* NOTE TO TRANSLATOR: See doc/TRANSLATE about this string. */
const char *long_yes = _("yes|yes");
const char *long_yes = _("yes");
const char *short_yes = _("yY");
/* NOTE TO TRANSLATOR: See doc/TRANSLATE about this string. */
const char *long_no = _("no|no");
const char *long_no = _("no");
const char *short_no = _("nN");
/* Note: we have to use the local dependent strcasecmp here */
@ -331,11 +331,11 @@ int
answer_is_yes_no_quit( const char *s )
{
/* NOTE TO TRANSLATOR: See doc/TRANSLATE about this string. */
const char *long_yes = _("yes|yes");
const char *long_yes = _("yes");
/* NOTE TO TRANSLATOR: See doc/TRANSLATE about this string. */
const char *long_no = _("no|no");
const char *long_no = _("no");
/* NOTE TO TRANSLATOR: See doc/TRANSLATE about this string. */
const char *long_quit = _("quit|quit");
const char *long_quit = _("quit");
const char *short_yes = _("yY");
const char *short_no = _("nN");
const char *short_quit = _("qQ");