mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
issue 70 multilingual developement in module module.
but yet not completed at js git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8839 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
52bab54234
commit
e7b9691c62
9 changed files with 283 additions and 74 deletions
|
|
@ -180,5 +180,34 @@
|
|||
$output = $this->getLangCode($site_module_info->site_srl, '$user_lang->'.$name);
|
||||
$this->add('langs', $output);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return lang list
|
||||
**/
|
||||
function getModuleAdminLangListByName()
|
||||
{
|
||||
$args = Context::getRequestVars();
|
||||
if(!$args->site_srl) $args->site_srl = 0;
|
||||
$args->langName = $args->lang_name;
|
||||
$columnList = array('lang_code', 'value');
|
||||
|
||||
$langList = array();
|
||||
$output = executeQueryArray('module.getLangListByName', $args, $columnList);
|
||||
if($output->toBool()) $langList = $output->data;
|
||||
|
||||
$this->add('lang_list', $langList);
|
||||
$this->add('lang_name', $args->langName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return current lang list
|
||||
**/
|
||||
function getLangListByLangcode($args)
|
||||
{
|
||||
$output = executeQueryArray('module.getLangListByLangcode', $args);
|
||||
if(!$output->toBool()) return array();
|
||||
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue