]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/gziptoany.c
Merge changes from CUPS 1.5svn-r9385.
[thirdparty/cups.git] / filter / gziptoany.c
index 8929d5f2919bf8488df5bcc6a4aadb6cc705622a..4114511f9ba83e820807ec18833df9f26ed774d0 100644 (file)
@@ -46,8 +46,9 @@ main(int  argc,                               /* I - Number of command-line arguments */
 
   if (argc != 7)
   {
-    fprintf(stderr, _("Usage: %s job-id user title copies options file\n"),
-            argv[0]);
+    _cupsLangPrintf(stderr,
+                    _("Usage: %s job-id user title copies options file"),
+                    argv[0]);
     return (1);
   }
 
@@ -67,8 +68,7 @@ main(int  argc,                               /* I - Number of command-line arguments */
 
   if ((fp = cupsFileOpen(argv[6], "r")) == NULL)
   {
-    fprintf(stderr, _("ERROR: Unable to open file \"%s\": %s\n"), argv[6],
-            strerror(errno));
+    _cupsLangPrintError("ERROR", _("Unable to open print file"));
     return (1);
   }
 
@@ -88,9 +88,9 @@ main(int  argc,                               /* I - Number of command-line arguments */
     while ((bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0)
       if (fwrite(buffer, 1, bytes, stdout) < bytes)
       {
-       fprintf(stderr,
-               _("ERROR: Unable to write uncompressed document data: %s\n"),
-               strerror(ferror(stdout)));
+       _cupsLangPrintFilter(stderr, "ERROR",
+                            _("Unable to write uncompressed print data: %s"),
+                            strerror(ferror(stdout)));
        cupsFileClose(fp);
 
        return (1);