mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Issue 1321 fixed languages of module install and update
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10310 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3257297dbb
commit
fab30803b4
6 changed files with 46 additions and 15 deletions
|
|
@ -313,15 +313,24 @@
|
|||
$module_list = $oModuleModel->getModuleList();
|
||||
if(is_array($module_list))
|
||||
{
|
||||
$isUpdated = false;
|
||||
$needUpdate = false;
|
||||
$addTables = false;
|
||||
foreach($module_list AS $key=>$value)
|
||||
{
|
||||
if($value->need_install || $value->need_update)
|
||||
$isUpdated = true;
|
||||
if($value->need_install)
|
||||
{
|
||||
$addTables = true;
|
||||
}
|
||||
if($value->need_update)
|
||||
{
|
||||
$needUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Context::set('module_list', $module_list);
|
||||
Context::set('isUpdated', $isUpdated);
|
||||
Context::set('needUpdate', $isUpdated);
|
||||
Context::set('addTables', $addTables);
|
||||
Context::set('needUpdate', $needUpdate);
|
||||
|
||||
// gathering enviroment check
|
||||
$mainVersion = join('.', array_slice(explode('.', __ZBXE_VERSION__), 0, 2));
|
||||
|
|
|
|||
|
|
@ -1068,6 +1068,18 @@ Lütfen son sürümü için indirme linkine tıklayınız.]]></value>
|
|||
<value xml:lang="ko"><![CDATA[업데이트 가능]]></value>
|
||||
<value xml:lang="en"><![CDATA[Update Available]]></value>
|
||||
</item>
|
||||
<item name="need_update_and_table">
|
||||
<value xml:lang="ko"><![CDATA[DB Table 생성과 모듈 업데이트 필요]]></value>
|
||||
<value xml:lang="en"><![CDATA[Need to Create DB Table and Update Module]]></value>
|
||||
</item>
|
||||
<item name="need_update">
|
||||
<value xml:lang="ko"><![CDATA[모듈 업데이트 필요]]></value>
|
||||
<value xml:lang="en"><![CDATA[Need to Update Module]]></value>
|
||||
</item>
|
||||
<item name="need_table">
|
||||
<value xml:lang="ko"><![CDATA[DB Table 생성 필요]]></value>
|
||||
<value xml:lang="en"><![CDATA[Need to Create DB Table]]></value>
|
||||
</item>
|
||||
<item name="admin_menu_setup">
|
||||
<value xml:lang="ko"><![CDATA[관리자 메뉴 설정]]></value>
|
||||
<value xml:lang="en"><![CDATA[Admin Menu Setup]]></value>
|
||||
|
|
|
|||
|
|
@ -15,15 +15,17 @@
|
|||
</div>
|
||||
</form>
|
||||
<!--@end-->
|
||||
<!--@if($isUpdated)-->
|
||||
<!--@if($addTables || $needUpdate)-->
|
||||
<div class="message update">
|
||||
<h2>{$lang->update_available}</h2>
|
||||
<h2 cond="$needUpdate && $addTables">{$lang->need_update_and_table}</h2>
|
||||
<h2 cond="$needUpdate && !$addTables">{$lang->need_update}</h2>
|
||||
<h2 cond="!$needUpdate && $addTables">{$lang->need_table}</h2>
|
||||
<ul>
|
||||
<!--@foreach($module_list AS $key => $value)-->
|
||||
<!--@if($value->need_install)-->
|
||||
<li><a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$value->module}</a> - <a href="#" onclick="doInstallModule('{$value->module}');return false;">{$lang->cmd_install}</a></li>
|
||||
<li style="margin:0 0 4px 0;">{$value->module} - <span class="btn"><a href="#" onclick="doInstallModule('{$value->module}');return false;">{$lang->cmd_create_db_table}</a></span></li>
|
||||
<!--@else if($value->need_update)-->
|
||||
<li><a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$value->module}</a> - <a href="#" onclick="doUpdateModule('{$value->module}')">{$lang->cmd_update}</a></li>
|
||||
<li style="margin:0 0 4px 0;">{$value->module} - <span class="btn"><a href="#" onclick="doUpdateModule('{$value->module}')">{$lang->cmd_module_update}</a></li>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<lang>
|
||||
<item name="msg_avail_install">
|
||||
<value xml:lang="ko"><![CDATA[이 항목 설치가 가능합니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[You can install this item.]]></value>
|
||||
<value xml:lang="jp"><![CDATA[この項目のインストールが可能です。]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[可安裝此項目]]></value>
|
||||
<value xml:lang="ko"><![CDATA[DB Table 생성을 해야 설치가 완료됩니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[You have to create db table, if you want to finish to install this iteam]]></value>
|
||||
</item>
|
||||
<item name="msg_avail_update">
|
||||
<value xml:lang="ko"><![CDATA[이 항목 업데이트가 가능합니다.]]></value>
|
||||
|
|
@ -19,8 +17,8 @@
|
|||
<value xml:lang="zh-TW"><![CDATA[此項目有新版本]]></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>
|
||||
<value xml:lang="ko"><![CDATA[생성하시겠습니까?]]></value>
|
||||
<value xml:lang="en"><![CDATA[Would you like to create?]]></value>
|
||||
<value xml:lang="jp"><![CDATA[インストールしますか?]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[想要安裝嗎?]]></value>
|
||||
</item>
|
||||
|
|
@ -510,6 +508,15 @@
|
|||
<value xml:lang="tr"><![CDATA[Kur]]></value>
|
||||
<value xml:lang="vi"><![CDATA[Cài đặt]]></value>
|
||||
</item>
|
||||
<item name="cmd_create_db_table">
|
||||
<value xml:lang="ko"><![CDATA[DB Table 생성하기]]></value>
|
||||
<value xml:lang="en"><![CDATA[Create DB Table]]></value>
|
||||
</item>
|
||||
<item name="cmd_module_update">
|
||||
<value xml:lang="ko"><![CDATA[모듈 업데이트하기]]></value>
|
||||
<value xml:lang="en"><![CDATA[Update Module]]></value>
|
||||
</item>
|
||||
|
||||
<item name="cmd_update">
|
||||
<value xml:lang="ko"><![CDATA[업데이트]]></value>
|
||||
<value xml:lang="en"><![CDATA[Update]]></value>
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
debugPrint($module_list);
|
||||
Context::set('favoriteModuleList', $favoriteModuleList);
|
||||
Context::set('module_list', $module_list);
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@
|
|||
if(!$oDB->isColumnExists("module_config", "site_srl")) return true;
|
||||
|
||||
if(!is_dir('./files/ruleset')) return true;
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue