dotproject한글화

dotproject 설치야 얼마 안걸리겠지만,

한글화가 부족한 감이 없지 않아 있고(File Owner = 파일 경영자),

간트차트도 한글이 깨져나온다.



<준비작업>
http://sourceforge.net/projects/dotproject 에서 dotproject를 다운받는다.
http://sourceforge.net/projects/dotmods 요기에서 한글로케일 및 필요한 모듈을 받는다.

(순서 및 주요내용은 어떤 님의  블로그에서 가져온 뒤
예전버젼이랑 달라진 라인번호등만 수정하였습니다.
DB가 없어져 구글에서 복구하다보니 원문링크가 없습니다.)

1. dotproject 설치

2. locales/kr 에 한글로케일 설치
한글로케일을 설치하더라도 lang.php파일이 없어 한글이 나오지않는다.
locales/en/lang.php 파일을 /locales/kr/lang.php로 복사한 후 수정한다.


<?php
// Entries in the LANGUAGES array are elements that describe the
// countries and language variants supported by this locale pack.
// Elements are keyed by the ISO 2 character language code in lowercase
// followed by an underscore and the 2 character country code in Uppercase.
// Each array element has 4 parts:
// 1. Directory name of locale directory
// 2. English name of language
// 3. Name of language in that language
// 4. Microsoft locale code

$dir = basename(dirname(__FILE__));


$LANGUAGES[‘kr’] = array ( $dir, ‘Korean’, ‘Korean’, ‘euc_kr’);


?>


3. lib/jpgraph/src/jpgraph.php 수정(3112라인)

<한 줄로 적어라>
FF_CUSTOM =>  array(FS_NORMAL=>’gulim.ttf’, FS_BOLD=>’gulim.ttf’, FS_ITALIC=>’gulim.ttf’, FS_BOLDITALIC=>’gulim.ttf’)
4. modules/tasks/gantt.php  수정(214라인, 359라인)

$graph->scale->actinfo->SetFont(FF_CUSTOM, FS_NORMAL, 8);
위의 라인을 아래처럼 수정
$graph->scale->actinfo->SetFont(FF_CUSTOM);

//$name = utf8_decode($name); <– 주석처리
5. modules/projects/gantt.php 수정(196라인)

<주석처리>
/*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 ).’…’ : ut
f8_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”] ;
        }*/

6. fileviewer.php 수정(166 라인)

header( ‘Content-disposition: attachment; filename=”‘.$file[‘file_name’].'”‘ );
위의 라인을 아래처럼 수정
 header( ‘Content-disposition: attachment; filename=”‘.iconv(‘utf-8′,’euc-kr’,{$file[‘file_name’]}).'”‘ );
7. modules/system/addeditpref.php 수정(102라인)

 $f = “%Y.%m.%d”; $dates[$f] = $ex->format( $f );
위의 라인을 하나 추가 해줌
즉, 2008.1.12 이렇게 쓰겠다는 얘기

“dotproject한글화”에 대한 한개의 댓글

댓글이 닫혀있습니다.