Remove use of ngettext()
authorNick Clifton <nickc@redhat.com>
Thu, 3 Jan 2002 21:32:36 +0000 (21:32 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 3 Jan 2002 21:32:36 +0000 (21:32 +0000)
gprof/ChangeLog
gprof/gmon_io.c

index 81b072dc70b39311f164b65daa33cdf8b2d75491..f82e87839890336cba6c00de0887376f66ca716e 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-03  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * gmon_io.c (gmon_out_read): Remove use of ngettext().  It is not
+       present under AIX.
+
 2002-01-02  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * cg_print.c (print_header): Fix spelling typo.
index 207e3d0aca20ae7763832736516c3705e7527a0e..b15d64297da429c1e182f66892ec30af84529816 100644 (file)
@@ -447,12 +447,15 @@ DEFUN (gmon_out_read, (filename), const char *filename)
     {
       printf (_("File `%s' (version %d) contains:\n"),
              filename, gmon_file_version);
-      printf (ngettext ("\t%d histogram record\n",
-                       "\t%d histogram records\n", nhist), nhist);
-      printf (ngettext ("\t%d call-graph record\n",
-                       "\t%d call-graph records\n", narcs), narcs);
-      printf (ngettext ("\t%d basic-block count record\n",
-                       "\t%d basic-block count records\n", nbbs), nbbs);
+      printf (nhist == 1 ?
+             _("\t%d histogram record\n") :
+             _("\t%d histogram records\n"), nhist);
+      printf (narcs == 1 ?
+             _("\t%d call-graph record\n") :
+             _("\t%d call-graph records\n"), narcs);
+      printf (nbbs == 1 ?
+             _("\t%d basic-block count record\n") :
+             _("\t%d basic-block count records\n"), nbbs);
       first_output = FALSE;
     }
 }