[xiph-commits] r15341 - in trunk/vorbis-tools: oggdec po
ivo at svn.xiph.org
ivo at svn.xiph.org
Sat Sep 27 12:29:54 PDT 2008
Author: ivo
Date: 2008-09-27 12:29:53 -0700 (Sat, 27 Sep 2008)
New Revision: 15341
Modified:
trunk/vorbis-tools/oggdec/oggdec.c
trunk/vorbis-tools/po/vorbis-tools.pot
Log:
Gettextize all strings in oggdec.
Modified: trunk/vorbis-tools/oggdec/oggdec.c
===================================================================
--- trunk/vorbis-tools/oggdec/oggdec.c 2008-09-25 03:58:26 UTC (rev 15340)
+++ trunk/vorbis-tools/oggdec/oggdec.c 2008-09-27 19:29:53 UTC (rev 15341)
@@ -111,7 +111,7 @@
raw = 1;
break;
default:
- fprintf(stderr, "Internal error: Unrecognised argument\n");
+ fprintf(stderr, _("Internal error: Unrecognised argument\n"));
break;
}
}
@@ -152,7 +152,7 @@
WRITE_U32(headbuf+40, size - 44);
if(fwrite(headbuf, 1, 44, out) != 44) {
- fprintf(stderr, "ERROR: Failed to write wav header: %s\n", strerror(errno));
+ fprintf(stderr, _("ERROR: Failed to write Wave header: %s\n"), strerror(errno));
return 1;
}
@@ -171,7 +171,7 @@
return 1;
if(fwrite(headbuf, 1, 44, out) != 44) {
- fprintf(stderr, "ERROR: Failed to write wav header: %s\n", strerror(errno));
+ fprintf(stderr, _("ERROR: Failed to write Wave header: %s\n"), strerror(errno));
return 1;
}
return 0;
@@ -192,7 +192,7 @@
else {
in = fopen(infile, "rb");
if(!in) {
- fprintf(stderr, "ERROR: Failed to open input file: %s\n", strerror(errno));
+ fprintf(stderr, _("ERROR: Failed to open input file: %s\n"), strerror(errno));
return NULL;
}
}
@@ -214,7 +214,7 @@
else {
out = fopen(outfile, "wb");
if(!out) {
- fprintf(stderr, "ERROR: Failed to open output file: %s\n", strerror(errno));
+ fprintf(stderr, _("ERROR: Failed to open output file: %s\n"), strerror(errno));
return NULL;
}
}
@@ -263,7 +263,7 @@
int samplerate;
if(ov_open(in, &vf, NULL, 0) < 0) {
- fprintf(stderr, "ERROR: Failed to open input as vorbis\n");
+ fprintf(stderr, _("ERROR: Failed to open input as Vorbis\n"));
fclose(in);
return 1;
}
@@ -305,14 +305,14 @@
if(bs != 0) {
vorbis_info *vi = ov_info(&vf, -1);
if(channels != vi->channels || samplerate != vi->rate) {
- fprintf(stderr, "Logical bitstreams with changing parameters are not supported\n");
+ fprintf(stderr, _("Logical bitstreams with changing parameters are not supported\n"));
break;
}
}
if(ret < 0 ) {
if( !quiet ) {
- fprintf(stderr, "Warning: hole in data (%d)\n", ret);
+ fprintf(stderr, _("WARNING: hole in data (%d)\n"), ret);
}
continue;
}
@@ -327,7 +327,7 @@
}
if(fwrite(p_outbuf, 1, ret, out) != ret) {
- fprintf(stderr, "Error writing to file: %s\n", strerror(errno));
+ fprintf(stderr, _("Error writing to file: %s\n"), strerror(errno));
ov_clear(&vf);
return 1;
}
@@ -368,12 +368,12 @@
version();
if(optind >= argc) {
- fprintf(stderr, "ERROR: No input files specified. Use -h for help\n");
+ fprintf(stderr, _("ERROR: No input files specified. Use -h for help\n"));
return 1;
}
if(argc - optind > 1 && outfilename && !raw) {
- fprintf(stderr, "ERROR: Can only specify one input file if output filename is specified\n");
+ fprintf(stderr, _("ERROR: Can only specify one input file if output filename is specified\n"));
return 1;
}
Modified: trunk/vorbis-tools/po/vorbis-tools.pot
===================================================================
--- trunk/vorbis-tools/po/vorbis-tools.pot 2008-09-25 03:58:26 UTC (rev 15340)
+++ trunk/vorbis-tools/po/vorbis-tools.pot 2008-09-27 19:29:53 UTC (rev 15341)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://trac.xiph.org/\n"
-"POT-Creation-Date: 2008-09-17 09:35+0100\n"
+"POT-Creation-Date: 2008-09-27 20:25+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -726,6 +726,57 @@
" raw mode.\n"
msgstr ""
+#: oggdec/oggdec.c:114
+#, c-format
+msgid "Internal error: Unrecognised argument\n"
+msgstr ""
+
+#: oggdec/oggdec.c:155 oggdec/oggdec.c:174
+#, c-format
+msgid "ERROR: Failed to write Wave header: %s\n"
+msgstr ""
+
+#: oggdec/oggdec.c:195
+#, c-format
+msgid "ERROR: Failed to open input file: %s\n"
+msgstr ""
+
+#: oggdec/oggdec.c:217
+#, c-format
+msgid "ERROR: Failed to open output file: %s\n"
+msgstr ""
+
+#: oggdec/oggdec.c:266
+#, c-format
+msgid "ERROR: Failed to open input as Vorbis\n"
+msgstr ""
+
+#: oggdec/oggdec.c:308
+#, c-format
+msgid "Logical bitstreams with changing parameters are not supported\n"
+msgstr ""
+
+#: oggdec/oggdec.c:315
+#, c-format
+msgid "WARNING: hole in data (%d)\n"
+msgstr ""
+
+#: oggdec/oggdec.c:330
+#, c-format
+msgid "Error writing to file: %s\n"
+msgstr ""
+
+#: oggdec/oggdec.c:371
+#, c-format
+msgid "ERROR: No input files specified. Use -h for help\n"
+msgstr ""
+
+#: oggdec/oggdec.c:376
+#, c-format
+msgid ""
+"ERROR: Can only specify one input file if output filename is specified\n"
+msgstr ""
+
#: oggenc/audio.c:50
msgid "WAV file reader"
msgstr ""
More information about the commits
mailing list