*Code lang for international ZenTao.
This commit is contained in:
@@ -542,6 +542,30 @@ class installModel extends model
|
||||
{
|
||||
$this->dao->update(TABLE_CRON)->set('remark')->eq($remark)->where('command')->eq($command)->exec();
|
||||
}
|
||||
|
||||
if(!empty($this->config->maxVersion))
|
||||
{
|
||||
/* Update process by lang. */
|
||||
foreach($this->lang->install->processList as $id => $name)
|
||||
{
|
||||
$this->dao->update(TABLE_PROCESS)->set('name')->eq($name)->where('id')->eq($id)->exec();
|
||||
}
|
||||
|
||||
/* Update basicmeas by lang. */
|
||||
foreach($this->lang->install->basicmeasList as $id => $basic)
|
||||
{
|
||||
$this->dao->update(TABLE_BASICMEAS)->set('name')->eq($basic['name'])->set('unit')->eq($basic['unit'])->set('definition')->eq($basic['definition'])->where('id')->eq($id)->exec();
|
||||
}
|
||||
|
||||
/* Update lang,stage by lang. */
|
||||
$this->app->loadLang('stage');
|
||||
foreach($this->lang->stage->typeList as $key => $value)
|
||||
{
|
||||
$this->dao->update(TABLE_LANG)->set('value')->eq($value)->where('`key`')->eq($key)->exec();
|
||||
$this->dao->update(TABLE_STAGE)->set('name')->eq($value)->where('`type`')->eq($key)->exec();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user