[gaim-migrate @ 10633]

Mon, 16 Aug 2004 04:18:11 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Mon, 16 Aug 2004 04:18:11 +0000
changeset 9765
e96eb185e767
parent 9764
03d2d9876d5c
child 9766
2371af5578b6

[gaim-migrate @ 10633]
Fix some i18n stats n' stuff. From Stu.

nosnilmot: This is "the web" one that I was referring to earlier. I
mistakenly thought it changed the Gaim web site.

committer: Mark Doliner <markdoliner@pidgin.im>

po/stats.pl file | annotate | diff | comparison | revisions
--- a/po/stats.pl	Mon Aug 16 04:12:00 2004 +0000
+++ b/po/stats.pl	Mon Aug 16 04:18:11 2004 +0000
@@ -48,6 +48,7 @@
 $total = $1;
 
 print "<html>\n";
+print "<head><title>$PACKAGE i18n statistics</title></head>\n";
 print "<body>\n";
 print "<table cellspacing='0' cellpadding='0' border='0' bgcolor='#888888' width='100%'><tr><td><table cellspacing='1' cellpadding='2' border='0' width='100%'>\n";
 
@@ -60,9 +61,9 @@
 	system("msgmerge $po.po $PACKAGE.pot -o $po.new 2>/dev/null");
 	$_ = `msgfmt --statistics $po.new -o /dev/null 2>&1`;
 	chomp;
-	if(/(\d+) translated messages/) { $trans = $1; }
-	if(/(\d+) fuzzy translations/) { $fuzz = $1; }
-	if(/(\d+) untranslated messages/) { $untrans = $1; }
+	if(/(\d+) translated message/) { $trans = $1; }
+	if(/(\d+) fuzzy translation/) { $fuzz = $1; }
+	if(/(\d+) untranslated message/) { $untrans = $1; }
 	$transp = 100 * $trans / $total;
 	$fuzzp = 100 * $fuzz / $total;
 	$untransp = 100 * $untrans / $total;

mercurial