TA的每日心情 | 难过 2015-6-25 22:18 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
我在做法是在FuncModel.inc.php文件的testOpenBug函数中修改如下:
$KeyChinaName = issueSwitchChinese($Key);
testAddHistory($ActionID, $KeyChinaName, $OldValue, $NewValue);
增加了下面的函数:
function issueSwitchChinese($Key)
{
global $_LANG;
$KeyChinese = '';
if($_LANG['CaseFields'][$Key])
{
switch ($Key)
{
case 'ProjectName':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'ModuleID':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'ModulePath':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'CaseTitle':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'CasePriority':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'CaseType':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'CaseStatus':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'CaseMethod':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'CasePlan':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'CaseSteps':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'AssignedTo':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'ScriptStatus':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'ScriptLocation':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'MailTo':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'CaseKeyword':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'IssueBuild':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'BugID':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
case 'LinkID':
$KeyChinese = $_LANG['CaseFields'][$Key];
break;
}
}
return $KeyChinese;
}
$_LANG['CaseFields'][$Key]的值放在_COMMON.php文件中 |
|