Browse Source

htdocs: more links, translate, remove debug code.

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1069 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
36cd5dd935
  1. 2
      htdocs/cacher/cacher-zh-simplified.lang.php
  2. 2
      htdocs/cacher/cacher-zh-traditional.lang.php
  3. 1
      htdocs/cacher/cacher.css
  4. 3
      htdocs/cacher/cacher.php
  5. 8
      htdocs/common/common-zh-simplified.lang.php
  6. 8
      htdocs/common/common-zh-traditional.lang.php
  7. 3
      htdocs/common/common.css
  8. 6
      htdocs/common/common.php

2
htdocs/cacher/cacher-zh-simplified.lang.php

@ -1,6 +1,6 @@
<?php
$strings = array(
$strings += array(
'XCache Help'
=> 'XCache 帮助信息',
'Help'

2
htdocs/cacher/cacher-zh-traditional.lang.php

@ -1,6 +1,6 @@
<?php
$strings = array(
$strings += array(
'XCache Help'
=> 'XCache 說明訊息',
'Help'

1
htdocs/cacher/cacher.css

@ -23,5 +23,6 @@ dl { overflow: hidden; }
dt { font-weight: bold; clear: both; float: left; width: 100px; text-align: right; margin: 0; }
dd { margin: 0; }
.blockarea { overflow: hidden; width: 400px; }
.legends { padding-bottom: 8px; }
div.legend { float: left; border: 1px solid gray; font: 12px/12px monospace; }
div.legendtitle { float: left; padding: 2px; padding-right: 10px; font: 12px/12px monospace; }

3
htdocs/cacher/cacher.php

@ -34,9 +34,6 @@ function freeblock_to_graph($freeblocks, $size)
if ($config['percent_graph_type'] != 'free') {
$v = 1 - $v;
}
if ($k % 30 == 0) {
$v = 1;
}
$v = (int) ($v * $c);
$r = $g = $c - $v;
$b = $c;

8
htdocs/common/common-zh-simplified.lang.php

@ -1,10 +1,16 @@
<?php
$strings = array(
$strings += array(
'Cacher'
=> '缓存器',
'Coverager'
=> '代码覆盖查看器',
'Document'
=> '帮助文档',
'Get Support'
=> '获取支持',
'Discusson'
=> '讨论',
''
=> '',
);

8
htdocs/common/common-zh-traditional.lang.php

@ -1,10 +1,16 @@
<?php
$strings = array(
$strings += array(
'Cacher'
=> '快取器',
'Coverager'
=> '代码覆盖查看器',
'Document'
=> '幫助文檔',
'Get Support'
=> '獲取支持',
'Discusson'
=> '討論',
''
=> '',
);

3
htdocs/common/common.css

@ -70,6 +70,9 @@ h1, h2, h3, h4, h5, h6 {
#header #mainnav a:active, #header #mainnav a:hover {
color: red;
}
#header #mainnav a {
padding: 0 8px 0 8px;
}
#headerbase {
background: #1163BC;
border: 1px solid #334C66;

6
htdocs/common/common.php

@ -44,8 +44,11 @@ function mainnav()
{
foreach (array(
"http://xcache.lighttpd.net/" => "XCache",
"http://xcache.lighttpd.net/wiki/DocTOC" => _("Document"),
"http://xcache.lighttpd.net/wiki/GetSupport" => _("Get Support"),
"https://groups.google.com/group/xcache/" => _("Discusson"),
"http://www.php.net/" => "PHP",
"http://www.lighttpd.net/" => "LIGHTTPD",
"http://www.lighttpd.net/" => "Lighttpd",
) as $url => $title) {
$html[] = sprintf('<a href="%s" target="_blank">%s</a>', $url, $title);
}
@ -254,6 +257,7 @@ if (file_exists("./config.php")) {
include("./config.php");
}
$strings = array();
include(get_language_file("../common/common"));
$modules = array();

Loading…
Cancel
Save