From 74594e516d699a3a95a4e8112c914b9225853de7 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 18 Jun 2004 22:42:07 +0000 Subject: renamed _() function to __() to avoid gettext conflict --- web/html/index.php | 4 ++-- web/html/template.php | 4 ++-- web/html/testpo.php | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'web/html') diff --git a/web/html/index.php b/web/html/index.php index fcd57c7f..24afdf04 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -4,8 +4,8 @@ include("aur.inc"); html_header(); -print "Hi, this is worth reading!
\n"; - +#$dbh = db_connect(); +print "Connected...
\n"; html_footer("\$Id$"); diff --git a/web/html/template.php b/web/html/template.php index 69964751..8ada0f1f 100644 --- a/web/html/template.php +++ b/web/html/template.php @@ -4,10 +4,10 @@ include("index_po.inc"); # use some form of this for i18n support html_header(); # print out the HTML header -# Any text you print out to the visitor, use the _() function +# Any text you print out to the visitor, use the __() function # for i18n support. See 'testpo.php' for more details. # -print _("Hi, this is worth reading!")."
\n"; +print __("Hi, this is worth reading!")."
\n"; html_footer("\$Id$"); # Use the $Id$ keyword diff --git a/web/html/testpo.php b/web/html/testpo.php index fbb0fa84..7f2f1d90 100644 --- a/web/html/testpo.php +++ b/web/html/testpo.php @@ -1,7 +1,7 @@ \n"; print "

\n"; -print _("Select your language here: %h%s%h, %h%s%h, %h%s%h, %h%s%h.", +print __("Select your language here: %h%s%h, %h%s%h, %h%s%h, %h%s%h.", array("","English","", "","Espaņol","", "","Deutsch","", @@ -30,12 +30,12 @@ print _("Select your language here: %h%s%h, %h%s%h, %h%s%h, %h%s%h.", print "

\n"; print "

\n"; -print _("My current language tag is: '%s'.", array($LANG)); +print __("My current language tag is: '%s'.", array($LANG)); print "

\n"; print "\n"; print "\n"; -- cgit v1.2.3-24-g4f1b