summaryrefslogtreecommitdiff
path: root/filter/gziptoany.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-04-02 15:56:16 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-04-02 15:56:16 +0000
commitc0e1af835b65e53b4506f37f235c7cdc820dffa8 (patch)
tree02074fc1df79e914b7a6777ab1e6e9e6da1e79ad /filter/gziptoany.c
parentf42414bf8a43f4c1b464bf1de9d357edba4fd439 (diff)
downloadcups-c0e1af835b65e53b4506f37f235c7cdc820dffa8.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@303 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'filter/gziptoany.c')
-rw-r--r--filter/gziptoany.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/filter/gziptoany.c b/filter/gziptoany.c
index 0fa4b9a1e..52da21a9c 100644
--- a/filter/gziptoany.c
+++ b/filter/gziptoany.c
@@ -1,5 +1,5 @@
/*
- * "$Id: gziptoany.c 6400 2007-03-26 14:29:40Z mike $"
+ * "$Id: gziptoany.c 6420 2007-03-30 20:00:59Z mike $"
*
* GZIP/raw pre-filter for the Common UNIX Printing System (CUPS).
*
@@ -34,6 +34,7 @@
#include <cups/file.h>
#include <cups/string.h>
+#include <cups/i18n.h>
#include <stdlib.h>
#include <errno.h>
@@ -58,7 +59,8 @@ main(int argc, /* I - Number of command-line arguments */
if (argc != 7)
{
- fputs("ERROR: gziptoany job-id user title copies options file\n", stderr);
+ fprintf(stderr, _("Usage: %s job-id user title copies options file\n"),
+ argv[0]);
return (1);
}
@@ -78,7 +80,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],
+ fprintf(stderr, _("ERROR: Unable to open file \"%s\": %s\n"), argv[6],
strerror(errno));
return (1);
}
@@ -100,7 +102,7 @@ main(int argc, /* I - Number of command-line arguments */
if (fwrite(buffer, 1, bytes, stdout) < bytes)
{
fprintf(stderr,
- "ERROR: Unable to write uncompressed document data: %s\n",
+ _("ERROR: Unable to write uncompressed document data: %s\n"),
strerror(ferror(stdout)));
cupsFileClose(fp);
@@ -121,5 +123,5 @@ main(int argc, /* I - Number of command-line arguments */
/*
- * End of "$Id: gziptoany.c 6400 2007-03-26 14:29:40Z mike $".
+ * End of "$Id: gziptoany.c 6420 2007-03-30 20:00:59Z mike $".
*/