Search Results for 'pms'


1 POSTS

  1. 2008/01/12 dotproject 한글화 by 노는총각

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
[로그인][오픈아이디란?]

블로그 이미지

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

- 노는총각

Archives

Calendar

«   2008/11   »
            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            

Site Stats

Total hits:
15105
Today:
27
Yesterday:
79