diff options
author | eric <eric> | 2004-06-19 00:42:07 +0200 |
---|---|---|
committer | eric <eric> | 2004-06-19 00:42:07 +0200 |
commit | 74594e516d699a3a95a4e8112c914b9225853de7 (patch) | |
tree | 9e07a66a712c17a81873eefbf592b46ebb787cbc /web/html | |
parent | d92682fbfdd9dec43939678b3c5b80c512f148d3 (diff) | |
download | aur-74594e516d699a3a95a4e8112c914b9225853de7.tar.gz aur-74594e516d699a3a95a4e8112c914b9225853de7.tar.xz |
renamed _() function to __() to avoid gettext conflict
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/index.php | 4 | ||||
-rw-r--r-- | web/html/template.php | 4 | ||||
-rw-r--r-- | web/html/testpo.php | 12 |
3 files changed, 10 insertions, 10 deletions
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!<br>\n"; - +#$dbh = db_connect(); +print "Connected...<br>\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!")."<br/>\n"; +print __("Hi, this is worth reading!")."<br/>\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 @@ <? # 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 _() +# 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 @@ -15,14 +15,14 @@ include("test_po.inc"); -# Use the _() function to identify text that requires +# 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.", +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>", @@ -30,12 +30,12 @@ print _("Select your language here: %h%s%h, %h%s%h, %h%s%h, %h%s%h.", print "</p>\n"; print "<p>\n"; -print _("My current language tag is: '%s'.", array($LANG)); +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 __("Hello, world!")."<br/>\n"; +print __("Hello, again!")."<br/>\n"; print "</ul>\n"; print "</body>\n</html>"; |