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 이렇게 쓰겠다는 얘기
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 노는총각

2008/01/12 16:52 2008/01/12 16:52
, ,
Response
No Trackback , No Comment
RSS :
http://blog.zeroidle.com/rss/response/37

Trackback URL : http://blog.zeroidle.com/trackback/37

Leave a comment
[로그인][오픈아이디란?]

dotproject 설치

업무에 적용할 PMS가 없을가 하다가 dotProject를 알게 되었다

한글모듈도 있다^^

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 노는총각

2008/01/08 16:09 2008/01/08 16:09
,
Response
3 Trackbacks , a comment
RSS :
http://blog.zeroidle.com/rss/response/1

Trackback URL : http://blog.zeroidle.com/trackback/1

Trackbacks List

  1. Tamiflu precautions.

    Tracked from Tamiflu. 2009/10/18 14:47 Delete

    Tamiflu.

  2. Adipex p.

    Tracked from Adipex. 2009/10/18 15:11 Delete

    Adipex generic. Adipex reviews. Adipex phentermine vs. Adipex. Adipex online. Adipex without prescription.

  3. Buy xanax.

    Tracked from Buy xanax. 2009/10/19 01:45 Delete

    Buy xanax. Xanax. Xanax dosage.

Comments List

  1. 노는총각 2008/01/08 16:18 # M/D Reply Permalink

    이놈덕택에 그동안 모아온 자료를 다 날렸다.
    (아무생각없이 DB초기화를 눌러버렸어 ㅠ.ㅠ)

    log-bin을 설정해 놓긴 했으나

    찾기가 더 힘들어 걍.. 다시 시작해야겠다

Leave a comment
[로그인][오픈아이디란?]

블로그 이미지

버그가 없어도 전혀 기쁘지 않아!!!

- 노는총각

Notices

Archives

Calendar

«   2010/07   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Site Stats

Total hits:
65292
Today:
38
Yesterday:
158