DotProject

フリーのプロジェクト管理ツールです。

インストール 1.0

http://www.dotproject.net/からダウンロードします。また日本語化するためにLanguage Packsにあるhttp://sourceforge.net/project/showfiles.php?group_id=70930&package_id=101502&release_id=212886からダウンロードします。dotprojectを解凍したディレクトリで、解凍します。するとlocalsディレクトリにjaディレクトリが作成されています。

tar xzvf loc_japanese_040127.tgz

ではDBとユーザを作っておきましょう。

mysql -u root -p
mysql>create database dotproject;
mysql>grant select,insert,update,delete on dotproject.* to dotproject@localhost identified by 'hogepass';
mysql>update mysql.user set Password=OLD_PASSWORD('hogepass') where Host='localhost' and User='dotproject';
mysql>FLUSH PRIVILEGES;

updateの行はMySQL4.1で必要です。ではコンソールからsqlを実行してテーブルを作ります。dbディレクトリに移動して、

mysql -u dotproject -phogepass dotproject <dotproject_102.sql

次はincludeにあるconfig-dist.phpをconfig.phpにコピーします。ついでに権限もかえておきましょう。

chown -R nobody:nobody dotproject/

では自分の環境に合わせて、config.phpを編集します。

$dPconfig['dbhost'] = "localhost";
$dPconfig['dbname'] = "dotproject";  // Change to match your DotProject 
$dPconfig['dbuser'] = "dotproject";  // Change to match your MySQL Username
$dPconfig['dbpass'] = "hogepass";  // Change to match your MySQL Password
$dPconfig['host_locale'] = "ja"
$dPconfig['root_dir'] = "/usr/local/dotproject";  // No trailing slash
$dPconfig['company_name'] = "hoge Co";
$dPconfig['page_title'] = "dotProject";
$dPconfig['base_url'] = "http://localhost/dotproject";
$dPconfig['site_domain'] = "dotproject.net";

では、http://localhost/dotproject/index.phpを開きましょう。admin,passwdでログインできます。user adminをクリックして、languageとpasswordを変更しておきましょう。 あれ?エラーが出てます。

Table 'dotproject.tasks_sum' doesn't exist

どうも、このtasks_sumはtemporary tableみたいです。ユーザ作成の時に、権限がたりてなかったようですね。

grant ALL PRIVILEGES on dotproject.* to dotproject@localhost identified by 'hogepass';

もしくは、CREATE TEMPORARY TABLESを指定しておきましょう。さてエラーがなくなったと思ったら、こんどは文字化けです。ではlocales.phpの$locale_char_set = 'utf-8';を$locale_char_set = 'euc-jp';に変更します。次にlocals/jaディレクトリで、

find . -name '*.inc' | xargs nkf -e -Lu --overwrite

としてやります。

インストール 2.0

しばらく見ないうちに2.0が出ておりました。あれ?2.0.1がありますね。とりあえず、解凍して、MySQLでユーザを作ります。試したバージョンは4.0です。

grant ALL PRIVILEGES on dotproject2.* to dotproject2@localhost identified by 'hogepass';
FLUSH PRIVILEGES;

DBは作りません。インストーラーが作ってくれます。では

http://localhost/dotproject2/install/index.php

で指示に従っていってインストールしていきます。MySQLの設定は先ほど作ったユーザ(dotproject2)とパスワード(hogepass)とDB(dotproject2)を指定します。 インストール後、うまくいけば、

Database Installation Feedback:  	Database successfully setup
Config File Creation Feedback: 	Config file written successfully

と表示され、

Login and Configure the dotProject System Environment

をクリックします。するとログイン画面がでますので、デフォルトはadmin,passwdでログインします。Ver1のころに比べるとちょっと楽になってますね。ログインすると、System Configurationの画面が出てきました。Host Localeをjaにしてsaveしました。さて日本語で表示したいところですが、

http://sourceforge.net/projects/dotmods

のJapanese localesは使えるものなのでしょうか。とりあえず、dotprojectに解凍するとlocalsにjaができます。またこの場所にlang.phpが必要になるそうで

<?php
$dir = basename(dirname(__FILE__));
$LANGUAGES['ja_JP'] = array ( $dir, 'Japanese', '日本語', 'jpn');
?>

といったものを作ればいいそうです。 $LANGUAGE['aa_BB'] = array($dir, 'Language Name (in English)', 'Language name (in Language)', 'xxx'); で

aa_BB is the iso 2 character language code 'aa', followed by the ISO 2 character country code 'BB'. 
The first instance of the language name should be in English.
The second should be in the native language. 
The last field 'xxx' is the Microsoft language code

詳細はこちらです。あとはログインし直して、System Adminメニューから PreferencesのDefault User Preferencesをクリックして、LocaleをJapaneseにします。その後ログオフして、ログオンして日本語のメニューになっておれば、ひとまずOKです。あとは、システムアドミンの翻訳管理から、翻訳を設定しておきましょう。さて何がVer1から変わったのでしょうか。Ver1をあまり触ってないので、よくわかりません...

カレンダー

曜日が化けちゃってます。そこで、インストールフォルダのlib/PEAR/Date/Calc.phpの1492行目あたりを

//return substr(Date_Calc::getMonthFullname($month), 0, $length); //コメント
 return sprintf("%02d",$month); //追加

modules/calendar/calendar.class.phpの262行目あたりを

 //$s .= "\n\t\t<th width=\"14%\">" . htmlentities(utf8_encode($day), ENT_COMPAT, $locale_char_set) . "</th>"; //コメント
 $s .= "\n\t\t<th width=\"14%\">" . htmlentities($day, ENT_COMPAT,$locale_char_set) . "</th>"; //追加

ガントチャート日本語化

まずPHPのjpgraphを参考にjpgraphをインストールしておきます。そして、このjpgraphを使いますので、modules/tasks/gantt.phpの

//include ("{$dPconfig['root_dir']}/lib/jpgraph/src/jpgraph.php");
//include ("{$dPconfig['root_dir']}/lib/jpgraph/src/jpgraph_gantt.php");

include ("jpgraph/jpgraph.php");
include ("jpgraph/jpgraph_gantt.php");

また

$name = $a["task_name"];
if ( $locale_char_set=='utf-8' && function_exists("utf8_decode") ) {
   $name = utf8_decode($name);
}

$name = mb_convert_encoding($a["task_name"],"UTF-8","EUC-JP");
/*
$name = $a["task_name"];
if ( $locale_char_set=='utf-8' && function_exists("utf8_decode") ) {
  $name = utf8_decode($name);
}
*/

に変更します。まだ途中....

http://www.gadgety.net/shin/tips/unix/php-gd.html
http://www.kunitake.org/xoops/modules/weblog/print.php?blog_id=40
http://blade.mars.homeunix.org/modules/wordpress/index.php
http://www.kalium.net/image/archives/2004/05/dotproject.html

リンク

http://shrine.no-ip.info/mt/archives/000143.html
http://jn-p.com/bchro/Dotproject.html
http://d.hatena.ne.jp/k05ke/searchdiary?word=*[PHP]
http://gackn.cocolog-nifty.com/diary/

参考書籍

コメント

  • こんにちは。日本ユーザーコミュニティというのを作ってみました。よろしければご活用下さい! -- NAO? 2005-05-27 (金) 14:58:33
  • http://shrine.no-ip.info/dp/ -- NAO? 2005-05-27 (金) 14:59:08
    • ありがとうございます!
  • #comment

トップ   編集 凍結解除 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2006-07-19 (水) 10:01:00 (6511d)