]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/commandtops.c
More localization work.
[thirdparty/cups.git] / filter / commandtops.c
index 0a0666e769ed1deb85b3b07137214e998a0dfa1d..47a49072b12d2be58f7ac810c58f963e30b341e4 100644 (file)
@@ -3,7 +3,7 @@
  *
  *   PostScript command filter for CUPS.
  *
- *   Copyright 2008 by Apple Inc.
+ *   Copyright 2008-2010 by Apple Inc.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Apple Inc. and are protected by Federal copyright
@@ -27,8 +27,8 @@
  * Include necessary headers...
  */
 
-#include <cups/cups.h>
-#include <cups/string.h>
+#include <cups/cups-private.h>
+#include <cups/ppd.h>
 #include <cups/sidechannel.h>
 
 
@@ -69,7 +69,9 @@ main(int  argc,                               /* I - Number of command-line arguments */
     * and return.
     */
 
-    fputs("ERROR: commandtops job-id user title copies options [file]\n", stderr);
+    _cupsLangPrintf(stderr,
+                    _("Usage: %s job-id user title copies options file"),
+                    argv[0]);
     return (1);
   }
 
@@ -267,8 +269,8 @@ begin_ps(ppd_file_t *ppd,           /* I - PPD file */
 static void
 end_ps(ppd_file_t *ppd)                        /* I - PPD file */
 {
-  if (ppd->jcl_begin)
-    fputs(ppd->jcl_begin, stdout);
+  if (ppd->jcl_end)
+    fputs(ppd->jcl_end, stdout);
   else
     putchar(0x04);