Commit fbae17fa fbae17faded91e5d15bfd495daa5bedd32f340ad by Wojciech Polak

Small NLS improvement

1 parent fa01b9cb
......@@ -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.
......
/* 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);
}
......
......@@ -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)
......