From 16a02269fc8d2cf0f25b40d16a70087bb315a653 Mon Sep 17 00:00:00 2001 From: Tom Tromey <tromey@redhat.com> Date: Wed, 22 Apr 1998 07:33:42 +0000 Subject: * gprof.h: Added includes and defines for gettext. * configure.in (ALL_LINGUAS): New macro. Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, HAVE_LC_MESSAGES): Define. * gprof.c (main): Call setlocale, bindtextdomain, textdomain. * Makefile.am (SUBDIRS): New macro. (INCLUDES): Look in intl dirs for headers. Define LOCALEDIR. (gprof_DEPENDENCIES): Added INTLDEPS. (gprof_LDADD): Added INTLLLIBS. (POTFILES): New macro. (po/POTFILES.in): New target. * Many files: Wrap user-visible strings with gettext invocation. --- gprof/call_graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gprof/call_graph.c') diff --git a/gprof/call_graph.c b/gprof/call_graph.c index de48aa8..2c56caf 100644 --- a/gprof/call_graph.c +++ b/gprof/call_graph.c @@ -45,7 +45,7 @@ DEFUN (cg_tally, (from_pc, self_pc, count), { child->ncalls += count; DBG (TALLYDEBUG, - printf ("[cg_tally] arc from %s to %s traversed %d times\n", + printf (_("[cg_tally] arc from %s to %s traversed %d times\n"), parent->name, child->name, count)); arc_add (parent, child, count); } @@ -67,7 +67,7 @@ DEFUN (cg_read_rec, (ifp, filename), FILE * ifp AND CONST char *filename) if (fread (&arc, sizeof (arc), 1, ifp) != 1) { - fprintf (stderr, "%s: %s: unexpected end of file\n", + fprintf (stderr, _("%s: %s: unexpected end of file\n"), whoami, filename); done (1); } -- cgit v1.1