//
// PPD file import utility for the CUPS PPD Compiler.
//
-// Copyright 2007 by Apple Inc.
+// Copyright 2007-2010 by Apple Inc.
// Copyright 2002-2005 by Easy Software Products.
//
// These coded instructions, statements, and computer programs are the
// Include necessary headers...
//
-#include "ppdc.h"
+#include "ppdc-private.h"
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
ppdcSource *src; // PPD source file data
+ _cupsSetLocale(argv);
+
// Scan the command-line...
srcfile = NULL;
src = NULL;
src->write_file(srcfile);
// Delete the printer driver information...
- delete src;
+ src->release();
// Return with no errors.
return (0);
static void
usage(void)
{
- puts("Usage: ppdi [options] filename.ppd [ ... filenameN.ppd ]");
- puts("Options:");
- puts(" -I include-dir");
- puts(" -o filename.drv");
+ _cupsLangPuts(stdout, _("Usage: ppdi [options] filename.ppd [ ... "
+ "filenameN.ppd ]"));
+ _cupsLangPuts(stdout, _("Options:"));
+ _cupsLangPuts(stdout, _(" -I include-dir"));
+ _cupsLangPuts(stdout, _(" -o filename.drv"));
exit(1);
}