diff options
author | Tom Tromey <tromey@redhat.com> | 1998-04-22 07:33:42 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1998-04-22 07:33:42 +0000 |
commit | 16a02269fc8d2cf0f25b40d16a70087bb315a653 (patch) | |
tree | ec21066ad4af150303e3fe7bbbd4b32399449c96 /gprof/cg_print.c | |
parent | 1a9136e2253b2464a36cb9deabfc5da70900f036 (diff) | |
download | gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.zip gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.tar.gz gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.tar.bz2 |
* 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.
Diffstat (limited to 'gprof/cg_print.c')
-rw-r--r-- | gprof/cg_print.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gprof/cg_print.c b/gprof/cg_print.c index 2a7bc83..64275f7 100644 --- a/gprof/cg_print.c +++ b/gprof/cg_print.c @@ -36,23 +36,23 @@ DEFUN_VOID (print_header) { if (print_descriptions) { - printf ("\t\t Call graph (explanation follows)\n\n"); + printf (_("\t\t Call graph (explanation follows)\n\n")); } else { - printf ("\t\t\tCall graph\n\n"); + printf (_("\t\t\tCall graph\n\n")); } } - printf ("\ngranularity: each sample hit covers %ld byte(s)", + printf (_("\ngranularity: each sample hit covers %ld byte(s)"), (long) hist_scale * sizeof (UNIT)); if (print_time > 0.0) { - printf (" for %.2f%% of %.2f seconds\n\n", + printf (_(" for %.2f%% of %.2f seconds\n\n"), 100.0 / print_time, print_time / hz); } else { - printf (" no time propagated\n\n"); + printf (_(" no time propagated\n\n")); /* * This doesn't hurt, since all the numerators will be 0.0: */ @@ -61,17 +61,17 @@ DEFUN_VOID (print_header) if (bsd_style_output) { printf ("%6.6s %5.5s %7.7s %11.11s %7.7s/%-7.7s %-8.8s\n", - "", "", "", "", "called", "total", "parents"); + "", "", "", "", _("called"), _("total"), _("parents")); printf ("%-6.6s %5.5s %7.7s %11.11s %7.7s+%-7.7s %-8.8s\t%5.5s\n", - "index", "%time", "self", "descendents", - "called", "self", "name", "index"); + _("index"), _("%time"), _("self"), _("descendents"), + _("called"), _("self"), _("name"), _("index")); printf ("%6.6s %5.5s %7.7s %11.11s %7.7s/%-7.7s %-8.8s\n", - "", "", "", "", "called", "total", "children"); + "", "", "", "", _("called"), _("total"), _("children")); printf ("\n"); } else { - printf ("index %% time self children called name\n"); + printf (_("index %% time self children called name\n")); } } @@ -98,7 +98,7 @@ DEFUN (print_cycle, (cyc), Sym * cyc) { printf (" %7.7s", ""); } - printf (" <cycle %d as a whole> [%d]\n", cyc->cg.cyc.num, cyc->cg.index); + printf (_(" <cycle %d as a whole> [%d]\n"), cyc->cg.cyc.num, cyc->cg.index); } @@ -350,8 +350,8 @@ DEFUN (print_parents, (child), Sym * child) if (!child->cg.parents) { printf (bsd_style_output - ? "%6.6s %5.5s %7.7s %11.11s %7.7s %7.7s <spontaneous>\n" - : "%6.6s %5.5s %7.7s %7.7s %7.7s %7.7s <spontaneous>\n", + ? _("%6.6s %5.5s %7.7s %11.11s %7.7s %7.7s <spontaneous>\n") + : _("%6.6s %5.5s %7.7s %7.7s %7.7s %7.7s <spontaneous>\n"), "", "", "", "", "", ""); return; } @@ -583,7 +583,7 @@ DEFUN_VOID (cg_print_index) { name_sorted_syms[todo++] = &cycle_header[index]; } - printf ("\f\nIndex by function name\n\n"); + printf (_("\f\nIndex by function name\n\n")); index = (todo + 2) / 3; for (i = 0; i < index; i++) { @@ -640,7 +640,7 @@ DEFUN_VOID (cg_print_index) if (bsd_style_output) { printf ("%6.6s ", buf); - sprintf (buf, "<cycle %d>", sym->cg.cyc.num); + sprintf (buf, _("<cycle %d>"), sym->cg.cyc.num); printf ("%-19.19s", buf); } else @@ -649,7 +649,7 @@ DEFUN_VOID (cg_print_index) for (; col < starting_col + 5; ++col) putchar (' '); printf (" %s ", buf); - sprintf (buf, "<cycle %d>", sym->cg.cyc.num); + sprintf (buf, _("<cycle %d>"), sym->cg.cyc.num); printf ("%s", buf); col += strlen (buf); } |