Changeset 1086 in svn


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

htdocs: back to _T to avoid conflict with gettext

Location:
trunk/htdocs
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/cacher/edit.tpl.php

    r1078 r1086  
    66<form method="post" action="">
    77    <fieldset>
    8         <legend><?php echo sprintf(_("Editing Variable %s"), $h_name); ?></legend>
     8        <legend><?php echo sprintf(_T("Editing Variable %s"), $h_name); ?></legend>
    99        <textarea name="value" style="width: 100%; height: 200px; overflow-y: auto" <?php echo $editable ? "" : "disabled=disabled"; ?>><?php echo $h_value; ?></textarea><br>
    1010        <input type="submit" <?php echo $editable ? "" : "disabled=disabled"; ?>>
    1111        <?php
    1212        if (!$editable) {
    13             echo sprintf(_("Set %s in config to enable"), "\$config['enable_eval'] = true");
     13            echo sprintf(_T("Set %s in config to enable"), "\$config['enable_eval'] = true");
    1414        }
    1515        ?>
  • trunk/htdocs/cacher/help.tpl.php

    r1078 r1086  
    44<form method="post" action="">
    55    <div>
    6         <input type="submit" name="coredump" value="Test coredump" class="submit" onclick="return confirm('<?php echo _('Sure?'); ?>');" />
     6        <input type="submit" name="coredump" value="Test coredump" class="submit" onclick="return confirm('<?php echo _T('Sure?'); ?>');" />
    77    </div>
    88</form>
  • trunk/htdocs/cacher/index.php

    r1085 r1086  
    186186    if ($phpCacheCount >= 2) {
    187187        $total['type'] = XC_TYPE_PHP;
    188         $total['cache_name'] = _('Total');
     188        $total['cache_name'] = _T('Total');
    189189        $total['cacheid'] = -1;
    190190        $total['gc'] = null;
     
    212212    if ($varCacheCount >= 2) {
    213213        $total['type'] = XC_TYPE_VAR;
    214         $total['cache_name'] = _('Total');
     214        $total['cache_name'] = _T('Total');
    215215        $total['cacheid'] = -1;
    216216        $total['gc'] = null;
     
    286286
    287287$doTypes = array(
    288         '' => _('Summary'),
    289         'listphp' => _('List PHP'),
    290         'listvar' => _('List Var Data'),
    291         'help' => _('Help'),
     288        '' => _T('Summary'),
     289        'listphp' => _T('List PHP'),
     290        'listvar' => _T('List Var Data'),
     291        'help' => _T('Help'),
    292292        );
    293293
  • trunk/htdocs/cacher/sub/entrylist.tpl.php

    r1078 r1086  
    22<form action="" method="post">
    33    <table cellspacing="0" cellpadding="4" class="cycles entries">
    4         <caption><?php echo _("$typeName $listName"); ?></caption>
     4        <caption><?php echo _T("$typeName $listName"); ?></caption>
    55<?php
    66
     
    142142    </table>
    143143<?php if (!$isphp && $listName == 'Deleted') { ?>
    144     <input type="submit" value="<?php echo _("Remove Selected"); ?>">
     144    <input type="submit" value="<?php echo _T("Remove Selected"); ?>">
    145145<?php } ?>
    146146</form>
  • trunk/htdocs/cacher/sub/moduleinfo.tpl.php

    r1074 r1086  
    1 <h2><?php echo _("Module Info"); ?></h2>
     1<h2><?php echo _T("Module Info"); ?></h2>
    22<div class="phpinfo"><?php echo getModuleInfo(); ?></div>
  • trunk/htdocs/cacher/sub/summary.tpl.php

    r1084 r1086  
    11<?php $cycleClass = new Cycle('class="col1"', 'class="col2"'); ?>
    22<table cellspacing="0" cellpadding="4" class="cycles caches">
    3     <caption><?php echo _('Caches'); ?></caption>
     3    <caption><?php echo _T('Caches'); ?></caption>
    44    <tr>
    55    <?php echo
     
    2828    <?php
    2929    $numkeys = explode(',', 'slots,size,avail,hits,updates,skips,ooms,errors,cached,deleted');
    30     $l_clear = _('Clear');
    31     $l_disabled = _('Disabled');
    32     $l_disable = _('Disable');
    33     $l_enable = _('Enable');
    34     $l_compiling = _('Compiling');
    35     $l_normal = _('Normal');
    36     $l_confirm = _('Sure?');
     30    $l_clear = _T('Clear');
     31    $l_disabled = _T('Disabled');
     32    $l_disable = _T('Disable');
     33    $l_enable = _T('Enable');
     34    $l_compiling = _T('Compiling');
     35    $l_normal = _T('Normal');
     36    $l_confirm = _T('Sure?');
    3737    foreach (getCacheInfos() as $i => $ci) {
    3838        $class = $cycleClass->next();
     
    130130</table>
    131131<div class="blockarea legends">
    132     <div class="legendtitle"><?php echo _('Legends:'); ?></div>
     132    <div class="legendtitle"><?php echo _T('Legends:'); ?></div>
    133133    <div class="legend pvalue">&nbsp;&nbsp;</div>
    134     <div class="legendtitle"><?php echo _($config['percent_graph_type'] == 'free' ? '% Free' : '% Used'); ?></div>
     134    <div class="legendtitle"><?php echo _T($config['percent_graph_type'] == 'free' ? '% Free' : '% Used'); ?></div>
    135135    <div class="legend" style="background: rgb(0,0,255)">&nbsp;&nbsp;</div>
    136     <div class="legendtitle"><?php echo _($config['percent_graph_type'] == 'free' ? 'Free Blocks' : 'Used Blocks'); ?></div>
     136    <div class="legendtitle"><?php echo _T($config['percent_graph_type'] == 'free' ? 'Free Blocks' : 'Used Blocks'); ?></div>
    137137    <div class="legend" style="background: rgb(255,0,0)">&nbsp;&nbsp;</div>
    138     <div class="legendtitle"><?php echo _('Hits'); ?></div>
     138    <div class="legendtitle"><?php echo _T('Hits'); ?></div>
    139139</div>
    140140<?php unset($cycleClass); ?>
  • 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");
  • trunk/htdocs/coverager/coverager.tpl.php

    r1068 r1086  
    3535    global $cycle;
    3636    $cycle = new Cycle('class="col1"', 'class="col2"');
    37     $l_dir = _("Directory");
    38     $l_per = _("Percent");
    39     $l_hit = _("Hits");
    40     $l_lns = _("Lines");
    41     $l_tds = _("TODO");
     37    $l_dir = _T("Directory");
     38    $l_per = _T("Percent");
     39    $l_hit = _T("Hits");
     40    $l_lns = _T("Lines");
     41    $l_tds = _T("TODO");
    4242    return <<<EOS
    4343<table cellpadding="2" cellspacing="0" border="0" class="cycles">
     
    9797    global $cycle;
    9898    $cycle = new Cycle('class="col1"', 'class="col2"');
    99     $l_fil = _("File");
    100     $l_per = _("Percent");
    101     $l_hit = _("Hits");
    102     $l_lns = _("Lines");
     99    $l_fil = _T("File");
     100    $l_per = _T("Percent");
     101    $l_hit = _T("Hits");
     102    $l_lns = _T("Lines");
    103103    return <<<EOS
    104104<table cellpadding="2" cellspacing="0" border="0" class="cycles">
     
    149149}
    150150
    151 $l_root = _("root");
     151$l_root = _T("root");
    152152if ($action == 'dir') {
    153153    if (function_exists('ob_filter_path_nicer')) {
Note: See TracChangeset for help on using the changeset viewer.