Changeset 1086 in svn for trunk/htdocs/common/common.php


Ignore:
Timestamp:
2012-07-30T07:01:36Z (3 years ago)
Author:
Xuefer
Message:

htdocs: back to _T to avoid conflict with gettext

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/common/common.php

    r1079 r1086  
    4545    foreach (array(
    4646                "http://xcache.lighttpd.net/" => "XCache",
    47                 "http://xcache.lighttpd.net/wiki/DocTOC" => _("Document"),
    48                 "http://xcache.lighttpd.net/wiki/PhpIni" => _("INI Reference"),
    49                 "http://xcache.lighttpd.net/wiki/GetSupport" => _("Get Support"),
    50                 "https://groups.google.com/group/xcache/" => _("Discusson"),
     47                "http://xcache.lighttpd.net/wiki/DocTOC" => _T("Document"),
     48                "http://xcache.lighttpd.net/wiki/PhpIni" => _T("INI Reference"),
     49                "http://xcache.lighttpd.net/wiki/GetSupport" => _T("Get Support"),
     50                "https://groups.google.com/group/xcache/" => _T("Discusson"),
    5151                "http://www.php.net/" => "PHP",
    5252                "http://www.lighttpd.net/" => "Lighttpd",
     
    139139}
    140140
    141 function _($str)
     141function _T($str)
    142142{
    143143    if (isset($GLOBALS['strings'][$str])) {
     
    152152function __($str)
    153153{
    154     return _($str);
     154    return _T($str);
    155155}
    156156
     
    261261$modules = array();
    262262if (file_exists("../cacher/index.php")) {
    263     $modules["cacher"] = _("Cacher");
     263    $modules["cacher"] = _T("Cacher");
    264264}
    265265if (file_exists("../coverager/index.php")) {
    266     $modules["coverager"] = _("Coverager");
     266    $modules["coverager"] = _T("Coverager");
    267267}
    268268header("Cache-Control: no-cache, must-revalidate");
Note: See TracChangeset for help on using the changeset viewer.