changeset 9765:5130709f3066

[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: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 16 Aug 2004 04:18:11 +0000
parents 22e55a5d9265
children 14d997822897
files po/stats.pl
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;