* finish task #3341.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}";
|
||||
|
||||
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user