2008년 01월 07일
DotProject 설치 및 한글화 , Gantt chart 한글화
참고 :
http://wiki.kldp.org/wiki.php/dotproject-ko
<1. 설치환경>
dotProject version 2.1.1
Microsoft Windows XP sp2
APM Setup 6
<2. 설치>
1. 아파치 문서 root에 그냥 압축 풀어 복사한다.
2. 익스플로러를 띄워 http://localhost/dotproject하면 설치화면 나타난다.
3. 설치가 끝나면 dotproject/install 폴더를 지운다.
4. 다시 http://localhost/dotproject 들어가면 로그인 화면 나오는데, ID : admin, PW : passwd 이다.
<3. 메뉴 한글화>
System Admin -> Translation Management 메뉴를 이용해 일일히 번역해야 한다.
dotProject/locales/en 폴더를 복사해 /kr 폴더로 만들고 이 /kr 폴더 밑에 lang.php 파일에 다음을 추가하면 kr 메뉴 항목이 생기고 한글화 작업을 진행할 수 있다.
$LANGUAGES['kr'] = array ( $dir, 'Korean', 'Korean', 'utf-8');
그리고, System Admin -> Default User Preferences 에서 locales 을 korean 으로 선택하면 된다.
<4. 간트차트 한글 출력>
1. /htdocs/dotproject/lib/jpgraph/src/jpgraph.php 파일을 다음과 같이 수정한다. (3112 행)
FF_CUSTOM => array(FS_NORMAL=>'malgun.ttf', FS_BOLD=>'malgun.ttf', FS_ITALIC=>'malgun.ttf', FS_BOLDITALIC=>'malgun.ttf')
2. /htdocs/dotproject/lib/fonts 에 malgun.ttf 폰트파일을 복사한다. (맑은 고딕체로 없으면 인터넷에서 받거나 비스타에서 복사한다.) 다른 폰트를 쓰고 싶으면 그 폰트 복사한 후 위의 파일명만 수정한다.
3. /htdocs/dotproject/modules/tasks/gantt.php (119행, 359 행) 을 다음과 같이 처리한다. (utf-8 디코딩 과정에서 꼬인것 같다.)
(119행)
$graph->scale->actinfo->SetFont(FF_CUSTOM);
(359행)
$name = $a['task_name'];
if ( $locale_char_set=='utf-8' && function_exists('utf8_decode') ) {
// $name = utf8_decode($name);
}
4. /htdocs/dotproject/modules/projects/gantt.php (196 행) 을 다음과 같이 주석처리한다. (utf-8 디코딩 과정에서 꼬인것 같다.)
// if ( $locale_char_set=='utf-8' && function_exists("utf8_decode") ) {
// $name = strlen( utf8_decode($p["project_name"]) ) > 25 ? substr( utf8_decode($p["project_name"]), 0, 22 ).'...' : utf8_decode($p["project_name"]) ;
// } else {
//while using charset different than UTF-8 we need not to use utf8_deocde
$name = strlen( $p["project_name"] ) > 25 ? substr( $p["project_name"], 0, 22 ).'...' : $p["project_name"] ;
// }
<5. 한글 파일 다운로드>
WinXP에서 한글 파일을 다운로드 받을 때 파일이름이 깨질 경우 다음을 수정한다.
1. /htdocs/dotproject/fileviewer.php (166 행)
header( 'Content-disposition: attachment; filename="'.iconv('utf-8','euc-kr',$file['file_name']).'"' );
<6. 날짜 형식 수정>
날짜형식이 우리 실정에 맞지 않아 수정
1. /htdocs/dotproject/modules/system/addeditpref.php (102 행) 을 추가한다. 2007.01.07 형식. 그리고 my info 에서 다시 셋팅해 준다.
$f = "%Y.%m.%d"; $dates[$f] = $ex->format( $f );
# by | 2008/01/07 19:00 | 시력회복 프로젝트 | 트랙백





☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]