[xiph-commits] r15061 - trunk/vorbis-tools/oggdec

ivo at svn.xiph.org ivo at svn.xiph.org
Tue Jun 24 08:12:51 PDT 2008


Author: ivo
Date: 2008-06-24 08:12:50 -0700 (Tue, 24 Jun 2008)
New Revision: 15061

Modified:
   trunk/vorbis-tools/oggdec/oggdec.c
Log:
gettextize oggdec's help text.  Patch by Benno Schulenberg.

Modified: trunk/vorbis-tools/oggdec/oggdec.c
===================================================================
--- trunk/vorbis-tools/oggdec/oggdec.c	2008-06-24 02:55:08 UTC (rev 15060)
+++ trunk/vorbis-tools/oggdec/oggdec.c	2008-06-24 15:12:50 UTC (rev 15061)
@@ -47,31 +47,27 @@
 char *outfilename = NULL;
 
 static void version (void) {
-    fprintf (stderr, _("oggdec from %s %s\n"), PACKAGE, VERSION);
+    fprintf(stderr, _("oggdec from %s %s\n"), PACKAGE, VERSION);
 }
 
 static void usage(void)
 {
     version ();
-    fprintf (stderr, _(" by the Xiph.Org Foundation (http://www.xiph.org/)\n\n"));
-    fprintf(stderr, "Usage: oggdec [flags] file1.ogg [file2.ogg ... fileN.ogg]\n"
-                    "\n"
-                    "Supported flags:\n"
-                    " --quiet, -Q      Quiet mode. No console output.\n"
-                    " --help,  -h      Produce this help message.\n"
-                    " --version, -v    Print out version number.\n"
-                    " --bits, -b       Bit depth for output (8 and 16 supported)\n"
-                    " --endianness, -e Output endianness for 16 bit output. 0 for\n"
-                    "                  little endian (default), 1 for big endian\n"
-                    " --sign, -s       Sign for output PCM, 0 for unsigned, 1 for\n"
-                    "                  signed (default 1)\n"
-                    " --raw, -R        Raw (headerless) output.\n"
-                    " --output, -o     Output to given filename. May only be used\n"
-                    "                  if there is only one input file, except in\n"
-                    "                  raw mode.\n"
-
-            );
-
+    fprintf(stderr, _(" by the Xiph.Org Foundation (http://www.xiph.org/)\n\n"));
+    fprintf(stderr, _("Usage: oggdec [options] file1.ogg [file2.ogg ... fileN.ogg]\n\n"));
+    fprintf(stderr, _("Supported options:\n"));
+    fprintf(stderr, _(" --quiet, -Q      Quiet mode. No console output.\n"));
+    fprintf(stderr, _(" --help,  -h      Produce this help message.\n"));
+    fprintf(stderr, _(" --version, -v    Print out version number.\n"));
+    fprintf(stderr, _(" --bits, -b       Bit depth for output (8 and 16 supported)\n"));
+    fprintf(stderr, _(" --endianness, -e Output endianness for 16-bit output; 0 for\n"
+                      "                  little endian (default), 1 for big endian.\n"));
+    fprintf(stderr, _(" --sign, -s       Sign for output PCM; 0 for unsigned, 1 for\n"
+                      "                  signed (default 1).\n"));
+    fprintf(stderr, _(" --raw, -R        Raw (headerless) output.\n"));
+    fprintf(stderr, _(" --output, -o     Output to given filename. May only be used\n"
+                      "                  if there is only one input file, except in\n"
+                      "                  raw mode.\n"));
 }
 
 
@@ -395,7 +391,7 @@
 
         if(!outfile)
             return 1;
-        
+
         for(i=optind; i < argc; i++) {
             if(!strcmp(argv[i], "-")) {
                 infilename = NULL;
@@ -456,7 +452,7 @@
                 fclose(infile);
                 return 1;
             }
-        
+
             if(decode_file(infile, outfile, in, out)) {
                 fclose(outfile);
                 return 1;
@@ -474,5 +470,3 @@
 
     return 0;
 }
-    
-



More information about the commits mailing list