summaryrefslogtreecommitdiffstats
path: root/web/lib/translator.inc
diff options
context:
space:
mode:
authoreric <eric>2004-06-19 00:42:07 +0200
committereric <eric>2004-06-19 00:42:07 +0200
commit74594e516d699a3a95a4e8112c914b9225853de7 (patch)
tree9e07a66a712c17a81873eefbf592b46ebb787cbc /web/lib/translator.inc
parentd92682fbfdd9dec43939678b3c5b80c512f148d3 (diff)
downloadaur-74594e516d699a3a95a4e8112c914b9225853de7.tar.gz
aur-74594e516d699a3a95a4e8112c914b9225853de7.tar.xz
renamed _() function to __() to avoid gettext conflict
Diffstat (limited to 'web/lib/translator.inc')
-rw-r--r--web/lib/translator.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/web/lib/translator.inc b/web/lib/translator.inc
index 79eb39c7..87fe7815 100644
--- a/web/lib/translator.inc
+++ b/web/lib/translator.inc
@@ -3,7 +3,7 @@
#
# usage:
-# use the _() function for returning translated strings of
+# use the __() function for returning translated strings of
# text. The string can contain escape codes %h for HTML
# and %s for regular text.
#
@@ -17,12 +17,13 @@
# $_t["es"]["My cat is large."] = "Mi gato esta grande.";
#
# examples:
-# print _("%s has %s apples.", array("Bill", "5"));
-# print _("This is a %h%s%h problem!", array("<b>","major","</b>"));
+# print __("%s has %s apples.", array("Bill", "5"));
+# print __("This is a %h%s%h problem!", array("<b>","major","</b>"));
include_once("common_po.inc");
-function _($tag, $args=array()) {
+
+function __($tag, $args=array()) {
global $_t;
global $_REQUEST;
global $LANG;