[Po4a-commits] po4a/lib/Locale/Po4a Po.pm,1.30,1.31

Martin Quinson po4a-devel@lists.alioth.debian.org
Sun, 05 Dec 2004 19:24:32 +0000


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv10489/lib/Locale/Po4a

Modified Files:
	Po.pm 
Log Message:
Files containing nothing to translate are obviously completely translated (set translation state to 100%) [Yves Rutschle]

Index: Po.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Po.pm,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- Po.pm	27 Nov 2004 01:08:56 -0000	1.30
+++ Po.pm	5 Dec 2004 19:24:29 -0000	1.31
@@ -689,7 +689,7 @@
 sub stats_get() {
     my $self=shift;
     my ($h,$q)=($self->{gettexthits},$self->{gettextqueries});
-    my $p = ($q == 0 ? 0 : int($h/$q*10000)/100);
+    my $p = ($q == 0 ? 100 : int($h/$q*10000)/100);
 
 #    $p =~ s/\.00//;
 #    $p =~ s/(\..)0/$1/;