mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 11:49:56 +09:00
issue 70 multilingual admin devlopement.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8856 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3568bb75ff
commit
720b7f14cc
3 changed files with 15 additions and 40 deletions
|
|
@ -438,12 +438,12 @@
|
|||
foreach($lang_supported as $key => $val) {
|
||||
$args->lang_code = $key;
|
||||
$args->value = trim(Context::get($key));
|
||||
if(!$args->value) {
|
||||
$args->value = Context::get(strtolower($key));
|
||||
if(!$args->value) $args->value = $args->name;
|
||||
}
|
||||
$output = executeQuery('module.insertLang', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
if($args->value)
|
||||
{
|
||||
$output = executeQuery('module.insertLang', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
}
|
||||
}
|
||||
$this->makeCacheDefinedLangCode($args->site_srl);
|
||||
|
||||
|
|
|
|||
|
|
@ -174,28 +174,6 @@
|
|||
$this->setTemplateFile('module_grant_setup');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Language codes
|
||||
**/
|
||||
/*function dispModuleAdminLangcode() {
|
||||
// Get the language file of the current site
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$args->site_srl = (int)$site_module_info->site_srl;
|
||||
$args->sort_index = 'name';
|
||||
$args->order_type = 'asc';
|
||||
$output = executeQueryArray('module.getLangList', $args);
|
||||
Context::set('lang_list', $output->data);
|
||||
// Get the currently selected language
|
||||
$name = Context::get('name');
|
||||
if($name) {
|
||||
$oModuleAdminModel = &getAdminModel('module');
|
||||
Context::set('selected_lang', $oModuleAdminModel->getLangCode($args->site_srl,'$user_lang->'.$name));
|
||||
}
|
||||
// Set the layout to be pop-up
|
||||
$this->setLayoutFile('popup_layout');
|
||||
// Set a template file
|
||||
$this->setTemplateFile('module_langcode');
|
||||
}*/
|
||||
|
||||
/**
|
||||
* @brief Language codes
|
||||
|
|
|
|||
|
|
@ -30,18 +30,15 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal" id="addWord">
|
||||
<form action="" class="mLangEdit fg form">
|
||||
<h2 class="h2">새로운 단어 또는 문장 추가</h2>
|
||||
|
||||
<form action="./" method="post" class="form" id="langForm_new" >
|
||||
<input type="hidden" name="act" value="procModuleAdminInsertLang" />
|
||||
<ul>
|
||||
<li class="{$key2}" loop="$lang_supported=>$key2,$value2"><label for="{$langName}_{$key2}">{$value2}</label> <textarea rows="1" cols="42" name="{$key2}" id="{$langName}_{$key2}"></textarea></li>
|
||||
</ul>
|
||||
<div class="btnArea">
|
||||
<span class="btn small"><button type="submit">Save</button></span>
|
||||
</div>
|
||||
</form>
|
||||
<form action="./" method="post" class="form mLangEdit fg" id="langForm_new" >
|
||||
<h2 class="h2">새로운 단어 또는 문장 추가</h2>
|
||||
<input type="hidden" name="act" value="procModuleAdminInsertLang" />
|
||||
<ul>
|
||||
<li class="{$key2}" loop="$lang_supported=>$key2,$value2"><label for="{$langName}_{$key2}">{$value2}</label> <textarea rows="1" cols="42" name="{$key2}" id="{$langName}_{$key2}"></textarea></li>
|
||||
</ul>
|
||||
<div class="btnArea">
|
||||
<span class="btn small"><button type="submit">Save</button></span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="search">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue