Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv32259
Modified Files:
po4a-translate
Log Message:
Remove trailing newlines from gettext messages, they are error
prone for translators.
Index: po4a-translate
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a-translate,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- po4a-translate 30 Apr 2004 23:05:43 -0000 1.18
+++ po4a-translate 30 Apr 2004 23:12:47 -0000 1.19
@@ -227,21 +227,21 @@
my ($percent,$hit,$queries) = $doc->stats();
my $error=0;
-print STDERR sprintf(gettext("%s is %s%% translated (%s of %s strings)\n"),
- $master_filename,$percent,$hit,$queries)
+printf STDERR (gettext("%s is %s%% translated (%s of %s strings)"),
+ $master_filename,$percent,$hit,$queries),"\n"
if $verbose;
if ($percent<$threshold) {
- print STDERR sprintf(gettext("ERROR: translation of %s discarded: only %s%% are
translated ; %s%% is needed to keep translations.\n"),
- $master_filename,$percent,$threshold);
+ printf STDERR (gettext("ERROR: translation of %s discarded: only %s%% are
translated ; %s%% is needed to keep translations."),
+ $master_filename,$percent,$threshold),"\n";
unlink($outfile) if (-e $outfile);
} else {
foreach (@addfiles) {
unless ($error) {
$error ||= !$doc->addendum($_);
- die sprintf(gettext("ERROR: file %s couldn't be added to %s.\n This
translation is therefore discarded\n"),
- $_,$master_filename)
+ die sprintf(gettext("ERROR: file %s couldn't be added to %s.\n This
translation is therefore discarded."),
+ $_,$master_filename)."\n"
if $error;
}
}