/*
- * "$Id: serial.c 6170 2007-01-02 17:26:41Z mike $"
+ * "$Id: serial.c 6403 2007-03-27 16:00:56Z mike $"
*
* Serial port backend for the Common UNIX Printing System (CUPS).
*
}
else if (argc < 6 || argc > 7)
{
- fputs("Usage: serial job-id user title copies options [file]\n", stderr);
+ fprintf(stderr, _("Usage: %s job-id user title copies options [file]\n"),
+ argv[0]);
return (CUPS_BACKEND_FAILED);
}
* available printer in the class.
*/
- fputs("INFO: Unable to open serial port, queuing on next printer in class...\n",
- stderr);
+ fputs(_("INFO: Unable to contact printer, queuing on next "
+ "printer in class...\n"), stderr);
/*
* Sleep 5 seconds to keep the job from requeuing too rapidly...
if (errno == EBUSY)
{
- fputs("INFO: Serial port busy; will retry in 30 seconds...\n", stderr);
+ fputs(_("INFO: Printer busy; will retry in 30 seconds...\n"), stderr);
sleep(30);
}
else
{
- fprintf(stderr, "ERROR: Unable to open serial port device file \"%s\": %s\n",
+ fprintf(stderr, _("ERROR: Unable to open device file \"%s\": %s\n"),
resource, strerror(errno));
return (CUPS_BACKEND_FAILED);
}
break;
# endif /* B230400 */
default :
- fprintf(stderr, "WARNING: Unsupported baud rate %s!\n", value);
+ fprintf(stderr, _("WARNING: Unsupported baud rate %s!\n"),
+ value);
break;
}
#endif /* B19200 == 19200 */
if (cupsSideChannelRead(&command, &status, data, &datalen, 1.0))
{
- fputs("WARNING: Failed to read side-channel request!\n", stderr);
+ fputs(_("WARNING: Failed to read side-channel request!\n"), stderr);
return;
}
/*
- * End of "$Id: serial.c 6170 2007-01-02 17:26:41Z mike $".
+ * End of "$Id: serial.c 6403 2007-03-27 16:00:56Z mike $".
*/