diff --git a/module/group/lang/resource.php b/module/group/lang/resource.php index 85902b5ed9..57f7420a21 100644 --- a/module/group/lang/resource.php +++ b/module/group/lang/resource.php @@ -185,6 +185,9 @@ $lang->resource->productplan->view = 'view'; $lang->resource->productplan->linkStory = 'linkStory'; $lang->resource->productplan->unlinkStory = 'unlinkStory'; $lang->resource->productplan->batchUnlinkStory = 'batchUnlinkStory'; +$lang->resource->productplan->linkBug = 'linkBug'; +$lang->resource->productplan->unlinkBug = 'unlinkBug'; +$lang->resource->productplan->batchUnlinkBug = 'batchUnlinkBug'; $lang->productplan->methodOrder[5] = 'browse'; $lang->productplan->methodOrder[10] = 'create'; @@ -194,6 +197,9 @@ $lang->productplan->methodOrder[25] = 'view'; $lang->productplan->methodOrder[30] = 'linkStory'; $lang->productplan->methodOrder[35] = 'unlinkStory'; $lang->productplan->methodOrder[40] = 'batchUnlinkStory'; +$lang->productplan->methodOrder[45] = 'linkBug'; +$lang->productplan->methodOrder[50] = 'unlinkBug'; +$lang->productplan->methodOrder[55] = 'batchUnlinkBug'; /* Release. */ $lang->resource->release = new stdclass(); diff --git a/module/productplan/control.php b/module/productplan/control.php index ab8611f0fa..d5e598b55b 100644 --- a/module/productplan/control.php +++ b/module/productplan/control.php @@ -143,15 +143,16 @@ class productplan extends control $plan = $this->productplan->getByID($planID, true); if(!$plan) die(js::error($this->lang->notFound) . js::locate('back')); $this->commonAction($plan->product); - $products = $this->product->getPairs(); - $this->view->title = "PLAN #$plan->id $plan->title/" . $products[$plan->product]; - $this->view->position[] = $this->lang->productplan->view; - $this->view->planStories= $this->loadModel('story')->getPlanStories($planID); - $this->view->products = $products; - $this->view->summary = $this->product->summary($this->view->planStories); - $this->view->plan = $plan; - $this->view->actions = $this->loadModel('action')->getList('productplan', $planID); - $this->view->users = $this->loadModel('user')->getPairs('noletter'); + $products = $this->product->getPairs(); + $this->view->title = "PLAN #$plan->id $plan->title/" . $products[$plan->product]; + $this->view->position[] = $this->lang->productplan->view; + $this->view->planStories = $this->loadModel('story')->getPlanStories($planID); + $this->view->planBugs = $this->loadModel('bug')->getPlanBugs($planID); + $this->view->products = $products; + $this->view->summary = $this->product->summary($this->view->planStories); + $this->view->plan = $plan; + $this->view->actions = $this->loadModel('action')->getList('productplan', $planID); + $this->view->users = $this->loadModel('user')->getPairs('noletter'); $this->display(); } diff --git a/module/productplan/lang/en.php b/module/productplan/lang/en.php index c5d9588d69..cefdb0e880 100644 --- a/module/productplan/lang/en.php +++ b/module/productplan/lang/en.php @@ -9,22 +9,26 @@ * @version $Id: en.php 4659 2013-04-17 06:45:08Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ -$lang->productplan->common = 'Plan'; -$lang->productplan->browse = "Browse"; -$lang->productplan->index = "Index"; -$lang->productplan->create = "Create"; -$lang->productplan->edit = "Edit"; -$lang->productplan->delete = "Delete"; -$lang->productplan->view = "Info"; +$lang->productplan->common = 'Plan'; +$lang->productplan->browse = "Browse"; +$lang->productplan->index = "Index"; +$lang->productplan->create = "Create"; +$lang->productplan->edit = "Edit"; +$lang->productplan->delete = "Delete"; +$lang->productplan->view = "Info"; +$lang->productplan->bugSummary = "Total %s bugs in this page"; +$lang->productplan->basicInfo = 'Basic Info'; + +$lang->productplan->batchUnlink = "Batch Remove"; $lang->productplan->linkStory = "Link story"; $lang->productplan->unlinkStory = "Remove story"; -$lang->productplan->batchUnlinkStory = "Batch Remove"; +$lang->productplan->batchUnlinkStory = "Batch Remove Stories"; $lang->productplan->linkedStories = 'Stories linked'; $lang->productplan->unlinkedStories = 'Stories unlinked'; $lang->productplan->linkBug = "Link bug"; $lang->productplan->unlinkBug = "Remove bug"; -$lang->productplan->batchUnlinkBug = "Batch Remove"; +$lang->productplan->batchUnlinkBug = "Batch Remove Bugs"; $lang->productplan->linkedBugs = 'Bugs linked'; $lang->productplan->unlinkedBugs = 'Bugs unlinked'; @@ -32,8 +36,6 @@ $lang->productplan->confirmDelete = "Are you sure to delete this plan?"; $lang->productplan->confirmUnlinkStory = "Are you sure to remove this story?"; $lang->productplan->confirmUnlinkBug = "Are you sure to remove this bug?"; -$lang->productplan->basicInfo ='Basic Info'; - $lang->productplan->id = 'ID'; $lang->productplan->product = 'Product'; $lang->productplan->title = 'Title'; diff --git a/module/productplan/lang/zh-cn.php b/module/productplan/lang/zh-cn.php index 155f5246dd..a7ba98e84b 100644 --- a/module/productplan/lang/zh-cn.php +++ b/module/productplan/lang/zh-cn.php @@ -9,22 +9,26 @@ * @version $Id: zh-cn.php 4659 2013-04-17 06:45:08Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ -$lang->productplan->common = '产品计划'; -$lang->productplan->browse = "浏览计划"; -$lang->productplan->index = "计划列表"; -$lang->productplan->create = "创建计划"; -$lang->productplan->edit = "编辑计划"; -$lang->productplan->delete = "删除计划"; -$lang->productplan->view = "计划详情"; +$lang->productplan->common = '产品计划'; +$lang->productplan->browse = "浏览计划"; +$lang->productplan->index = "计划列表"; +$lang->productplan->create = "创建计划"; +$lang->productplan->edit = "编辑计划"; +$lang->productplan->delete = "删除计划"; +$lang->productplan->view = "计划详情"; +$lang->productplan->bugSummary = "本页共 %s 个Bug"; +$lang->productplan->basicInfo = '基本信息'; + +$lang->productplan->batchUnlink = "批量移除"; $lang->productplan->linkStory = "关联需求"; $lang->productplan->unlinkStory = "移除需求"; -$lang->productplan->batchUnlinkStory = "批量移除"; +$lang->productplan->batchUnlinkStory = "批量移除需求"; $lang->productplan->linkedStories = '已关联需求列表'; $lang->productplan->unlinkedStories = '未关联需求列表'; $lang->productplan->linkBug = "关联Bug"; $lang->productplan->unlinkBug = "移除Bug"; -$lang->productplan->batchUnlinkBug = "批量移除"; +$lang->productplan->batchUnlinkBug = "批量移除Bug"; $lang->productplan->linkedBugs = '已关联Bug列表'; $lang->productplan->unlinkedBugs = '未关联Bug列表'; @@ -32,8 +36,6 @@ $lang->productplan->confirmDelete = "您确认删除该计划吗?"; $lang->productplan->confirmUnlinkStory = "您确认移除该需求吗?"; $lang->productplan->confirmUnlinkBug = "您确认移除该Bug吗?"; -$lang->productplan->basicInfo ='基本信息'; - $lang->productplan->id = '编号'; $lang->productplan->product = '产品'; $lang->productplan->title = '名称'; diff --git a/module/productplan/view/browse.html.php b/module/productplan/view/browse.html.php index ae1999154b..bf0858418c 100644 --- a/module/productplan/view/browse.html.php +++ b/module/productplan/view/browse.html.php @@ -37,8 +37,8 @@