/*
- * "$Id: runloop.c 6649 2007-07-11 21:46:42Z mike $"
+ * "$Id: runloop.c 6835 2007-08-22 18:34:34Z mike $"
*
* Common run loop APIs for the Common UNIX Printing System (CUPS).
*
if (errno != ENOSPC && errno != ENXIO && errno != EAGAIN &&
errno != EINTR && errno != ENOTTY)
{
- fprintf(stderr, _("ERROR: Unable to write print data: %s\n"),
- strerror(errno));
+ _cupsLangPrintf(stderr, _("ERROR: Unable to write print data: %s\n"),
+ strerror(errno));
return (-1);
}
}
if (errno == ENXIO && offline != 1)
{
fputs("STATE: +offline-error\n", stderr);
- fputs(_("INFO: Printer is currently off-line.\n"), stderr);
+ _cupsLangPuts(stderr, _("INFO: Printer is currently off-line.\n"));
offline = 1;
}
else if (errno == EINTR && total_bytes == 0)
if (paperout != 1)
{
fputs("STATE: +media-empty-error\n", stderr);
- fputs(_("ERROR: Out of paper!\n"), stderr);
+ _cupsLangPuts(stderr, _("ERROR: Out of paper!\n"));
paperout = 1;
}
}
if (offline != 1)
{
fputs("STATE: +offline-error\n", stderr);
- fputs(_("INFO: Printer is currently off-line.\n"), stderr);
+ _cupsLangPuts(stderr, _("INFO: Printer is currently off-line.\n"));
offline = 1;
}
}
if (offline)
{
fputs("STATE: -offline-error\n", stderr);
- fputs(_("INFO: Printer is now on-line.\n"), stderr);
+ _cupsLangPuts(stderr, _("INFO: Printer is now on-line.\n"));
offline = 0;
}
/*
- * End of "$Id: runloop.c 6649 2007-07-11 21:46:42Z mike $".
+ * End of "$Id: runloop.c 6835 2007-08-22 18:34:34Z mike $".
*/