初装缺陷跟踪工具螳螂Mantis1.1.1,解决了几个不大不少的问题:
1、运行环境
在sourceforge下载没遇到什么问题,解包后愣了一下。看看readme.txt,再看看imstart.cmd后,不禁大声疾呼:懒虫万岁!原来什么都不需要配置!
2、中文问题
运行imstart,出现一个“ and 不是文件名”的问题,哦,目录在“Documents and Settings”下,当然不符合Apache的预期啦,于是独立一个目录命,没有空格,没有中文。再运行成功。
简单操作了一下,就越到中文问题了。乱码!从网上找到些解决办法,将config_defaults_inc.php第367行、第415行的chinese_simplified改为chinese_simplified_gb2312,如下:
修改config_defaults_inc.php.
$g_language_choices_arr = array(
'auto',
'bulgarian',
'catalan',
'chinese_simplified_gb2312',
'chinese_traditional',
..........................
# Browser language mapping for 'auto' language selection
$g_language_auto_map = array(
'bg' => 'bulgarian',
'ca' => 'catalan',
'zh-cn, zh-sg, zh' => 'chinese_simplified_gb2312',
'zh-hk, zh-tw' => 'chinese_traditional',
不重起,本机运行看上去没问题,再找另外一个机器测试一下,发现是乱码。原来本机居然仍以 utf-8格式保存字符,与 GB2312不兼容。继续”深入研究“,
按照pashev.igor@pomorsu.ru的快速方法
In file "core/lang_api.php"
改字符串
function lang_get( $p_string, $p_lang = null ) {
成为
function lang_get( $p_string, $p_lang = ' chinese_simplified_gb2312 ' ) {
OK!果然可以有作用!
3、新用户
用Admin登录没问题,但新用户不能登录,reset密码也不行,老是提示密码无效。reset密码后,是将新密码email了。根据提示取消email密码功能,允许设置成空。
修改config_defaults_inc.php.
# if ON users will be sent their password when reset.
# if OFF the password will be set to blank. If set to ON, mail settings must be
# correctly configured.
$g_send_reset_password = OFF;
1、运行环境
在sourceforge下载没遇到什么问题,解包后愣了一下。看看readme.txt,再看看imstart.cmd后,不禁大声疾呼:懒虫万岁!原来什么都不需要配置!
2、中文问题
运行imstart,出现一个“ and 不是文件名”的问题,哦,目录在“Documents and Settings”下,当然不符合Apache的预期啦,于是独立一个目录命,没有空格,没有中文。再运行成功。
简单操作了一下,就越到中文问题了。乱码!从网上找到些解决办法,将config_defaults_inc.php第367行、第415行的chinese_simplified改为chinese_simplified_gb2312,如下:
修改config_defaults_inc.php.
################################
# Mantis Language Settings
################################
# --- language settings -----------
# If the language is set to 'auto', the actual
# language is determined by the user agent (web browser)
# language preference.
$g_default_language = 'chinese_simplified_gb2312';
$g_language_choices_arr = array(
'auto',
'bulgarian',
'catalan',
'chinese_simplified_gb2312',
'chinese_traditional',
..........................
# Browser language mapping for 'auto' language selection
$g_language_auto_map = array(
'bg' => 'bulgarian',
'ca' => 'catalan',
'zh-cn, zh-sg, zh' => 'chinese_simplified_gb2312',
'zh-hk, zh-tw' => 'chinese_traditional',
不重起,本机运行看上去没问题,再找另外一个机器测试一下,发现是乱码。原来本机居然仍以 utf-8格式保存字符,与 GB2312不兼容。继续”深入研究“,
按照pashev.igor@pomorsu.ru的快速方法
In file "core/lang_api.php"
改字符串
function lang_get( $p_string, $p_lang = null ) {
成为
function lang_get( $p_string, $p_lang = ' chinese_simplified_gb2312 ' ) {
OK!果然可以有作用!
3、新用户
用Admin登录没问题,但新用户不能登录,reset密码也不行,老是提示密码无效。reset密码后,是将新密码email了。根据提示取消email密码功能,允许设置成空。
修改config_defaults_inc.php.
# if ON users will be sent their password when reset.
# if OFF the password will be set to blank. If set to ON, mail settings must be
# correctly configured.
$g_send_reset_password = OFF;