[Po4a-commits] "po4a po4a-gettextize, 1.36, 1.37 po4a-normalize, 1.28, 1.29 changelog, 1.105, 1.106"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sat Oct 7 21:15:12 UTC 2006


Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv31942

Modified Files:
	po4a-gettextize po4a-normalize changelog 
Log Message:
Beginning of the support for reading stdin. Thanks to Denis Barbier.
I'm keeping 378625 since more work is needed for a full support.


Index: po4a-gettextize
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a-gettextize,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- po4a-gettextize	13 Nov 2005 12:44:57 -0000	1.36
+++ po4a-gettextize	7 Oct 2006 21:15:10 -0000	1.37
@@ -194,7 +194,7 @@
 }
 # Check file existence
 foreach my $file (@masterfile, @locfile) {
-    -e $file || die wrap_msg(gettext("File %s does not exist."), $file);
+    $file eq '-' || -e $file || die wrap_msg(gettext("File %s does not exist."), $file);
 }
 
 # Declare the TransTractor parsers

Index: po4a-normalize
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a-normalize,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- po4a-normalize	22 Sep 2005 21:51:49 -0000	1.28
+++ po4a-normalize	7 Oct 2006 21:15:10 -0000	1.29
@@ -137,7 +137,7 @@
 my $parser=Locale::Po4a::Chooser::new($type,%options);
 
 my $filename = shift || pod2usage(1);
--e $filename || die wrap_msg(gettext("File %s does not exist."), $filename);
+$filename eq '-' || -e $filename || die wrap_msg(gettext("File %s does not exist."), $filename);
 
 $parser->read($filename);
 $parser->{TT}{utf_mode} = 1;

Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- changelog	7 Oct 2006 20:55:24 -0000	1.105
+++ changelog	7 Oct 2006 21:15:10 -0000	1.106
@@ -1,5 +1,13 @@
 2006-10-07  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* po4a-normalize: Beginning of support for reading stdin.
+	More work is needed for a full support (other options, other
+	tools, module should not read the file twice, how to deal with
+	inclusion, ...).
+	* po4a-gettextize: Likewise.
+
+2006-10-07  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/Locale/Po4a/Sgml.pm: Add 'term' to the verbatim tags. This
 	is needed for the module-assistant sgml man page. Otherwise,
 	lists' items are not indented.




More information about the Po4a-commits mailing list