gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1636 - Extractor-docs/WWW GNUnet-docs/WWW doodle-docs/WWW


From: grothoff
Subject: [GNUnet-SVN] r1636 - Extractor-docs/WWW GNUnet-docs/WWW doodle-docs/WWW i18nHTML/src i18nHTML-docs/WWW
Date: Tue, 9 Aug 2005 07:15:59 -0700 (PDT)

Author: grothoff
Date: 2005-08-09 07:15:55 -0700 (Tue, 09 Aug 2005)
New Revision: 1636

Modified:
   Extractor-docs/WWW/commitMassTranslation.php
   Extractor-docs/WWW/editor.php
   GNUnet-docs/WWW/commitMassTranslation.php
   GNUnet-docs/WWW/editor.php
   doodle-docs/WWW/commitMassTranslation.php
   doodle-docs/WWW/editor.php
   i18nHTML-docs/WWW/commitMassTranslation.php
   i18nHTML-docs/WWW/editor.php
   i18nHTML/src/commitMassTranslation.php
   i18nHTML/src/editor.php
Log:
fix

Modified: Extractor-docs/WWW/commitMassTranslation.php
===================================================================
--- Extractor-docs/WWW/commitMassTranslation.php        2005-08-09 06:36:41 UTC 
(rev 1635)
+++ Extractor-docs/WWW/commitMassTranslation.php        2005-08-09 14:15:55 UTC 
(rev 1636)
@@ -32,12 +32,14 @@
 echo "</head><body>";
 W("Processing translations...");
 P();
-$done = 0;
+$skip = 0;
 foreach($_POST as $dec=>$val) {
-  if ($val == "")
-    continue;
   if ( ($dec == "xlang") || ($dec == "start") )
     continue;
+  if ($val == "") {
+    $skip++;
+    continue;
+  }
   $val = fix($val);
   $query = "SELECT c FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$xlang\"";
   $result = mysql_query($query, $connection);
@@ -82,7 +84,6 @@
       $query = "INSERT INTO ".$i18nHTMLsqlPrefix."map VALUES(\"$enc_sql\", 
\"$lang\", " .
                "\"$val_sql\", 1, \"" . $_SERVER['REMOTE_ADDR'] . "\");";
       mysql_query($query, $connection);
-      $done++;
       W("Storing translation for &quot;%s&quot = &quot;%s&quot;.",
         ARRAY(stripslashes($enc_sql),
              stripslashes($val_sql)));
@@ -91,7 +92,7 @@
   }
 }
 P();
-echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $done) . "\">";
+echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $skip) . "\">";
 $t = TRANSLATE("Continue mass-editing...");
 echo "</a>";
 if ($t == 1)

Modified: Extractor-docs/WWW/editor.php
===================================================================
--- Extractor-docs/WWW/editor.php       2005-08-09 06:36:41 UTC (rev 1635)
+++ Extractor-docs/WWW/editor.php       2005-08-09 14:15:55 UTC (rev 1636)
@@ -50,9 +50,9 @@
 if ($end > $num) {
   $end = $num;
   $start = $end - $max;
-  if ($start < 0)
+}
+if ($start < 0)
     $start = 0;
-}
 
 if ($num == 0) {
   P();

Modified: GNUnet-docs/WWW/commitMassTranslation.php
===================================================================
--- GNUnet-docs/WWW/commitMassTranslation.php   2005-08-09 06:36:41 UTC (rev 
1635)
+++ GNUnet-docs/WWW/commitMassTranslation.php   2005-08-09 14:15:55 UTC (rev 
1636)
@@ -32,12 +32,14 @@
 echo "</head><body>";
 W("Processing translations...");
 P();
-$done = 0;
+$skip = 0;
 foreach($_POST as $dec=>$val) {
-  if ($val == "")
-    continue;
   if ( ($dec == "xlang") || ($dec == "start") )
     continue;
+  if ($val == "") {
+    $skip++;
+    continue;
+  }
   $val = fix($val);
   $query = "SELECT c FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$xlang\"";
   $result = mysql_query($query, $connection);
@@ -82,7 +84,6 @@
       $query = "INSERT INTO ".$i18nHTMLsqlPrefix."map VALUES(\"$enc_sql\", 
\"$lang\", " .
                "\"$val_sql\", 1, \"" . $_SERVER['REMOTE_ADDR'] . "\");";
       mysql_query($query, $connection);
-      $done++;
       W("Storing translation for &quot;%s&quot = &quot;%s&quot;.",
         ARRAY(stripslashes($enc_sql),
              stripslashes($val_sql)));
@@ -91,7 +92,7 @@
   }
 }
 P();
-echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $done) . "\">";
+echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $skip) . "\">";
 $t = TRANSLATE("Continue mass-editing...");
 echo "</a>";
 if ($t == 1)

Modified: GNUnet-docs/WWW/editor.php
===================================================================
--- GNUnet-docs/WWW/editor.php  2005-08-09 06:36:41 UTC (rev 1635)
+++ GNUnet-docs/WWW/editor.php  2005-08-09 14:15:55 UTC (rev 1636)
@@ -50,9 +50,9 @@
 if ($end > $num) {
   $end = $num;
   $start = $end - $max;
-  if ($start < 0)
+}
+if ($start < 0)
     $start = 0;
-}
 
 if ($num == 0) {
   P();

Modified: doodle-docs/WWW/commitMassTranslation.php
===================================================================
--- doodle-docs/WWW/commitMassTranslation.php   2005-08-09 06:36:41 UTC (rev 
1635)
+++ doodle-docs/WWW/commitMassTranslation.php   2005-08-09 14:15:55 UTC (rev 
1636)
@@ -32,12 +32,14 @@
 echo "</head><body>";
 W("Processing translations...");
 P();
-$done = 0;
+$skip = 0;
 foreach($_POST as $dec=>$val) {
-  if ($val == "")
-    continue;
   if ( ($dec == "xlang") || ($dec == "start") )
     continue;
+  if ($val == "") {
+    $skip++;
+    continue;
+  }
   $val = fix($val);
   $query = "SELECT c FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$xlang\"";
   $result = mysql_query($query, $connection);
@@ -82,7 +84,6 @@
       $query = "INSERT INTO ".$i18nHTMLsqlPrefix."map VALUES(\"$enc_sql\", 
\"$lang\", " .
                "\"$val_sql\", 1, \"" . $_SERVER['REMOTE_ADDR'] . "\");";
       mysql_query($query, $connection);
-      $done++;
       W("Storing translation for &quot;%s&quot = &quot;%s&quot;.",
         ARRAY(stripslashes($enc_sql),
              stripslashes($val_sql)));
@@ -91,7 +92,7 @@
   }
 }
 P();
-echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $done) . "\">";
+echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $skip) . "\">";
 $t = TRANSLATE("Continue mass-editing...");
 echo "</a>";
 if ($t == 1)

Modified: doodle-docs/WWW/editor.php
===================================================================
--- doodle-docs/WWW/editor.php  2005-08-09 06:36:41 UTC (rev 1635)
+++ doodle-docs/WWW/editor.php  2005-08-09 14:15:55 UTC (rev 1636)
@@ -50,9 +50,9 @@
 if ($end > $num) {
   $end = $num;
   $start = $end - $max;
-  if ($start < 0)
+}
+if ($start < 0)
     $start = 0;
-}
 
 if ($num == 0) {
   P();

Modified: i18nHTML/src/commitMassTranslation.php
===================================================================
--- i18nHTML/src/commitMassTranslation.php      2005-08-09 06:36:41 UTC (rev 
1635)
+++ i18nHTML/src/commitMassTranslation.php      2005-08-09 14:15:55 UTC (rev 
1636)
@@ -32,12 +32,14 @@
 echo "</head><body>";
 W("Processing translations...");
 P();
-$done = 0;
+$skip = 0;
 foreach($_POST as $dec=>$val) {
-  if ($val == "")
-    continue;
   if ( ($dec == "xlang") || ($dec == "start") )
     continue;
+  if ($val == "") {
+    $skip++;
+    continue;
+  }
   $val = fix($val);
   $query = "SELECT c FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$xlang\"";
   $result = mysql_query($query, $connection);
@@ -82,7 +84,6 @@
       $query = "INSERT INTO ".$i18nHTMLsqlPrefix."map VALUES(\"$enc_sql\", 
\"$lang\", " .
                "\"$val_sql\", 1, \"" . $_SERVER['REMOTE_ADDR'] . "\");";
       mysql_query($query, $connection);
-      $done++;
       W("Storing translation for &quot;%s&quot = &quot;%s&quot;.",
         ARRAY(stripslashes($enc_sql),
              stripslashes($val_sql)));
@@ -91,7 +92,7 @@
   }
 }
 P();
-echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $done) . "\">";
+echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $skip) . "\">";
 $t = TRANSLATE("Continue mass-editing...");
 echo "</a>";
 if ($t == 1)

Modified: i18nHTML/src/editor.php
===================================================================
--- i18nHTML/src/editor.php     2005-08-09 06:36:41 UTC (rev 1635)
+++ i18nHTML/src/editor.php     2005-08-09 14:15:55 UTC (rev 1636)
@@ -50,9 +50,9 @@
 if ($end > $num) {
   $end = $num;
   $start = $end - $max;
-  if ($start < 0)
+}
+if ($start < 0)
     $start = 0;
-}
 
 if ($num == 0) {
   P();

Modified: i18nHTML-docs/WWW/commitMassTranslation.php
===================================================================
--- i18nHTML-docs/WWW/commitMassTranslation.php 2005-08-09 06:36:41 UTC (rev 
1635)
+++ i18nHTML-docs/WWW/commitMassTranslation.php 2005-08-09 14:15:55 UTC (rev 
1636)
@@ -32,12 +32,14 @@
 echo "</head><body>";
 W("Processing translations...");
 P();
-$done = 0;
+$skip = 0;
 foreach($_POST as $dec=>$val) {
-  if ($val == "")
-    continue;
   if ( ($dec == "xlang") || ($dec == "start") )
     continue;
+  if ($val == "") {
+    $skip++;
+    continue;
+  }
   $val = fix($val);
   $query = "SELECT c FROM ".$i18nHTMLsqlPrefix."pending WHERE lang=\"$xlang\"";
   $result = mysql_query($query, $connection);
@@ -82,7 +84,6 @@
       $query = "INSERT INTO ".$i18nHTMLsqlPrefix."map VALUES(\"$enc_sql\", 
\"$lang\", " .
                "\"$val_sql\", 1, \"" . $_SERVER['REMOTE_ADDR'] . "\");";
       mysql_query($query, $connection);
-      $done++;
       W("Storing translation for &quot;%s&quot = &quot;%s&quot;.",
         ARRAY(stripslashes($enc_sql),
              stripslashes($val_sql)));
@@ -91,7 +92,7 @@
   }
 }
 P();
-echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $done) . "\">";
+echo "<a href=\"" . $i18nHTMLbase . "editor.php?xlang=" . $lang . "&start=" . 
($start + $skip) . "\">";
 $t = TRANSLATE("Continue mass-editing...");
 echo "</a>";
 if ($t == 1)

Modified: i18nHTML-docs/WWW/editor.php
===================================================================
--- i18nHTML-docs/WWW/editor.php        2005-08-09 06:36:41 UTC (rev 1635)
+++ i18nHTML-docs/WWW/editor.php        2005-08-09 14:15:55 UTC (rev 1636)
@@ -50,9 +50,9 @@
 if ($end > $num) {
   $end = $num;
   $start = $end - $max;
-  if ($start < 0)
+}
+if ($start < 0)
     $start = 0;
-}
 
 if ($num == 0) {
   P();





reply via email to

[Prev in Thread] Current Thread [Next in Thread]