More fixing of plurals.
authorCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2009 23:00:24 +0000 (16:00 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2009 23:00:24 +0000 (16:00 -0700)
It definitely doesn't help that we have the same messages in both
"setup" and "new". Should combine those really.

notmuch.c

index 581cc4c0cbfe52b61d1cd860e950e3e474f7d138..e98b14395ba8341db174d844b1ae873c04caa1b5 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -439,7 +439,9 @@ setup_command (int argc, char *argv[])
     gettimeofday (&tv_now, NULL);
     elapsed = tv_elapsed (add_files_state.tv_start,
                          tv_now);
-    printf ("Processed %d total files in ", add_files_state.processed_files);
+    printf ("Processed %d %s in ", add_files_state.processed_files,
+           add_files_state.processed_files == 1 ?
+           "file" : "total files");
     print_formatted_seconds (elapsed);
     if (elapsed > 1) {
        printf (" (%d files/sec.).                 \n",
@@ -501,7 +503,9 @@ new_command (int argc, char *argv[])
     elapsed = tv_elapsed (add_files_state.tv_start,
                          tv_now);
     if (add_files_state.processed_files) {
-       printf ("Processed %d total files in ", add_files_state.processed_files);
+       printf ("Processed %d %s in ", add_files_state.processed_files,
+               add_files_state.processed_files == 1 ?
+               "file" : "total files");
        print_formatted_seconds (elapsed);
        if (elapsed > 1) {
            printf (" (%d files/sec.).                 \n",