* finish task #3341.

This commit is contained in:
wangyidong
2017-11-09 15:11:08 +08:00
parent ced6585aec
commit c2e05057f5
6 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -601,7 +601,7 @@ if(isset($config->global->flow) and $config->global->flow == 'onlyStory')
unset($lang->product->menu->doc);
/* Rename product module. */
$lang->menu->product = 'Product|product|index';
$lang->menu->product = "{$lang->productCommon}|product|index";
/* Adjust search items. */
unset($lang->searchObjects['bug']);
@@ -665,7 +665,7 @@ if(isset($config->global->flow) and $config->global->flow == 'onlyTest')
unset($lang->menuOrder[30]);
/* Rename product module. */
$lang->menu->product = 'Product|product|index';
$lang->menu->product = "{$lang->productCommon}|product|index";
/* Adjust sub menu of my dashboard. */
unset($lang->my->menu->task);
+2 -2
View File
@@ -601,7 +601,7 @@ if(isset($config->global->flow) and $config->global->flow == 'onlyStory')
unset($lang->product->menu->doc);
/* Rename product module. */
$lang->menu->product = '产品|product|index';
$lang->menu->product = "{$lang->productCommon}|product|index";
/* Adjust search items. */
unset($lang->searchObjects['bug']);
@@ -665,7 +665,7 @@ if(isset($config->global->flow) and $config->global->flow == 'onlyTest')
unset($lang->menuOrder[30]);
/* Rename product module. */
$lang->menu->product = '产品|product|index';
$lang->menu->product = "{$lang->productCommon}|product|index";
/* Adjust sub menu of my dashboard. */
unset($lang->my->menu->task);
+1 -1
View File
@@ -402,7 +402,7 @@ class customModel extends model
* @access public
* @return array
*/
public function getDBFields($moduleName, $method = '')
public function getFormFields($moduleName, $method = '')
{
$fields = array();
$moduleLang = $this->lang->$moduleName;
+2 -2
View File
@@ -33,13 +33,13 @@
<tr>
<th class='w-100px'>
<?php
$fields = $this->custom->getDBFields($moduleName, $method);
$fields = $this->custom->getFormFields($moduleName, $method);
if($moduleName == 'testsuite' and $method == 'createlib') $method = 'createLib';
if($moduleName == 'testsuite' and $method == 'createcase')
{
$this->app->loadLang('testcase');
$fields = $this->custom->getDBFields('testcase', $method);
$fields = $this->custom->getFormFields('testcase', $method);
$method = 'createCase';
}
echo $lang->$moduleName->$method;
+1 -1
View File
@@ -11,7 +11,7 @@
*/
$lang->product->common = $lang->productCommon . 'View';
$lang->product->index = $lang->productCommon . "Home";
$lang->product->browse = "{$lang->productCommon}s";
$lang->product->browse = "Story List";
$lang->product->dynamic = "Dynamic";
$lang->product->view = "{$lang->productCommon}s";
$lang->product->edit = "Edit {$lang->productCommon}";
+1 -1
View File
@@ -11,7 +11,7 @@
*/
$lang->product->common = $lang->productCommon . '视图';
$lang->product->index = $lang->productCommon . "首页";
$lang->product->browse = "浏览{$lang->productCommon}";
$lang->product->browse = "需求列表";
$lang->product->dynamic = "动态";
$lang->product->view = "{$lang->productCommon}概况";
$lang->product->edit = "编辑{$lang->productCommon}";