translation

This commit is contained in:
wlx 2013-11-11 03:02:21 +00:00
parent d8a8ffa66f
commit d0960adae9
2 changed files with 39 additions and 47 deletions

View File

@ -1,13 +1,13 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle('高级搜索');
$this->headTitle('Advance Search');
if (!empty($this->codename)) $this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/metadata.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/">Home</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('高级搜索');
$this->breadcrumb('Advance Search');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'google_map_v3');
$this->theme->AppendPlus($this,'google_map_keydragzone');
@ -37,29 +37,29 @@ foreach($this->metadata as $md) : ?>
<div class="span8" id="map_canvas" style="height:500px;"></div>
<div class="span4">
<form id="search" enctype="application/x-www-form-urlencoded" action="/search" method="get">
<fieldset><legend>时间范围</legend>
<fieldset><legend>Temporal Range</legend>
<label>
开始时间
Start:
<input name="begin" type="text" id="begin" value="<?php echo $this->begin; ?>"/>
</label>
<label>
结束时间
End:
<input name="end" type="text" id="end" value="<?php echo $this->end; ?>" />
</label>
</fieldset>
<fieldset><legend>空间范围(按住shift键在地图上拉框)</legend>
<label>
<fieldset><legend>Spatial Range (Press shift key, drag a box in the map)</legend>
<label>East
<input name="east" id="east" type="text" value="<?php echo $this->east; ?>"/></label>
<label>
<label>South
<input name="south" id="south" type="text" value="<?php echo $this->south; ?>" /></label>
<label>西
<label>West
<input name="west" id="west" type="text" value="<?php echo $this->west; ?>" /></label>
<label>
<label>North
<input name="north" id="north" type="text" value="<?php echo $this->north; ?>" /></label>
</fieldset>
<label>关键词
<label>Keyword
<input name="q" id="q" type="text" value="<?php echo $this->q; ?>"/></label>
<button id="search" class="btn btn-large btn-block btn-primary" type="submit" value="" onclick="dosubmit()" ><i class="icon-search"></i>搜索</button>
<button id="search" class="btn btn-large btn-block btn-primary" type="submit" value="" onclick="dosubmit()" ><i class="icon-search"></i>Search</button>
</form>
</div>
</div>
@ -199,13 +199,6 @@ function dosubmit() {
theForm.action="/search";
}
</script>
<div id="help">
<fieldset><legend>搜索说明</legend><ul><li>关键词:您可以使用一个关键词,比如“沙漠”,也可以使用多个关键词,中间用空格分开。</li>
<li>空间范围这是以度为单位的十进制数字。比如东经125度30分可以输入为125.5。您也可以通过下面的在线地图工具直接在图上拉框选择一个范围,空间坐标会自动转换到文本框中。</li>
<li>时间范围指数据的时间范围从开始时间到结束时间。开始时间与结束时间可以为空若仅填写开始时间则含义为选择大于开始时间的数据。若仅填写结束时间则含义为选择小于结束时间的数据。时间格式为YYYY-MM-DD。</li>
<li>还不清楚?您可以到<a href="http://forum.westgis.ac.cn/viewforum.php?f=30">论坛</a>提问。</li>
</ul></fieldset>
</div>

View File

@ -34,11 +34,11 @@ ${'s_' . $s} = ' selected';
$search=$this->search;
$this->headTitle($this->config->title->site);
$this->headTitle('首页');
$this->headTitle('搜索');
$this->headTitle('Home');
$this->headTitle('Search');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/search.css');
$this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
$this->nav[] = array('link'=>"/search",'title'=>'Full Text Search');
?>
<?= $this->render('breadcrumbs.phtml'); ?>
<div class="row">
@ -46,19 +46,19 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
<!-- search form -->
<form id="q-form" class="form-search form-inline" method="get">
<div id="q-input" class="input-append">
<input class="span4 search-query text" type="text" name="q" placeholder="输入任意关键词皆可搜索" value="<?php echo htmlspecialchars($q); ?>" />
<input class="span4 search-query text" type="text" name="q" placeholder="Input any words to search" value="<?php echo htmlspecialchars($q); ?>" />
<button type="submit" class="btn">Search</button>
</div>
<input type="radio" name="f" value="title" <?php if (!empty($f_title)) echo $f_title; ?> />标题
<input type="radio" name="f" value="_all" <?php if (!empty($f__all)) echo $f__all; ?> />全文
<input type="checkbox" name="m" value="yes" <?php echo $m_check; ?> />模糊搜索
<input type="radio" name="f" value="title" <?php if (!empty($f_title)) echo $f_title; ?> />Title
<input type="radio" name="f" value="_all" <?php if (!empty($f__all)) echo $f__all; ?> />Fulltext
<input type="checkbox" name="m" value="yes" <?php echo $m_check; ?> />fuzzy
<input type="hidden" name="east" value="<?php echo $east; ?>" />
<input type="hidden" name="west" value="<?php echo $west; ?>" />
<input type="hidden" name="south" value="<?php echo $south; ?>" />
<input type="hidden" name="north" value="<?php echo $north; ?>" />
<input type="hidden" name="begin" value="<?php echo $begin; ?>" />
<input type="hidden" name="end" value="<?php echo $end; ?>" />
<button type="button" class="btn" id="advance">高级搜索</button>
<button type="button" class="btn" id="advance">Advance</button>
<!-- <li><input type="checkbox" name="syn" value="yes" <?php echo $syn_check; ?> />同义词</li>
<li>
@ -73,10 +73,10 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
if ($begin || $end || $east)
{
echo '<div class="well well-small">';
if ($begin || $end) echo '<span class="text-success">时间范围</span>';
if ($begin) echo '开始:'.$begin;
if ($end) echo '结束:'.$end;
if ($east) echo '<span class="text-success">空间范围</span> 东:'.$east.' 西:'.$west.' 南:'.$south.' 北:'.$north;
if ($begin || $end) echo '<span class="text-success">Temporal Range</span>';
if ($begin) echo 'Start: '.$begin;
if ($end) echo 'End: '.$end;
if ($east) echo '<span class="text-success">Spatial Range</span> E:'.$east.' W:'.$west.' S:'.$south.' N:'.$north;
echo '</div>';
}
?>
@ -84,7 +84,7 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
<!-- hot search -->
<?php if (count($this->hot) > 0): ?>
<div id="hot-search" class="res_div2">
<h4>热门搜索</h4>
<h4>Hot Search</h4>
<ul>
<?php foreach($this->hot as $word => $freq): ?>
<li><a href="/search?q=<?php echo urlencode($word); ?>"><?php echo $word; ?></a><small>(<?php echo $freq; ?>)</small></li>
@ -97,21 +97,21 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
<!-- neck bar -->
<div id="res-neck">
大约有 <strong><?php echo number_format($this->count); ?></strong> 项符合查询结果,
库内数据总量为 <strong><?php echo number_format($this->total); ?></strong> 项。
(搜索耗时:<?php printf('%.4f', $this->search_cost); ?>秒 - 页面处理时间:<?php printf('%.4f', $this->total_cost); ?>
Hitted <strong><?php echo number_format($this->count); ?></strong> items,
Total <strong><?php echo number_format($this->total); ?></strong> items.
(Search time: <?php printf('%.4f', $this->search_cost); ?> Seconds - Page generated time: <?php printf('%.4f', $this->total_cost); ?>Seconds
[<a href="<?php echo "$this->base_url&xml=yes&p=$p" ;?> " target="_blank">XML</a>]
</div>
<!-- error -->
<?php if (!empty($this->error)): ?>
<div id="res-error"><strong>错误:</strong><?php echo $this->error; ?></div>
<div id="res-error"><strong>Error: </strong><?php echo $this->error; ?></div>
<?php endif; ?>
<!-- fixed query -->
<?php if (count($this->corrected) > 0): ?>
<div id="res-fixed" class="res_div2">
<h4>您是不是要找:</h4>
<h4>Are you interested in :</h4>
<ul>
<?php foreach ($this->corrected as $word): ?>
<li><a href="<?php echo '/search?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
@ -122,7 +122,7 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
<?php if (count($this->expanded) > 0): ?>
<div id="res-fixed" class="res_div2">
<h4>您是不是要找:</h4>
<h4>Are you interested in : </h4>
<ul>
<?php foreach ($this->expanded as $word): ?>
<li><a href="<?php echo '/search?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>
@ -135,11 +135,10 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
<!-- empty result -->
<?php if ($this->count === 0 && empty($this->error)): ?>
<div id="res-empty">
<p>找不到和 <strong><?php echo htmlspecialchars($q); ?></strong> 相符的内容或信息。建议您:</p>
<p>Could not find results related with <strong><?php echo htmlspecialchars($q); ?></strong>. Recommendation: </p>
<ul>
<li>请检查输入字词有无错误。</li>
<li>请换用另外的查询字词。</li>
<li>请改用较短、较为常见的字词。</li>
<li>Are there some errors in your query string?</li>
<li>Change your query string.</li>
</ul>
</div>
<?php endif; ?>
@ -154,8 +153,8 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
</h2>
<p><?php echo $search->highlight(htmlspecialchars($doc->description)); ?></p>
<ul>
<li><span>关键词:</span> <?php echo $search->highlight(htmlspecialchars($doc->keyword)); ?></li>
<li><span>元数据:</span> <?php echo $search->highlight(htmlspecialchars($doc->data)); ?></li>
<li><span>Keywords: </span> <?php echo $search->highlight(htmlspecialchars($doc->keyword)); ?></li>
<li><span>Metadata: </span> <?php echo $search->highlight(htmlspecialchars($doc->data)); ?></li>
</ul>
</div>
<?php endforeach; ?>
@ -164,7 +163,7 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
<!-- pager -->
<?php if (!empty($this->pager)): ?>
<div id="res-pager" class="res_div2">
<strong>分页:</strong>
<strong>Page: </strong>
<?php echo $this->pager; ?>
</div>
<?php endif; ?>
@ -172,7 +171,7 @@ $this->nav[] = array('link'=>"/search",'title'=>'全文搜索');
<!-- related query -->
<?php if (count($this->related) > 0): ?>
<div id="res-related" class="res_div2">
<h4>相关搜索</h4>
<h4>Related Search</h4>
<ul>
<?php foreach ($this->related as $word): ?>
<li><a href="<?php echo '/search?q=' . urlencode($word); ?>"><?php echo $word; ?></a></li>