Modify add lang file (module page)

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9095 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2011-09-07 12:08:00 +00:00
parent afa0bd2e68
commit f651391051
4 changed files with 87 additions and 113 deletions

View file

@ -1,5 +1,25 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<lang> <lang>
<item name="msg_avail_install">
<value xml:lang="ko"><![CDATA[이 항목 설치가 가능합니다.]]></value>
<value xml:lang="en"><![CDATA[이 항목 설치가 가능합니다.]]></value>
</item>
<item name="msg_avail_update">
<value xml:lang="ko"><![CDATA[이 항목 업데이트가 가능합니다.]]></value>
<value xml:lang="en"><![CDATA[이 항목 업데이트가 가능합니다.]]></value>
</item>
<item name="msg_avail_easy_update">
<value xml:lang="ko"><![CDATA[이 항목의 새로운 버전이 있습니다.]]></value>
<value xml:lang="en"><![CDATA[There is new version for this item.]]></value>
</item>
<item name="msg_do_you_like_install">
<value xml:lang="ko"><![CDATA[설치 하시겠습니까?]]></value>
<value xml:lang="en"><![CDATA[Would you like to install?]]></value>
</item>
<item name="msg_do_you_like_update">
<value xml:lang="ko"><![CDATA[업데이트 하시겠습니까?]]></value>
<value xml:lang="en"><![CDATA[Would you like to update?]]></value>
</item>
<item name="virtual_site"> <item name="virtual_site">
<value xml:lang="ko"><![CDATA[가상 사이트]]></value> <value xml:lang="ko"><![CDATA[가상 사이트]]></value>
<value xml:lang="en"><![CDATA[Virtual Site]]></value> <value xml:lang="en"><![CDATA[Virtual Site]]></value>

View file

@ -60,7 +60,7 @@
Context::set('favoriteModuleList', $favoriteModuleList); Context::set('favoriteModuleList', $favoriteModuleList);
Context::set('module_list', $module_list); Context::set('module_list', $module_list);
// Set a template file // Set a template file
$this->setTemplateFile('spInstalledModule'); $this->setTemplateFile('module_list');
} }

View file

@ -1,46 +1,66 @@
<!--%import("filter/insert_shortcut.xml")--> <!--%import("js/module_admin.js")-->
<!--#include("header.html")-->
<!-- 관리자 메뉴 바로가기 추가를 위한 임시 form --> <script type="text/javascript">
<form id="fo_shortcut" action="./" method="get"> xe.lang.favorite_on = '{$lang->favorite}({$lang->on})';
<input type="hidden" name="selected_module" value="" /> xe.lang.favorite_off = '{$lang->favorite}({$lang->off})';
</form> </script>
<h4 class="xeAdmin">{$lang->module}</h4>
<table cellspacing="0" class="rowTable"> <div class="content" id="content">
<thead> <h1 class="h1">Installed Module</h1>
<tr> <div class="table even easyList">
<th class="wide"><div>{$lang->module_name}</div></th> <table width="100%" border="1" cellspacing="0">
<th><div>{$lang->version}</div></th> <caption>
<th><div>{$lang->author}</div></th> All({count($module_list)})
<th><div>{$lang->table_count}</div></th> </caption>
<th><div>{$lang->path}</div></th> <thead>
<th><div>{$lang->module_action}</div></th> <tr>
</tr> <th scope="col">{$lang->favorite}</th>
</thead> <th scope="col" class="title">{$lang->module_name}</th>
<tbody> <th scope="col">{$lang->version}</th>
<!--@foreach($module_list as $key => $val)--> <th scope="col">{$lang->author}</th>
<tr class="row{$cycle_idx}"> <th scope="col">{$lang->path}</th>
<td><a href="{getUrl('','module','module','act','dispModuleAdminInfo','selected_module',$val->module)}" onclick="popopen(this.href,'module_info');return false"title="{trim($val->description)}">{$val->title}</a> ({$val->module})</td> <th scope="col">{$lang->cmd_delete}</th>
<td class="center number">{$val->version}</td> </tr>
<td class="nowrap"> </thead>
<!--@foreach($val->author as $author)--> <tbody>
<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;"><!--@end-->{$author->name}<!--@if($author->homepage)--></a><!--@end--> <!--@foreach($module_list as $key => $val)-->
<!--@endforeach--> <tr>
</td> <td>
<td class="number center <!--@if($val->created_table_count != $val->table_count)-->alert<!--@end-->"> <!--@if(in_array($val->module,$favoriteModuleList))-->
{$val->created_table_count}/{$val->table_count} <a href="#" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->on})</a>
</td> <!--@else-->
<td class="nowrap">{$val->path}</td> <a href="#" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->off})</a>
<td class="nowrap center <!--@if($val->need_install || $val->need_update)-->alert<!--@end-->"> <!--@end-->
<!--@if($val->need_install)--> </td>
<a href="#" onclick="doInstallModule('{$val->module}');return false;">{$lang->cmd_install}</a> <td class="title">
<!--@elseif($val->need_update)--> <p><a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$val->title}</a></p>
<a href="#" onclick="doUpdateModule('{$val->module}'); return false;">{$lang->cmd_update}</a> <p>{$val->description}</p>
<!--@else--> <p cond="$val->need_install" class="update">{$lang->msg_avail_install} <a href="#" onclick="doInstallModule('{$val->module}');return false;">{$lang->msg_do_you_like_install}</a></p>
- <p cond="$val->need_update" class="update">{$lang->msg_avail_updaet} <a href=="#" onclick="doUpdateModule('{$val->module}'); return false;">{$lang->msg_do_you_like_update}</a></p>
<!--@end--> <p cond="$val->need_autoinstall_update" class="update">{$lang->msg_avail_easy_update}<a href="{$val->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a></p>
</td> </td>
</tr> <td>{$val->version}</td>
<!--@end--> <td>
</tbody> <!--@foreach($val->author as $author)-->
</table> <!--@if($author->homepage)-->
<a href="{$author->homepage}" onclick="window.open(this.href);return false;" target="_blank">
<!--@end-->
{$author->name}
<!--@if($author->homepage)-->
</a>
<!--@end-->
<!--@endforeach-->
</td>
<td>{$val->path}</td>
<td>
<!--@if($val->delete_url)-->
<a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a>
<!--@end-->
</td>
</tr>
<!--@end-->
</tbody>
</table>
</div>
</div>

View file

@ -1,66 +0,0 @@
<!--%import("js/module_admin.js")-->
<script type="text/javascript">
xe.lang.favorite_on = '{$lang->favorite}({$lang->on})';
xe.lang.favorite_off = '{$lang->favorite}({$lang->off})';
</script>
<div class="content" id="content">
<h1 class="h1">Installed Module</h1>
<div class="table even easyList">
<table width="100%" border="1" cellspacing="0">
<caption>
All({count($module_list)})
</caption>
<thead>
<tr>
<th scope="col">{$lang->favorite}</th>
<th scope="col" class="title">{$lang->module_name}</th>
<th scope="col">{$lang->version}</th>
<th scope="col">{$lang->author}</th>
<th scope="col">{$lang->path}</th>
<th scope="col">{$lang->cmd_delete}</th>
</tr>
</thead>
<tbody>
<!--@foreach($module_list as $key => $val)-->
<tr>
<td>
<!--@if(in_array($val->module,$favoriteModuleList))-->
<a href="#" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->on})</a>
<!--@else-->
<a href="#" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->off})</a>
<!--@end-->
</td>
<td class="title">
<p><a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$val->title}</a></p>
<p>{$val->description}</p>
<p cond="$val->need_install" class="update">이 항목 설치가 가능합니다. <a href="#" onclick="doInstallModule('{$val->module}');return false;">설치 하시겠습니까?</a></p>
<p cond="$val->need_update" class="update">이 항목 업데이트가 가능합니다. <a href=="#" onclick="doUpdateModule('{$val->module}'); return false;">업데이트 하시겠습니까?</a></p>
<p cond="$val->need_autoinstall_update" class="update">이 항목의 새로운 버전이 있습니다. <a href="{$val->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">업데이트 하시겠습니까?</a></p>
</td>
<td>{$val->version}</td>
<td>
<!--@foreach($val->author as $author)-->
<!--@if($author->homepage)-->
<a href="{$author->homepage}" onclick="window.open(this.href);return false;" target="_blank">
<!--@end-->
{$author->name}
<!--@if($author->homepage)-->
</a>
<!--@end-->
<!--@endforeach-->
</td>
<td>{$val->path}</td>
<td>
<!--@if($val->delete_url)-->
<a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a>
<!--@end-->
</td>
</tr>
<!--@end-->
</tbody>
</table>
</div>
</div>