mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
* 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.
This commit is contained in:
@ -137,7 +137,7 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
|
||||
{
|
||||
if (errno == ENOENT)
|
||||
{
|
||||
fprintf (stderr, "%s: could not locate `%s'\n",
|
||||
fprintf (stderr, _("%s: could not locate `%s'\n"),
|
||||
whoami, sf->name);
|
||||
}
|
||||
else
|
||||
@ -197,7 +197,7 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
|
||||
{
|
||||
fprintf (ofp, "\f\n");
|
||||
}
|
||||
fprintf (ofp, "*** File %s:\n", sf->name);
|
||||
fprintf (ofp, _("*** File %s:\n"), sf->name);
|
||||
}
|
||||
|
||||
annotation = xmalloc (max_width + 1);
|
||||
|
Reference in New Issue
Block a user