Changeset 1086
- Timestamp:
- 2012-07-30T09:01:36+02:00 (10 months ago)
- Location:
- trunk/htdocs
- Files:
-
- 8 edited
-
cacher/edit.tpl.php (modified) (1 diff)
-
cacher/help.tpl.php (modified) (1 diff)
-
cacher/index.php (modified) (3 diffs)
-
cacher/sub/entrylist.tpl.php (modified) (2 diffs)
-
cacher/sub/moduleinfo.tpl.php (modified) (1 diff)
-
cacher/sub/summary.tpl.php (modified) (3 diffs)
-
common/common.php (modified) (4 diffs)
-
coverager/coverager.tpl.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/cacher/edit.tpl.php
r1078 r1086 6 6 <form method="post" action=""> 7 7 <fieldset> 8 <legend><?php echo sprintf(_ ("Editing Variable %s"), $h_name); ?></legend>8 <legend><?php echo sprintf(_T("Editing Variable %s"), $h_name); ?></legend> 9 9 <textarea name="value" style="width: 100%; height: 200px; overflow-y: auto" <?php echo $editable ? "" : "disabled=disabled"; ?>><?php echo $h_value; ?></textarea><br> 10 10 <input type="submit" <?php echo $editable ? "" : "disabled=disabled"; ?>> 11 11 <?php 12 12 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"); 14 14 } 15 15 ?> -
trunk/htdocs/cacher/help.tpl.php
r1078 r1086 4 4 <form method="post" action=""> 5 5 <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?'); ?>');" /> 7 7 </div> 8 8 </form> -
trunk/htdocs/cacher/index.php
r1085 r1086 186 186 if ($phpCacheCount >= 2) { 187 187 $total['type'] = XC_TYPE_PHP; 188 $total['cache_name'] = _ ('Total');188 $total['cache_name'] = _T('Total'); 189 189 $total['cacheid'] = -1; 190 190 $total['gc'] = null; … … 212 212 if ($varCacheCount >= 2) { 213 213 $total['type'] = XC_TYPE_VAR; 214 $total['cache_name'] = _ ('Total');214 $total['cache_name'] = _T('Total'); 215 215 $total['cacheid'] = -1; 216 216 $total['gc'] = null; … … 286 286 287 287 $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'), 292 292 ); 293 293 -
trunk/htdocs/cacher/sub/entrylist.tpl.php
r1078 r1086 2 2 <form action="" method="post"> 3 3 <table cellspacing="0" cellpadding="4" class="cycles entries"> 4 <caption><?php echo _ ("$typeName $listName"); ?></caption>4 <caption><?php echo _T("$typeName $listName"); ?></caption> 5 5 <?php 6 6 … … 142 142 </table> 143 143 <?php if (!$isphp && $listName == 'Deleted') { ?> 144 <input type="submit" value="<?php echo _ ("Remove Selected"); ?>">144 <input type="submit" value="<?php echo _T("Remove Selected"); ?>"> 145 145 <?php } ?> 146 146 </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> 2 2 <div class="phpinfo"><?php echo getModuleInfo(); ?></div> -
trunk/htdocs/cacher/sub/summary.tpl.php
r1084 r1086 1 1 <?php $cycleClass = new Cycle('class="col1"', 'class="col2"'); ?> 2 2 <table cellspacing="0" cellpadding="4" class="cycles caches"> 3 <caption><?php echo _ ('Caches'); ?></caption>3 <caption><?php echo _T('Caches'); ?></caption> 4 4 <tr> 5 5 <?php echo … … 28 28 <?php 29 29 $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?'); 37 37 foreach (getCacheInfos() as $i => $ci) { 38 38 $class = $cycleClass->next(); … … 130 130 </table> 131 131 <div class="blockarea legends"> 132 <div class="legendtitle"><?php echo _ ('Legends:'); ?></div>132 <div class="legendtitle"><?php echo _T('Legends:'); ?></div> 133 133 <div class="legend pvalue"> </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> 135 135 <div class="legend" style="background: rgb(0,0,255)"> </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> 137 137 <div class="legend" style="background: rgb(255,0,0)"> </div> 138 <div class="legendtitle"><?php echo _ ('Hits'); ?></div>138 <div class="legendtitle"><?php echo _T('Hits'); ?></div> 139 139 </div> 140 140 <?php unset($cycleClass); ?> -
trunk/htdocs/common/common.php
r1079 r1086 45 45 foreach (array( 46 46 "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"), 51 51 "http://www.php.net/" => "PHP", 52 52 "http://www.lighttpd.net/" => "Lighttpd", … … 139 139 } 140 140 141 function _ ($str)141 function _T($str) 142 142 { 143 143 if (isset($GLOBALS['strings'][$str])) { … … 152 152 function __($str) 153 153 { 154 return _ ($str);154 return _T($str); 155 155 } 156 156 … … 261 261 $modules = array(); 262 262 if (file_exists("../cacher/index.php")) { 263 $modules["cacher"] = _ ("Cacher");263 $modules["cacher"] = _T("Cacher"); 264 264 } 265 265 if (file_exists("../coverager/index.php")) { 266 $modules["coverager"] = _ ("Coverager");266 $modules["coverager"] = _T("Coverager"); 267 267 } 268 268 header("Cache-Control: no-cache, must-revalidate"); -
trunk/htdocs/coverager/coverager.tpl.php
r1068 r1086 35 35 global $cycle; 36 36 $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"); 42 42 return <<<EOS 43 43 <table cellpadding="2" cellspacing="0" border="0" class="cycles"> … … 97 97 global $cycle; 98 98 $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"); 103 103 return <<<EOS 104 104 <table cellpadding="2" cellspacing="0" border="0" class="cycles"> … … 149 149 } 150 150 151 $l_root = _ ("root");151 $l_root = _T("root"); 152 152 if ($action == 'dir') { 153 153 if (function_exists('ob_filter_path_nicer')) {
Note: See TracChangeset
for help on using the changeset viewer.

