mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
renamed _() function to __() to avoid gettext conflict
This commit is contained in:
parent
d92682fbfd
commit
74594e516d
9 changed files with 145 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue