*
* "lpadmin" command for the Common UNIX Printing System (CUPS).
*
- * Copyright 2007-2008 by Apple Inc.
+ * Copyright 2007-2009 by Apple Inc.
* Copyright 1997-2006 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
_cupsLangPuts(stderr,
_("lpadmin: Unable to add a printer to the class:\n"
" You must specify a printer name "
- "first!\n"));
+ "first\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected class name after \'-c\' "
- "option!\n"));
+ "option\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Class name can only contain printable "
- "characters!\n"));
+ "characters\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected printer name after \'-d\' "
- "option!\n"));
+ "option\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Printer name can only contain "
- "printable characters!\n"));
+ "printable characters\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected hostname after \'-h\' "
- "option!\n"));
+ "option\n"));
return (1);
}
_cupsLangPuts(stderr,
_("lpadmin: Unable to set the interface script:\n"
" You must specify a printer name "
- "first!\n"));
+ "first\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected interface after \'-i\' "
- "option!\n"));
+ "option\n"));
return (1);
}
httpEncryption(http, HTTP_ENCRYPT_REQUIRED);
#else
_cupsLangPrintf(stderr,
- _("%s: Sorry, no encryption support compiled in!\n"),
+ _("%s: Sorry, no encryption support compiled in\n"),
argv[0]);
#endif /* HAVE_SSL */
break;
_("lpadmin: Unable to set the interface script or "
"PPD file:\n"
" You must specify a printer name "
- "first!\n"));
+ "first\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected model after \'-m\' "
- "option!\n"));
+ "option\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected name=value after \'-o\' "
- "option!\n"));
+ "option\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected printer after \'-p\' "
- "option!\n"));
+ "option\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Printer name can only contain "
- "printable characters!\n"));
+ "printable characters\n"));
return (1);
}
break;
_("lpadmin: Unable to remove a printer from the "
"class:\n"
" You must specify a printer name "
- "first!\n"));
+ "first\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected class after \'-r\' "
- "option!\n"));
+ "option\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Class name can only contain printable "
- "characters!\n"));
+ "characters\n"));
return (1);
}
{
_cupsLangPrintf(stderr,
_("%s: Error - expected username after "
- "\'-U\' option!\n"),
+ "\'-U\' option\n"),
argv[0]);
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected allow/deny:userlist after "
- "\'-u\' option!\n"));
+ "\'-u\' option\n"));
return (1);
}
else
{
_cupsLangPrintf(stderr,
- _("lpadmin: Unknown allow/deny option \"%s\"!\n"),
+ _("lpadmin: Unknown allow/deny option \"%s\"\n"),
val);
return (1);
}
_cupsLangPuts(stderr,
_("lpadmin: Unable to set the device URI:\n"
" You must specify a printer name "
- "first!\n"));
+ "first\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected device URI after \'-v\' "
- "option!\n"));
+ "option\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected printer or class after "
- "\'-x\' option!\n"));
+ "\'-x\' option\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Printer name can only contain "
- "printable characters!\n"));
+ "printable characters\n"));
return (1);
}
_("lpadmin: Unable to set the printer "
"description:\n"
" You must specify a printer name "
- "first!\n"));
+ "first\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected description after "
- "\'-D\' option!\n"));
+ "\'-D\' option\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected file type(s) after \'-I\' "
- "option!\n"));
+ "option\n"));
return (1);
}
_cupsLangPuts(stderr,
- _("lpadmin: Warning - content type list ignored!\n"));
+ _("lpadmin: Warning - content type list ignored\n"));
break;
case 'L' : /* Set the printer-location attribute */
_cupsLangPuts(stderr,
_("lpadmin: Unable to set the printer location:\n"
" You must specify a printer name "
- "first!\n"));
+ "first\n"));
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Expected location after \'-L\' "
- "option!\n"));
+ "option\n"));
return (1);
}
_cupsLangPuts(stderr,
_("lpadmin: Unable to set the PPD file:\n"
" You must specify a printer name "
- "first!\n"));
+ "first\n"));
return (1);
}
if (i >= argc)
{
_cupsLangPuts(stderr,
- _("lpadmin: Expected PPD after \'-P\' option!\n"));
+ _("lpadmin: Expected PPD after \'-P\' option\n"));
return (1);
}
default :
_cupsLangPrintf(stderr,
- _("lpadmin: Unknown option \'%c\'!\n"), argv[i][1]);
+ _("lpadmin: Unknown option \'%c\'\n"), argv[i][1]);
return (1);
}
else
{
- _cupsLangPrintf(stderr, _("lpadmin: Unknown argument \'%s\'!\n"),
+ _cupsLangPrintf(stderr, _("lpadmin: Unknown argument \'%s\'\n"),
argv[i]);
return (1);
}
{
_cupsLangPuts(stderr,
_("lpadmin: Unable to set the printer options:\n"
- " You must specify a printer name first!\n"));
+ " You must specify a printer name first\n"));
return (1);
}
if ((members = ippFindAttribute(response, "member-names", IPP_TAG_NAME)) == NULL)
{
- _cupsLangPuts(stderr, _("lpadmin: No member names were seen!\n"));
+ _cupsLangPuts(stderr, _("lpadmin: No member names were seen\n"));
ippDelete(response);
if ((fd = cupsTempFd(tempfile, sizeof(tempfile))) < 0)
{
- _cupsLangPrintf(stderr,
- _("lpadmin: Unable to create temporary file: %s\n"),
- strerror(errno));
+ _cupsLangPrintError(_("ERROR: Unable to create temporary file"));
return (1);
}
if ((outfd = cupsTempFd(tempfile, sizeof(tempfile))) < 0)
{
- _cupsLangPrintf(stderr,
- _("lpadmin: Unable to create temporary file - %s\n"),
- strerror(errno));
+ _cupsLangPrintError(_("ERROR: Unable to create temporary file"));
ippDelete(request);
unlink(ppdfile);
return (1);