char *argv[];
{
program_name = argv[0];
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
failure = 0;
lineno = 0;
getargs(argc, argv);
extern char *infile;
if (infile == 0)
- fprintf(stderr, "fatal error: %s\n", s);
+ fprintf(stderr, _("fatal error: %s\n"), s);
else
- fprintf(stderr, "\"%s\", line %d: %s\n", infile, lineno, s);
+ fprintf(stderr, _("\"%s\", line %d: %s\n"), infile, lineno, s);
done(1);
}
extern char *infile;
if (infile == 0)
- fprintf(stderr, "error: %s\n", s);
+ fprintf(stderr, _("error: %s\n"), s);
else
- fprintf(stderr, "(\"%s\", line %d) error: %s\n",
+ fprintf(stderr, _("(\"%s\", line %d) error: %s\n"),
infile, lineno, s);
failure = 1;
char *s;
{
char buffer[200];
- sprintf(buffer, "limit of %d exceeded, too many %s", MAXSHORT, s);
+ sprintf(buffer, _("limit of %d exceeded, too many %s"), MAXSHORT, s);
fatal(buffer);
}
berror(s)
char *s;
{
- fprintf(stderr, "internal error, %s\n", s);
+ fprintf(stderr, _("internal error, %s\n"), s);
abort();
}