diff --git a/db/update15.0.sql b/db/update15.0.sql index 2f16a7708b..6bdefddd2b 100644 --- a/db/update15.0.sql +++ b/db/update15.0.sql @@ -339,7 +339,9 @@ REPLACE INTO `zt_lang` (`lang`, `module`, `section`, `key`, `value`, `system`) V ('zh-cn', 'custom', 'URSRList', '2', '{\"SRName\":\"\\u7814\\u53d1\\u9700\\u6c42\",\"URName\":\"\\u7528\\u6237\\u9700\\u6c42\"}', '1'), ('zh-cn', 'custom', 'URSRList', '3', '{\"SRName\":\"\\u8f6f\\u9700\",\"URName\":\"\\u7528\\u9700\"}', '1'), ('zh-cn', 'custom', 'URSRList', '4', '{\"SRName\":\"\\u6545\\u4e8b\",\"URName\":\"\\u53f2\\u8bd7\"}', '1'), -('zh-cn', 'custom', 'URSRList', '5', '{\"SRName\":\"\\u9700\\u6c42\",\"URName\":\"\\u7528\\u6237\\u9700\\u6c42\"}', '1'); +('zh-cn', 'custom', 'URSRList', '5', '{\"SRName\":\"\\u9700\\u6c42\",\"URName\":\"\\u7528\\u6237\\u9700\\u6c42\"}', '1'), +('en', 'custom', 'URSRList', '1', '{\"SRName\":\"Story\",\"URName\":\"Epic\"}', '0'), +('en', 'custom', 'URSRList', '2', '{\"SRName\":\"Story\",\"URName\":\"Requirement\"}', '0'); REPLACE INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', '', 'CRProduct', '1'); REPLACE INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', '', 'CRExecution', '1'); diff --git a/db/zentao.sql b/db/zentao.sql index 8c642ac25c..ef21a26c0f 100644 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -4134,13 +4134,13 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (11,'user','view'), (12,'my','limited'); -INSERT INTO `zt_lang` (`lang`, `module`, `section`, `key`, `value`, `system`) VALUES +REPLACE INTO `zt_lang` (`lang`, `module`, `section`, `key`, `value`, `system`) VALUES ('zh-cn', 'custom', 'URSRList', '1', '{\"SRName\":\"\\u8f6f\\u4ef6\\u9700\\u6c42\",\"URName\":\"\\u7528\\u6237\\u9700\\u6c42\"}', '1'), ('zh-cn', 'custom', 'URSRList', '2', '{\"SRName\":\"\\u7814\\u53d1\\u9700\\u6c42\",\"URName\":\"\\u7528\\u6237\\u9700\\u6c42\"}', '1'), ('zh-cn', 'custom', 'URSRList', '3', '{\"SRName\":\"\\u8f6f\\u9700\",\"URName\":\"\\u7528\\u9700\"}', '1'), ('zh-cn', 'custom', 'URSRList', '4', '{\"SRName\":\"\\u6545\\u4e8b\",\"URName\":\"\\u53f2\\u8bd7\"}', '1'), ('zh-cn', 'custom', 'URSRList', '5', '{\"SRName\":\"\\u9700\\u6c42\",\"URName\":\"\\u7528\\u6237\\u9700\\u6c42\"}', '1'), -('en', 'custom', 'URSRList', '3', '{\"SRName\":\"Story\",\"URName\":\"Epic\"}', '0'), +('en', 'custom', 'URSRList', '1', '{\"SRName\":\"Story\",\"URName\":\"Epic\"}', '0'), ('en', 'custom', 'URSRList', '2', '{\"SRName\":\"Story\",\"URName\":\"Requirement\"}', '0'); INSERT INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'custom', '', 'hourPoint', '1'); diff --git a/framework/router.class.php b/framework/router.class.php index d04fb6d4a3..36d4fce41e 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -244,7 +244,8 @@ class router extends baseRouter if($this->dbh and !empty($this->config->db->name) and !defined('IN_UPGRADE')) { /* Get story concept in project and product. */ - $URSRList = $this->dbh->query('SELECT `key`, `value` FROM' . TABLE_LANG . "WHERE module = 'custom' and section = 'URSRList' and `key` = \"{$config->URSR}\"")->fetchAll(); + $URSRList = $this->dbh->query('SELECT `key`, `value` FROM' . TABLE_LANG . "WHERE module = 'custom' and section = 'URSRList' and `key` = \"{$this->clientLang}\"")->fetchAll(); + if(empty($URSRList)) $URSRList = $this->dbh->query('SELECT `key`, `value` FROM' . TABLE_LANG . "WHERE module = 'custom' and section = 'URSRList' and `key` = \"{$config->URSR}\"")->fetchAll(); /* Get UR pairs and SR pairs. */ $URPairs = array(); @@ -257,8 +258,8 @@ class router extends baseRouter } /* Set default story concept and init UR and SR concept. */ - $lang->URCommon = zget($URPairs, $config->URSR); - $lang->SRCommon = zget($SRPairs, $config->URSR); + $lang->URCommon = isset($URPairs[$config->URSR]) ? $URPairs[$config->URSR] : reset($URPairs); + $lang->SRCommon = isset($SRPairs[$config->URSR]) ? $URPairs[$config->URSR] : reset($SRPairs); } } diff --git a/module/block/control.php b/module/block/control.php index 613c73e323..4d2261daef 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -261,6 +261,10 @@ class block extends control { $block->moreLink = $this->createLink('project', 'dynamic', "projectID=$projectID&type=all"); } + elseif($moduleName == 'project' and $method == 'testtask') + { + $block->moreLink = $this->createLink('project', 'testtask', "projectID=$projectID"); + } } elseif($block->block == 'dynamic') { @@ -595,6 +599,7 @@ class block extends control $account = $this->app->user->account; $type = $this->params->type; + $this->app->loadLang('execution'); $this->view->tasks = $this->loadModel('task')->getUserTasks($account, $type, $this->viewType == 'json' ? 0 : (int)$this->params->count, null, $this->params->orderBy); } diff --git a/module/block/lang/de.php b/module/block/lang/de.php index b8963e12aa..e585018161 100644 --- a/module/block/lang/de.php +++ b/module/block/lang/de.php @@ -47,7 +47,7 @@ $lang->block->myExecution = 'Unclosed ' . $lang->executionCommon . 's'; $lang->block->myProduct = 'Unclosed ' . $lang->productCommon . 's'; $lang->block->delayed = 'Verspätet'; $lang->block->noData = 'Keine Daten für diesen Bericht.'; -$lang->block->emptyTip = 'Keine Information'; +$lang->block->emptyTip = 'No Data.'; $lang->block->createdTodos = 'Todos Created'; $lang->block->createdRequirements = 'UR/Epics Created'; $lang->block->createdStories = 'SR/Stories Created'; diff --git a/module/block/lang/vi.php b/module/block/lang/vi.php index bee6d0a2eb..4090bb741f 100644 --- a/module/block/lang/vi.php +++ b/module/block/lang/vi.php @@ -47,7 +47,7 @@ $lang->block->myExecution = 'Unclosed ' . $lang->executionCommon . 's'; $lang->block->myProduct = 'Unclosed ' . $lang->productCommon . 's'; $lang->block->delayed = 'Tạm ngưng'; $lang->block->noData = 'Không có dữ liệu trên loại báo cáo này.'; -$lang->block->emptyTip = 'Không có dữ liệu.'; +$lang->block->emptyTip = 'No Data.'; $lang->block->createdTodos = 'Todos Created'; $lang->block->createdRequirements = 'UR/Epics Created'; $lang->block->createdStories = 'SR/Stories Created'; diff --git a/module/block/lang/zh-cn.php b/module/block/lang/zh-cn.php index 8af28e57a7..e21a448b05 100644 --- a/module/block/lang/zh-cn.php +++ b/module/block/lang/zh-cn.php @@ -47,7 +47,7 @@ $lang->block->myExecution = '未关闭的' . $lang->executionCommon; $lang->block->myProduct = '未关闭的' . $lang->productCommon; $lang->block->delayed = '已延期'; $lang->block->noData = '当前统计类型下暂无数据'; -$lang->block->emptyTip = '暂无信息'; +$lang->block->emptyTip = '暂无数据'; $lang->block->createdTodos = '创建的待办数'; $lang->block->createdRequirements = '创建的' . $lang->URCommon . '数'; $lang->block->createdStories = '创建的' . $lang->SRCommon . '数'; @@ -527,7 +527,7 @@ $lang->block->modules['project']->moreLinkList->cmmiestimate = 'workestimation $lang->block->modules['project']->moreLinkList->cmmiissue = 'issue|browse|'; $lang->block->modules['project']->moreLinkList->cmmirisk = 'risk|browse|'; $lang->block->modules['project']->moreLinkList->scrumlist = 'project|execution|'; -$lang->block->modules['project']->moreLinkList->scrumtest = 'testtask|browse|'; +$lang->block->modules['project']->moreLinkList->scrumtest = 'project|testtask|'; $lang->block->modules['project']->moreLinkList->scrumproduct = 'product|all|'; $lang->block->modules['project']->moreLinkList->sprint = 'project|execution|'; $lang->block->modules['project']->moreLinkList->projectdynamic = 'project|dynamic|'; diff --git a/module/block/lang/zh-tw.php b/module/block/lang/zh-tw.php index ed65f4cda8..3f23fa21e7 100644 --- a/module/block/lang/zh-tw.php +++ b/module/block/lang/zh-tw.php @@ -46,7 +46,7 @@ $lang->block->myExecution = '未關閉的' . $lang->executionCommon; $lang->block->myProduct = '未關閉的' . $lang->productCommon; $lang->block->delayed = '已延期'; $lang->block->noData = '當前統計類型下暫無數據'; -$lang->block->emptyTip = '暫無信息'; +$lang->block->emptyTip = '暫無數據'; $lang->block->createdTodos = '創建的待辦數'; $lang->block->createdRequirements = '創建的' . $lang->URCommon . '數'; $lang->block->createdStories = '創建的' . $lang->SRCommon . '數'; diff --git a/module/block/view/issueblock.html.php b/module/block/view/issueblock.html.php index 137e131af0..995bcad94c 100644 --- a/module/block/view/issueblock.html.php +++ b/module/block/view/issueblock.html.php @@ -4,7 +4,7 @@