summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frm/frm.c6
-rw-r--r--mail/quit.c12
-rw-r--r--mail/summary.c2
3 files changed, 12 insertions, 8 deletions
diff --git a/frm/frm.c b/frm/frm.c
index b3828088a..8f91d5b46 100644
--- a/frm/frm.c
+++ b/frm/frm.c
@@ -403,9 +403,11 @@ cleanup:
cleanup1:
if (show_summary)
- printf (_("You have %d messages\n"), total);
+ printf (total == 1 ? _("You have %d message.\n")
+ : _("You have %d messages.\n"),
+ total);
if (show_query && have_new_mail)
- printf (_("You have new mail\n"));
+ printf (_("You have new mail.\n"));
/* 0 - selected messages discover.
1 - have messages.
diff --git a/mail/quit.c b/mail/quit.c
index 6a75fd392..474921f2c 100644
--- a/mail/quit.c
+++ b/mail/quit.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -47,8 +47,9 @@ mail_mbox_close ()
mailbox_get_url (mbox, &url);
mailbox_messages_count (mbox, &held_count);
- fprintf (ofile, _("Held %d messages in %s\n"), held_count, url_to_string (url));
-
+ fprintf (ofile, held_count == 1 ? _("Held %d message in %s\n")
+ : _("Held %d messages in %s\n"),
+ held_count, url_to_string (url));
mailbox_close (mbox);
mailbox_destroy (&mbox);
return 0;
@@ -124,8 +125,9 @@ mail_mbox_commit ()
url_t u = NULL;
mailbox_get_url (dest_mbox, &u);
- fprintf(ofile, _("Saved %d messages in %s\n"), saved_count,
- url_to_string (u));
+ fprintf(ofile, saved_count == 1 ? _("Saved %d message in %s\n")
+ : _("Saved %d messages in %s\n"),
+ saved_count, url_to_string (u));
mailbox_close (dest_mbox);
mailbox_destroy (&dest_mbox);
}
diff --git a/mail/summary.c b/mail/summary.c
index ded61700e..87346c8d5 100644
--- a/mail/summary.c
+++ b/mail/summary.c
@@ -63,7 +63,7 @@ mail_summary (int argc, char **argv)
mailbox_get_url (mbox, &url);
printf("\"%s\": ", url_to_string (url));
}
- printf (_("%d messages"), count);
+ printf ("%d %s", count, count == 1 ? _("message") : _("messages"));
if (mnew > 0)
printf (_(" %d new"), mnew);
if (mseen > 0)

Return to:

Send suggestions and report system problems to the System administrator.