diff --git a/module/programplan/control.php b/module/programplan/control.php index 705ea6979d..7312954196 100644 --- a/module/programplan/control.php +++ b/module/programplan/control.php @@ -57,7 +57,7 @@ class programplan extends control { $this->loadModel('doc'); $projects = $this->loadModel('project')->getPairsByModel(array('ipd', 'waterfall', 'waterfallplus')); - if(empty($projects)) return $this->send(array('result' => 'fail', 'message' => $this->lang->programplan->error->noProject)); + if(empty($projects)) return $this->send(array('result' => 'fail', 'message' => $this->config->edition == 'ipd' ? $this->lang->programplan->error->noProject4IPD : $this->lang->programplan->error->noProject)); if(!$projectID) $projectID = key($projects); $this->view->projects = $projects; diff --git a/module/programplan/lang/de.php b/module/programplan/lang/de.php index 54eabba071..681c466a76 100644 --- a/module/programplan/lang/de.php +++ b/module/programplan/lang/de.php @@ -148,7 +148,8 @@ $lang->programplan->error->planDrag = 'The %s stage cannot be dragged'; $lang->programplan->error->notStage = $lang->executionCommon . '/Kanban cannot create a sub stage.'; $lang->programplan->error->sameType = 'Type of the stage must be as same as parent: "%s"'; $lang->programplan->error->emptyParentName = "Contains sub stages, stage names cannot be empty."; -$lang->programplan->error->noProject = "When there are no waterfall, waterfall plus, or IPD {$lang->projectCommon} in the system, Gantt charts cannot be added."; +$lang->programplan->error->noProject = "When there are no waterfall, waterfall plus {$lang->projectCommon} in the system, Gantt charts cannot be added."; +$lang->programplan->error->noProject4IPD = "When there are no waterfall, waterfall plus, or IPD {$lang->projectCommon} in the system, Gantt charts cannot be added."; $lang->programplan->ganttBrowseType['gantt'] = 'Group by Stage'; $lang->programplan->ganttBrowseType['assignedTo'] = 'Group by AssignedTo'; diff --git a/module/programplan/lang/en.php b/module/programplan/lang/en.php index 1fdb3470c6..d5151508cd 100644 --- a/module/programplan/lang/en.php +++ b/module/programplan/lang/en.php @@ -148,7 +148,8 @@ $lang->programplan->error->planDrag = 'The %s stage cannot be dragged'; $lang->programplan->error->notStage = $lang->executionCommon . '/Kanban cannot create a sub stage.'; $lang->programplan->error->sameType = 'Type of the stage must be as same as parent: "%s"'; $lang->programplan->error->emptyParentName = "Contains sub stages, stage names cannot be empty."; -$lang->programplan->error->noProject = "When there are no waterfall, waterfall plus, or IPD {$lang->projectCommon} in the system, Gantt charts cannot be added."; +$lang->programplan->error->noProject = "When there are no waterfall, waterfall plus {$lang->projectCommon} in the system, Gantt charts cannot be added."; +$lang->programplan->error->noProject4IPD = "When there are no waterfall, waterfall plus, or IPD {$lang->projectCommon} in the system, Gantt charts cannot be added."; $lang->programplan->ganttBrowseType['gantt'] = 'Group by Stage'; $lang->programplan->ganttBrowseType['assignedTo'] = 'Group by AssignedTo'; diff --git a/module/programplan/lang/fr.php b/module/programplan/lang/fr.php index 83aae16320..cb7976fe87 100644 --- a/module/programplan/lang/fr.php +++ b/module/programplan/lang/fr.php @@ -148,7 +148,8 @@ $lang->programplan->error->planDrag = 'The %s stage cannot be dragged'; $lang->programplan->error->notStage = $lang->executionCommon . '/Kanban cannot create a sub stage.'; $lang->programplan->error->sameType = 'Type of the stage must be as same as parent: "%s"'; $lang->programplan->error->emptyParentName = "Contains sub stages, stage names cannot be empty."; -$lang->programplan->error->noProject = "When there are no waterfall, waterfall plus, or IPD {$lang->projectCommon} in the system, Gantt charts cannot be added."; +$lang->programplan->error->noProject = "When there are no waterfall, waterfall plus {$lang->projectCommon} in the system, Gantt charts cannot be added."; +$lang->programplan->error->noProject4IPD = "When there are no waterfall, waterfall plus, or IPD {$lang->projectCommon} in the system, Gantt charts cannot be added."; $lang->programplan->ganttBrowseType['gantt'] = 'Group by Stage'; $lang->programplan->ganttBrowseType['assignedTo'] = 'Group by AssignedTo'; diff --git a/module/programplan/lang/zh-cn.php b/module/programplan/lang/zh-cn.php index f4e5f6d2fc..8076fb682f 100644 --- a/module/programplan/lang/zh-cn.php +++ b/module/programplan/lang/zh-cn.php @@ -148,7 +148,8 @@ $lang->programplan->error->planDrag = '%s的阶段不可以拖动'; $lang->programplan->error->notStage = $lang->executionCommon . '/看板不支持创建子阶段'; $lang->programplan->error->sameType = '父阶段类型为"%s",阶段类型需与父阶段一致'; $lang->programplan->error->emptyParentName = "包含子阶段,阶段名称不能为空。"; -$lang->programplan->error->noProject = "系统中没有瀑布、融合瀑布、ipd{$lang->projectCommon}时,无法添加甘特图。"; +$lang->programplan->error->noProject = "系统中没有瀑布、融合瀑布{$lang->projectCommon}时,无法添加甘特图。"; +$lang->programplan->error->noProject4IPD = "系统中没有瀑布、融合瀑布、ipd{$lang->projectCommon}时,无法添加甘特图。"; $lang->programplan->ganttBrowseType['gantt'] = '按阶段分组'; $lang->programplan->ganttBrowseType['assignedTo'] = '按指派给分组';