diff options
author | Wojciech Polak <polak@gnu.org> | 2002-12-27 09:21:46 +0000 |
---|---|---|
committer | Wojciech Polak <polak@gnu.org> | 2002-12-27 09:21:46 +0000 |
commit | fbae17faded91e5d15bfd495daa5bedd32f340ad (patch) | |
tree | 684755b9ffc4878df4c875fda6cdecab5378e499 | |
parent | fa01b9cbb9debb399266d8784b850bdba576b086 (diff) | |
download | mailutils-fbae17faded91e5d15bfd495daa5bedd32f340ad.tar.gz mailutils-fbae17faded91e5d15bfd495daa5bedd32f340ad.tar.bz2 |
Small NLS improvement
-rw-r--r-- | frm/frm.c | 6 | ||||
-rw-r--r-- | mail/quit.c | 12 | ||||
-rw-r--r-- | mail/summary.c | 2 |
3 files changed, 12 insertions, 8 deletions
@@ -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) |