Ignore:
Timestamp:
2006-09-02T04:13:29+02:00 (8 years ago)
Author:
moo
Message:

Chinese translation for admin page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/xcache.tpl.php

    r118 r123  
    1111 
    1212    <link rel="stylesheet" type="text/css" href="xcache.css" /> 
    13     <title>XCache <?php echo $xcache_version; ?> Administration</title> 
     13    <title><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></title> 
    1414</head> 
    1515 
    1616<body> 
    17 <h1>XCache <?php echo $xcache_version; ?> Administration</h1> 
    18 <a href="help.php" target="_blank" id="help">Help &raquo;</a> 
     17<h1><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></h1> 
     18<a href="help.php" target="_blank" id="help"><?php echo _T("Help") ?> &raquo;</a> 
    1919<span class="switcher"><?php echo switcher("type", $types); ?></span> 
    2020<?php 
     
    2222$b = new Cycle('class="col1"', 'class="col2"'); 
    2323?> 
    24 Caches: 
     24<?php echo _T('Caches'); ?>: 
    2525<table cellspacing="0" cellpadding="4" class="cycles"> 
    2626    <col /> 
     
    4141    <tr <?php echo $a->next(); ?>> 
    4242        <th>-</th> 
    43         <th>Slots</th> 
    44         <th>Size</th> 
    45         <th>Avail</th> 
    46         <th>%</th> 
    47         <th>Clear</th> 
    48         <th>Compiling</th> 
    49         <th>Hits</th> 
    50         <th>Misses</th> 
    51         <th>Clogs</th> 
    52         <th>OOMs</th> 
    53         <th>Protected</th> 
    54         <th>Cached</th> 
    55         <th>Deleted</th> 
    56         <th>GC</th> 
     43        <th><?php echo _T('Slots'); ?></th> 
     44        <th><?php echo _T('Size'); ?></th> 
     45        <th><?php echo _T('Avail'); ?></th> 
     46        <th><?php echo _T('%'); ?></th> 
     47        <th><?php echo _T('Clear'); ?></th> 
     48        <th><?php echo _T('Compiling'); ?></th> 
     49        <th><?php echo _T('Hits'); ?></th> 
     50        <th><?php echo _T('Misses'); ?></th> 
     51        <th><?php echo _T('Clogs'); ?></th> 
     52        <th><?php echo _T('OOMs'); ?></th> 
     53        <th><?php echo _T('Protected'); ?></th> 
     54        <th><?php echo _T('Cached'); ?></th> 
     55        <th><?php echo _T('Deleted'); ?></th> 
     56        <th><?php echo _T('GC'); ?></th> 
    5757    </tr> 
    5858    <?php 
    5959    $numkeys = explode(',', 'hits,misses,clogs,ooms,cached,deleted'); 
     60    $l_clear = _T('Clear'); 
     61    $l_clear_confirm = _T('Sure to clear?'); 
    6062    foreach ($cacheinfos as $i => $ci) { 
    6163        echo " 
     
    8183                    <input type="hidden" name="type" value="{$ci['type']}"> 
    8284                    <input type="hidden" name="cacheid" value="{$ci['cacheid']}"> 
    83                     <input type="submit" name="clearcache" value="Clear" class="submit" onclick="return confirm('Sure to clear?');" /> 
     85                    <input type="submit" name="clearcache" value="{$l_clear}" class="submit" onclick="return confirm('{$l_clear_confirm}');" /> 
    8486                </div> 
    8587            </form> 
     
    101103    <?php } ?> 
    102104</table> 
    103 Free Blocks: 
     105<?php echo _T('Free Blocks'); ?>: 
    104106<?php 
    105107foreach ($cacheinfos as $i => $ci) { 
     
    108110<table cellspacing="0" cellpadding="4" class="cycles freeblocks"> 
    109111    <tr> 
    110         <th><?php echo $ci['cache_name']; ?> size<br>offset</th> 
     112        <th><?php echo $ci['cache_name']; ?> <?php echo _T("size"); ?><br><?php echo _T("offset"); ?></th> 
    111113    <?php 
    112114    foreach ($ci['free_blocks'] as $block) { 
     
    136138        $a->reset(); 
    137139        echo " 
    138         <caption>{$cachelist['type_name']} $listname</caption>"; 
     140        <caption>", _T("{$cachelist['type_name']} $listname"), "</caption>"; 
    139141        ?> 
    140142 
     
    162164        ?> 
    163165 
    164             <th><a href="javascript:" onclick="resort(this); return false">Cache</a></th> 
    165             <th><a href="javascript:" onclick="resort(this); return false">entry</a></th> 
    166             <th><a href="javascript:" onclick="resort(this); return false">Hits</a></th> 
    167             <th><a href="javascript:" onclick="resort(this); return false">Ref count</a></th> 
    168             <th><a href="javascript:" onclick="resort(this); return false">Size</a></th> 
     166            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Cache'); ?></a></th> 
     167            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('entry'); ?></a></th> 
     168            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Hits'); ?></a></th> 
     169            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Refcount'); ?></a></th> 
     170            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Size'); ?></a></th> 
    169171            <?php if ($isphp) { ?> 
    170             <th><a href="javascript:" onclick="resort(this); return false">SrcSize</a></th> 
    171             <th><a href="javascript:" onclick="resort(this); return false">Modify</a></th> 
     172            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('SrcSize'); ?></a></th> 
     173            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Modify'); ?></a></th> 
    172174            <?php if ($haveinode) { ?> 
    173             <th><a href="javascript:" onclick="resort(this); return false">device</a></th> 
    174             <th><a href="javascript:" onclick="resort(this); return false">inode</a></th> 
     175            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('device'); ?></a></th> 
     176            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('inode'); ?></a></th> 
    175177            <?php } ?> 
    176178            <?php } ?> 
    177             <th><a href="javascript:" onclick="resort(this); return false">Access</a></th> 
    178             <th><a href="javascript:" onclick="resort(this); return false">Create</a></th> 
     179            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Access'); ?></a></th> 
     180            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Create'); ?></a></th> 
    179181            <?php if ($listname == 'Deleted') { ?> 
    180             <th><a href="javascript:" onclick="resort(this); return false">Delete</a></th> 
     182            <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Delete'); ?></a></th> 
    181183            <?php } ?> 
    182184        </tr> 
     
    245247<div class="footnote"> 
    246248<?php echo <<<EOS 
    247 Powered By: {$xcache_version}, {$xcache_modules} 
     249Powered By: XCache {$xcache_version}, {$xcache_modules} 
    248250EOS; 
    249251?> 
Note: See TracChangeset for help on using the changeset viewer.