gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r1415 - GNUnet-docs/WWW


From: grothoff
Subject: [GNUnet-SVN] r1415 - GNUnet-docs/WWW
Date: Tue, 12 Jul 2005 12:47:19 -0700 (PDT)

Author: grothoff
Date: 2005-07-12 12:47:16 -0700 (Tue, 12 Jul 2005)
New Revision: 1415

Removed:
   GNUnet-docs/WWW/start.php
   GNUnet-docs/WWW/update0_1_0.php
   GNUnet-docs/WWW/update0_2_0.php
Log:
i18n pages that are not used

Deleted: GNUnet-docs/WWW/start.php
===================================================================
--- GNUnet-docs/WWW/start.php   2005-07-12 19:45:02 UTC (rev 1414)
+++ GNUnet-docs/WWW/start.php   2005-07-12 19:47:16 UTC (rev 1415)
@@ -1,29 +0,0 @@
-<?php
-include("i18nhtml.inc.php");
-DOCTYPE("HTML", "Transitional");
-echo "<html><head>\n";
-TITLE("Documentation");
-echo "</head><body>";
-generateLanguageBar();
-H2("Documentation");
-H3("i18nHTML");
-W("These webpages uses %s to internationalize the documentation.",
-  extlink_("http://gnunet.org/i18nHTML/";, "i18nHTML"));
-W("Please feel encouraged to help, for example by translating some of the 
pages to your native language.");
-W("Just view the pages in your language and click on the &quot;*&quot; after a 
sentence to translate it.");
-W("You can start a new language by adding <tt>lang=LANGUAGE</tt> after the 
<tt>.php3</tt> in the URL.");
-W("The translations incorporate a voting system, the highest ranked 
translation is displayed.");
-W("English is always the source language.");
-W("Only developers can change the source, contact them if you find problems.");
-W("On the translation page, you find all other translations.");
-W("You can also vote for a specific translation by clicking on the respective 
sentence.");
-W("You are allowed to vote multiple times for the same sentence, e.g. to 
express strong feelings. :-)");
-W("The system logs your IP and allows the administrator to easily undo all 
operations that were performed from a certain IP address.");
-if ($xlang && ($xlang != "English") ) {
-  W("You can translate the most commonly requested untranslated sentences for 
your language using the %s.",
-    intlink_("editor.php", "mass translation page"));
- }
-
-generateFooter();
-echo "</body></html>\n";
-?>

Deleted: GNUnet-docs/WWW/update0_1_0.php
===================================================================
--- GNUnet-docs/WWW/update0_1_0.php     2005-07-12 19:45:02 UTC (rev 1414)
+++ GNUnet-docs/WWW/update0_1_0.php     2005-07-12 19:47:16 UTC (rev 1415)
@@ -1,50 +0,0 @@
-<?php
-include("i18nhtml.inc");
-?>
-# This script merely generates the SQL statements<br>
-# to do the update.  You'll have to run the SQL<br>
-# commands yourself to prevent accidental data loss.<br>
-# <pre>
-<?php
-echo "use $i18nHTMLsqlDB;\n";
-$query = "SELECT * FROM map";
-$result = mysql_query($query, $connection);
-$num = 0;
-$loss = 0;
-if ($result) 
-  $num = mysql_numrows($result);
-for ($ii=0;$ii<$num;$ii++) {
-  $row = mysql_fetch_array($result);
-  $la = mysql_real_escape_string($row["lang"]);
-  $src = mysql_real_escape_string($row["name"]); // urlencoded
-  $dst = $row["translation"]; // possibly urlencoded
-  $rank = $row["ranking"];
-  $rtrans = mysql_real_escape_string(to_unicode(urldecode($dst)));
-  // detect "bad" translations (where conversion failed)
-  // if more than 5 values in [0..9] follow => bad conversion
-  $txtCnt = count_chars(urldecode($src), 1);
-  $tCnt = count_chars($rtrans, 1);
-
-  // 3426
-  if (! ( ereg("&#[0-9]{6}", $rtrans) ||
-          ($txtCnt[ord('%')] != $tCnt[ord('%')]) ||
-          ( ( ($la != "Japanese") &&
-              ($la != "Traditional chinese") &&
-              ($la != "Russian") &&
-              ($la != "Ukrainian") &&
-             (ereg("&#[0-9]{4}", $rtrans)) ) ) ) ) {
-    $dst = mysql_real_escape_string($dst);
-    if ($rtrans != $dst) {
-      $subquery = "UPDATE map SET translation=\"$rtrans\" WHERE name=\"$src\" 
AND lang=\"$la\" AND translation=\"$dst\" AND ranking=$rank;\n";
-      echo "$subquery\n";
-    }
-  } else {
-    $subquery = "DELETE FROM map WHERE name=\"$src\" AND lang=\"$la\" AND 
translation=\"$dst\" AND ranking=$rank;\n";
-    echo "$subquery\n";
-    $loss++;
-  }
- }
-echo "# Lost $loss out of $num translations.\n";
-?>
-# </pre>
-# end of conversion

Deleted: GNUnet-docs/WWW/update0_2_0.php
===================================================================
--- GNUnet-docs/WWW/update0_2_0.php     2005-07-12 19:45:02 UTC (rev 1414)
+++ GNUnet-docs/WWW/update0_2_0.php     2005-07-12 19:47:16 UTC (rev 1415)
@@ -1,36 +0,0 @@
-<?php
-include("i18nhtml.inc");
-?>
-# This script merely generates the SQL statements<br>
-# to do the update.  You'll have to run the SQL<br>
-# commands yourself to prevent accidental data loss.<br>
-# <pre>
-<?php
-echo "use $i18nHTMLsqlDB;\n";
-$query = "SELECT * FROM map";
-$result = mysql_query($query, $connection);
-$num = 0;
-$loss = 0;
-if ($result) 
-  $num = mysql_numrows($result);
-for ($ii=0;$ii<$num;$ii++) {
-  $row = mysql_fetch_array($result);
-  $la = mysql_real_escape_string($row["lang"]);
-  $src = $row["name"]; // urlencoded
-  $src_sql = mysql_real_escape_string($src);
-  $dst_sql = mysql_real_escape_string($row["translation"]);
-  $rank = $row["ranking"];
-  $rname = fix(urldecode($src));
-  $rname_sql = mysql_real_escape_string(fix(urldecode($src)));
-  // detect "bad" translations (where conversion failed)
-  // if more than 5 values in [0..9] follow => bad conversion
-  $txtCnt = count_chars(urldecode($src), 1);
-  $tCnt = count_chars($rtrans, 1);
-
-  $dst = mysql_real_escape_string($dst);
-  $subquery = "UPDATE map SET name=\"$rname_sql\" WHERE name=\"$src_sql\" AND 
lang=\"$la\" AND translation=\"$dst_sql\" AND ranking=$rank;\n";
-  echo "$subquery";
-}
-?>
-# </pre>
-# end of conversion





reply via email to

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