From a5bf2a45246d1f080a989cdc1729302192b4a3d8 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Thu, 15 Apr 2010 07:31:57 +0000 Subject: [PATCH] * unset the types which should be story o task. --- trunk/module/bug/control.php | 10 ++++++++++ trunk/module/bug/lang/zh-cn.php | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/trunk/module/bug/control.php b/trunk/module/bug/control.php index 63747eb13a..8211293987 100644 --- a/trunk/module/bug/control.php +++ b/trunk/module/bug/control.php @@ -216,6 +216,11 @@ class bug extends control $productID = common::saveProductState($productID, key($this->products)); $this->bug->setMenu($this->products, $productID); + /* 去掉几个类型的设置。*/ + unset($this->lang->bug->typeList['designchange']); + unset($this->lang->bug->typeList['newfeature']); + unset($this->lang->bug->typeList['trackthings']); + /* 初始化变量。*/ $moduleID = 0; $projectID = 0; @@ -313,6 +318,11 @@ class bug extends control $productID = $bug->product; $currentModuleID = $bug->module; + /* 修改类型的配置。*/ + if($bug->type != 'designchange') unset($this->lang->bug->typeList['designchange']); + if($bug->type != 'newfeature') unset($this->lang->bug->typeList['newfeature']); + if($bug->type != 'trackthings') unset($this->lang->bug->typeList['trackthings']); + /* 设置菜单。*/ $this->bug->setMenu($this->products, $productID); diff --git a/trunk/module/bug/lang/zh-cn.php b/trunk/module/bug/lang/zh-cn.php index f7ea595f15..7e0f7e69bc 100644 --- a/trunk/module/bug/lang/zh-cn.php +++ b/trunk/module/bug/lang/zh-cn.php @@ -148,6 +148,7 @@ $lang->bug->priList[4] = '4'; $lang->bug->osList[''] = ''; $lang->bug->osList['all'] = '全部'; +$lang->bug->osList['windows'] = 'Windows'; $lang->bug->osList['winxp'] = 'Windows XP'; $lang->bug->osList['win7'] = 'Windows 7'; $lang->bug->osList['vista'] = 'Windows Vista'; @@ -155,16 +156,20 @@ $lang->bug->osList['win2000'] = 'Windows 2000'; $lang->bug->osList['winnt'] = 'Windows NT'; $lang->bug->osList['win98'] = 'Windows 98'; $lang->bug->osList['linux'] = 'Linux'; +$lang->bug->osList['freebsd'] = 'FreeBSD'; $lang->bug->osList['unix'] = 'Unix'; $lang->bug->osList['others'] = '其他'; $lang->bug->browserList[''] = ''; $lang->bug->browserList['all'] = '全部'; +$lang->bug->browserList['ie'] = 'IE系列'; $lang->bug->browserList['ie6'] = 'IE6'; $lang->bug->browserList['ie7'] = 'IE7'; $lang->bug->browserList['ie8'] = 'IE8'; +$lang->bug->browserList['firefox'] = 'firefox系列'; $lang->bug->browserList['firefox2'] = 'firefox2'; $lang->bug->browserList['firefx3'] = 'firefox3'; +$lang->bug->browserList['opera'] = 'opera系列'; $lang->bug->browserList['opera9'] = 'opera9'; $lang->bug->browserList['oprea10'] = 'opera10'; $lang->bug->browserList['safari'] = 'safari';