summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
Diffstat (limited to 'web/html')
-rw-r--r--web/html/css/fonts.css8
-rw-r--r--web/html/index.php13
-rw-r--r--web/html/testpo.php42
3 files changed, 57 insertions, 6 deletions
diff --git a/web/html/css/fonts.css b/web/html/css/fonts.css
index 7def6210..3fc35e38 100644
--- a/web/html/css/fonts.css
+++ b/web/html/css/fonts.css
@@ -34,7 +34,13 @@
font-family: trebuchet ms, tahoma, verdana;
font-size: 11px;
}
-
+ span.fixed /* Monospace fixed-font */
+ {
+ color: #000;
+ font-family: monospace, fixed, terminal;
+ font-size: 12px;
+ }
+
/* Font Attribute Change (#6c83b0)*/
span.blue
{
diff --git a/web/html/index.php b/web/html/index.php
index 58bba8db..fcd57c7f 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -1,9 +1,12 @@
<?
-include_once("index_po.inc");
+include("index_po.inc");
+include("aur.inc");
+html_header();
-print _("Hello, world!")."<br/>\n";
-print _("Hello, again!")."<br/>\n";
-print _("Julie was here!")."<br/>\n";
-print _("Abernathy was here!")."<br/>\n";
+print "Hi, this is worth reading!<br>\n";
+
+
+
+html_footer("\$Id$");
?>
diff --git a/web/html/testpo.php b/web/html/testpo.php
new file mode 100644
index 00000000..fbb0fa84
--- /dev/null
+++ b/web/html/testpo.php
@@ -0,0 +1,42 @@
+<?
+# This is a sample script to demonstrate how the AUR will
+# handle i18n. Note: When the PHP script is finished, and
+# has the proper include file (see below), and the _()
+# function has been used (see below), use the web/utils/genpopo
+# script to parse the PHP script and pull out the text
+# that requires translation and puts the mapping into the
+# include file.
+#
+
+# Each AUR PHP script that requires i18n support, needs to
+# define an 'xxx_po.inc' file where the i18n mapping will
+# reside.
+#
+include("test_po.inc");
+
+
+# Use the _() function to identify text that requires
+# translation to other languages. The examples below
+# show how to use %-substitution.
+#
+print "<html><body bgcolor='white'>\n";
+
+print "<p>\n";
+print _("Select your language here: %h%s%h, %h%s%h, %h%s%h, %h%s%h.",
+ array("<a href='".$_SERVER['PHP_SELF']."?LANG=en'>","English","</a>",
+ "<a href='".$_SERVER['PHP_SELF']."?LANG=es'>","Español","</a>",
+ "<a href='".$_SERVER['PHP_SELF']."?LANG=de'>","Deutsch","</a>",
+ "<a href='".$_SERVER['PHP_SELF']."?LANG=fr'>","Français","</a>"));
+print "</p>\n";
+
+print "<p>\n";
+print _("My current language tag is: '%s'.", array($LANG));
+print "</p>\n";
+
+print "<ul>\n";
+print _("Hello, world!")."<br/>\n";
+print _("Hello, again!")."<br/>\n";
+print "</ul>\n";
+print "</body>\n</html>";
+
+?>