Ignore:
Timestamp:
2006-09-03T04:20:00+02:00 (9 years ago)
Author:
moo
Message:

Chinese translation for coverager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager/coverager.tpl.php

    r33 r124  
    66echo <<<HEAD
    77    <meta http-equiv="Content-Type" content="text/html; charset=$this->charset" />
     8    <meta http-equiv="Content-Language" content="{$this->lang}" />
    89    <script type="text/javascript" src="tablesort.js" charset="$this->charset"></script>
    910HEAD;
     
    1112
    1213    <link rel="stylesheet" type="text/css" href="coverager.css" />
    13     <title>XCache Coverage Viewer</title>
     14    <title><?php echo _T("XCache PHP Code Coverage Viewer"); ?></title>
    1415</head>
    1516<body>
     17<h1><?php echo _T("XCache PHP Code Coverage Viewer"); ?></h1>
    1618
    1719<?php
     
    4951    global $cycle;
    5052    $cycle = new Cycle('class="col1"', 'class="col2"');
     53    $l_dir = _T("Directory");
     54    $l_per = _T("Percent");
     55    $l_hit = _T("Hits");
     56    $l_lns = _T("Lines");
     57    $l_tds = _T("TODO");
    5158    return <<<EOS
    5259    <table align="center" cellpadding="2" cellspacing="1" border="0" class="cycles">
    5360    <tr>
    54         <th>Directory</th><th>Percent</th><th>Hits</th><th>Lines</th><th>TODO</th>
     61        <th>{$l_dir}</th><th>{$l_per}</th><th>{$l_hit}</th><th>{$l_lns}</th><th>{$l_tds}</th>
    5562    </tr>
    5663EOS;
     
    105112    global $cycle;
    106113    $cycle = new Cycle('class="col1"', 'class="col2"');
     114    $l_fil = _T("File");
     115    $l_per = _T("Percent");
     116    $l_hit = _T("Hits");
     117    $l_lns = _T("Lines");
    107118    return <<<EOS
    108119    <br>
    109120    <table align="center" cellpadding="2" cellspacing="1" border="0" class="cycles">
    110121    <tr>
    111         <th>File</th><th>Percent</th><th>Hits</th><th>Lines</th>
     122        <th>{$l_fil}</th><th>{$l_per}</th><th>{$l_hit}</th><th>{$l_lns}</th>
    112123    </tr>
    113124EOS;
     
    154165}
    155166
     167$l_root = _T("root");
    156168if ($action == 'dir') {
     169    if (function_exists('ob_filter_path_nicer')) {
     170        ob_start('ob_filter_path_nicer');
     171    }
    157172    $path_html = htmlspecialchars($path);
    158173    echo <<<EOS
    159     <a href="?">root</a> $path<br />
     174    <a href="?">$l_root</a> $path<br />
    160175EOS;
    161176    echo dir_head($dirinfo);
     
    178193}
    179194else if ($action == 'file') {
     195    if (function_exists('ob_filter_path_nicer')) {
     196        ob_start('ob_filter_path_nicer');
     197    }
    180198    $dir_url = urlencode($dir);
    181199    $dir_html = htmlspecialchars($dir);
    182200    echo <<<EOS
    183     <a href="?">root</a> <a href="?path={$dir_url}">{$dir_html}</a>/<b>{$filename}</b><br />
     201    <a href="?">$l_root</a> <a href="?path={$dir_url}">{$dir_html}</a>/<b>{$filename}</b><br />
    184202EOS;
    185203
     
    194212EOS;
    195213    }
     214    if (function_exists('ob_filter_path_nicer')) {
     215        ob_end_flush();
     216    }
    196217    echo <<<EOS
    197218    <pre class="code"><ol>{$filecov}</ol></pre>
     
    209230?>
    210231
     232<div class="footnote">
     233Powered By: XCache <?php echo $xcache_version; ?> coverager <?php echo _T("module"); ?>
     234</div>
     235
    211236</body>
    212237</html>
Note: See TracChangeset for help on using the changeset viewer.