[Po4a-commits] "po4a po4a,1.32,1.33"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Sat Sep 24 21:04:09 UTC 2005
Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv22889
Modified Files:
po4a
Log Message:
Do not print to STDERR.
This is for the testsuite (the messages were out of order).
If needed, we can reactivate this, and fix the testsuite to compare
separately the error and standard output.
Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- po4a 22 Sep 2005 21:51:49 -0000 1.32
+++ po4a 24 Sep 2005 21:04:07 -0000 1.33
@@ -541,7 +541,7 @@
my $lang;
foreach $lang (sort keys %po_filename) {
if (-e $po_filename{$lang}) {
- print STDERR wrap_msg(gettext("Updating %s:")." ", $po_filename{$lang})
+ print wrap_msg(gettext("Updating %s:")." ", $po_filename{$lang})
if ($po4a_opts{"verbose"});
if ($po4a_opts{"split"}) {
my ($pot_filename,$po_filename,$bigpo_filename);
@@ -588,7 +588,7 @@
if $po4a_opts{"verbose"};
}
} else {
- print STDERR wrap_msg(gettext("Creating %s:"), $po_filename{$lang})
+ print wrap_msg(gettext("Creating %s:"), $po_filename{$lang})
if $po4a_opts{"verbose"};
system ("cp",$pot_filename,$po_filename{$lang}) == 0 ||
die wrap_msg(gettext("Error while copying the po file: %s"), $!);
@@ -631,7 +631,7 @@
my ($percent,$hit,$queries) = $doc->stats();
if ($percent<$file_opts{"threshold"}) {
- print STDERR wrap_msg(gettext("Discard %s (only %s%% translated; need %s%%)."),
+ print wrap_msg(gettext("Discard %s (only %s%% translated; need %s%%)."),
$document{$master}{$lang}, $percent, $file_opts{"threshold"});
unlink($document{$master}{$lang}) if (-e $document{$master}{$lang});
next DOC;
@@ -649,10 +649,10 @@
}
if ($file_opts{"verbose"}) {
if ($percent == 100) {
- print STDERR wrap_msg(gettext("%s is %s%% translated (%s strings)."),
+ print wrap_msg(gettext("%s is %s%% translated (%s strings)."),
$document{$master}{$lang}, $percent, $queries);
} else {
- print STDERR wrap_msg(gettext("%s is %s%% translated (%s of %s strings)."),
+ print wrap_msg(gettext("%s is %s%% translated (%s of %s strings)."),
$document{$master}{$lang}, $percent, $hit, $queries);
}
}
More information about the Po4a-commits
mailing list