[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4238 - i18nHTML/src/admin
From: |
grothoff |
Subject: |
[GNUnet-SVN] r4238 - i18nHTML/src/admin |
Date: |
Sat, 6 Jan 2007 16:31:49 -0800 (PST) |
Author: grothoff
Date: 2007-01-06 16:31:47 -0800 (Sat, 06 Jan 2007)
New Revision: 4238
Modified:
i18nHTML/src/admin/status.php
Log:
fix
Modified: i18nHTML/src/admin/status.php
===================================================================
--- i18nHTML/src/admin/status.php 2007-01-07 00:31:02 UTC (rev 4237)
+++ i18nHTML/src/admin/status.php 2007-01-07 00:31:47 UTC (rev 4238)
@@ -47,22 +47,28 @@
$stats = ARRAY();
$query = "SELECT lang FROM ${i18nHTMLsqlPrefix}languages ORDER BY lang";
$result = mysql_query($query, $connection);
+$total = 0;
$num = 0;
if ($result)
$num = mysql_numrows($result);
echo "<center>[<a href=\"?xlang=${i18nHTMLsrcLang}\">" . W_($i18nHTMLsrcLang)
. "</a>";
while ($num-- > 0) {
$row = mysql_fetch_array($result);
+ if (! $row)
+ continue;
$clang = $row["lang"];
$query2 = "SELECT tid FROM ${i18nHTMLsqlPrefix}map WHERE lang=\"${clang}\"";
$result2 = mysql_query($query2, $connection);
- $num = 0;
+ $num2 = 0;
if ($result)
- $num = mysql_numrows($result2);
- $stats[$clang] = $num;
+ $num2 = mysql_numrows($result2);
+ if ($clang != $i18nHTMLsrcLang) {
+ $stats[$clang] = $num2;
+ $total += $num2;
+ }
}
-W("%s translated sentences in database.", $num);
+W("%s translated sentences in database.", $total);
EP();
echo "<center><table border=5>\n";
echo "<tr>";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4238 - i18nHTML/src/admin,
grothoff <=