[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1421 - GNUnet-docs/WWW
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1421 - GNUnet-docs/WWW |
Date: |
Tue, 12 Jul 2005 13:01:33 -0700 (PDT) |
Author: grothoff
Date: 2005-07-12 13:01:31 -0700 (Tue, 12 Jul 2005)
New Revision: 1421
Removed:
GNUnet-docs/WWW/example.php
GNUnet-docs/WWW/example2.php
Log:
i18n crap
Deleted: GNUnet-docs/WWW/example.php
===================================================================
--- GNUnet-docs/WWW/example.php 2005-07-12 20:00:27 UTC (rev 1420)
+++ GNUnet-docs/WWW/example.php 2005-07-12 20:01:31 UTC (rev 1421)
@@ -1,29 +0,0 @@
-<?php
-include("i18nhtml.inc.php");
-DOCTYPE("HTML");
-echo "<html><head>";
-TITLE("Example page");
-echo "</head><body>";
-H1("Some document title");
-W("A sentence to translate.");
-W("A sentence with an argument '%s' that cannot be translated.",
- "foo");
-W("A sentence with two arguments '%s' and '%s' that cannot be translated.",
- ARRAY("foo", "bar"));
-P(); // <p>
-W("A sentence with a %s that CAN be translated.",
- extlink_("http://gnunet.org/i18nHTML/", "link text"));
-W("A %s to another translatable page.",
- intlink_("http://gnunet.org/i18nHTML/index", "link")); // .php is added
automatically!
-BR(); // <br>
-echo W_("A function returning the translation.");
-W("For more functions, look into i18nhtml.inc.");
-
-HR();
-W("And finally put the language selection bar somewhere:");
-generateLanguageBar(); // allow user to select other languages
-P();
-W("Oh, and put the footer to allow the editor mode:");
-generateFooter();
-echo "</body></html>";
-?>
\ No newline at end of file
Deleted: GNUnet-docs/WWW/example2.php
===================================================================
--- GNUnet-docs/WWW/example2.php 2005-07-12 20:00:27 UTC (rev 1420)
+++ GNUnet-docs/WWW/example2.php 2005-07-12 20:01:31 UTC (rev 1421)
@@ -1,61 +0,0 @@
-<?php
-include("i18nhtml.inc.php"); // do this 1st, add translation support
-DOCTYPE("HTML","Transitional"); // tell the user agent document format
-setTranslateLinkMarker("***"); // make translation marker more visible
-editOnlyUntranslatedText(); // restrict translations to
untranslated strings
-
-echo "<html><head>";
-TITLE("Another Example Page");
-echo "</head><body>";
-
-HR();
-generateLanguageBar(); // allow user to select other languages
-HR();
-
-H1("header1");
-H2("header2");
-H3("header3");
-H2("header2 again");
-H3("yet another sub header");
-H3("and again, I think you get the idea");
-P(); // <p>
-W("A sentence to translate.");
-W("A sentence with an argument '%s' that cannot be translated.",
- "foo");
-W("A sentence with two arguments '%s' and '%s' that cannot be translated.",
- ARRAY("foo", "bar"));
-P(); // <p>
-echo "This is untranslated text\n";
-BR(); // <br>
-echo "another way to translate text, note each W chunk represents a ";
-echo "single translatable chunk so similar to above, but split into ";
-echo "multiple translation chunks.<br>";
-$myvar = W_("A sentence with an argument ");
-$myvar = $myvar . "foo" . W_(" that cannot be translated.");
-echo $myvar;
-P(); // <p>
-echo "here we have text that is translated, but not easily edited";
-echo "unless it happens to match some other text.<br>";
-$myvar = TRANSLATE_("A sentence with an argument ");
-$myvar = $myvar . "foo" . TRANSLATE_(" that is not translatable.");
-echo $myvar;
-W("A sentence with a %s that CAN be translated.",
- extlink_("http://gnunet.org/i18nHTML/", "link text"));
-W("A %s to another translatable page.",
- intlink_("http://gnunet.org/i18nHTML/index", "link")); // .php is added
automatically!
-BR(); // <br>
-echo W_("A function returning the translation.");
-W("For more functions, look into i18nhtml.inc.");
-P();
-
-HR();
-$t = "Notice how we don't have to escape or quote(\") ampersands & nor other";
-$t = $t . "HTML entities. <<<--->>> and such even work. This looks like
&\n";
-W($t);
-HR();
-
-P();
-W("Insert footer to allow entering translation edit mode:");
-generateFooter();
-echo "</body></html>";
-?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1421 - GNUnet-docs/WWW,
grothoff <=