mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-06 18:42:15 +09:00
XE의 문서 다국어 기능 지원.
- 글작성시 작성당시 작성자의 언어코드가 문서의 기본 언어로 문서 저장됨 - 글 수정시 글 수정 당시 수정자의 언어코드가 기본 언어와 다르면 원글을 수정하는 것이 아니라 새로운 언어코드로 등록됨 - 글을 볼때 보는 사용자의 언어코드에 따라서 같은 언어코드 > 원문서 기본 언어 > 기타 로 보여짐 - 즉 하나의 글에 대해서 여러 언어코드가 지원이 되는 구조임 - 제목/ 내용/ 확장변수 모두 적용 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5808 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c7af0de65e
commit
02b8e5684f
15 changed files with 249 additions and 133 deletions
|
|
@ -92,6 +92,10 @@
|
|||
|
||||
if(!$oModuleModel->getTrigger('module.dispAdditionSetup', 'document', 'view', 'triggerDispDocumentAdditionSetup', 'before')) return true;
|
||||
|
||||
// 2009. 03. 09 documents에 lang_code 컬럼 추가
|
||||
if(!$oDB->isColumnExists("documents","lang_code")) return true;
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -176,6 +180,13 @@
|
|||
if(!$oModuleModel->getTrigger('module.dispAdditionSetup', 'document', 'view', 'triggerDispDocumentAdditionSetup', 'before'))
|
||||
$oModuleController->insertTrigger('module.dispAdditionSetup', 'document', 'view', 'triggerDispDocumentAdditionSetup', 'before');
|
||||
|
||||
// 2009. 03. 09 documents에 lang_code 컬럼 추가
|
||||
if(!$oDB->isColumnExists("documents","lang_code")) {
|
||||
$db_info = Context::getDBInfo();
|
||||
$oDB->addColumn('documents',"lang_code","varchar",10, $db_info->lang_code);
|
||||
$obj->lang_code = $db_info->lang_type;
|
||||
executeQuery('document.updateDocumentsLangCode', $obj);
|
||||
}
|
||||
|
||||
return new Object(0,'success_updated');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue