* Add lang item and fix codes format.

This commit is contained in:
wangjianhua
2022-10-09 09:43:57 +08:00
parent 804cf64783
commit 7edfc6d6c8
8 changed files with 12 additions and 7 deletions
+6 -6
View File
@@ -2246,7 +2246,7 @@ class project extends control
}
/**
* Link project and repo.
* Link projects and code repositories.
*
* @param int $projectID
* @access public
@@ -2261,17 +2261,17 @@ class project extends control
$postData = fixer::input('post')->setDefault('repos', array())->get();
$this->project->updateRepoRelations($projectID, $postData->repos);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => $this->lang->project->linkRepoFailed));
$locateLink = inLink('manageRepo', "projectID=$projectID");
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $locateLink));
}
$this->view->title = $this->lang->project->manageRepo;
$this->view->allRepos = $this->dao->select('*')->from(TABLE_REPO)->where('deleted')->eq(0)->fetchPairs('id', 'name');
$this->view->linkedRepos = $this->project->linkedRepoPairs($projectID);
$this->view->title = $this->lang->project->manageRepo;
$this->view->allRepos = $this->dao->select('*')->from(TABLE_REPO)->where('deleted')->eq(0)->fetchPairs('id', 'name');
$this->view->linkedRepos = $this->project->linkedRepoPairs($projectID);
$this->view->unlinkedRepos = array();
foreach($this->view->allRepos as $repoID => $repoName) if(!isset($this->view->linkedRepos[$repoID])) $this->view->unlinkedRepos[$repoID] = $repoName;
$this->display();
+1
View File
@@ -209,6 +209,7 @@ $lang->project->productTip = 'After clicking New Product, the projec
$lang->project->noDevStage = 'There is no R&D stage under this project, or you do not have access permissions. The creation of builds is not supported at the moment.';
$lang->project->budgetOverrun = "The project's budget exceeds the remaining budget of the parent program:";
$lang->project->disabledInputTip = 'Please cancel %s first';
$lang->project->linkRepoFailed = 'Failed to link projects and code repositories.';
$lang->project->tenThousand = '';
$lang->project->hundredMillion = 'Hundred Million';
+1
View File
@@ -209,6 +209,7 @@ $lang->project->productTip = 'After clicking New Product, the projec
$lang->project->noDevStage = 'There is no R&D stage under this project, or you do not have access permissions. The creation of builds is not supported at the moment.';
$lang->project->budgetOverrun = "The project's budget exceeds the remaining budget of the parent program:";
$lang->project->disabledInputTip = 'Please cancel %s first';
$lang->project->linkRepoFailed = 'Failed to link projects and code repositories.';
$lang->project->tenThousand = 'Ten Thousand';
$lang->project->hundredMillion = 'Hundred Million';
+1
View File
@@ -209,6 +209,7 @@ $lang->project->productTip = 'After clicking New Product, the projec
$lang->project->noDevStage = "Il n'y a pas de phase R&D dans ce projet, ou vous n'avez pas la permission d'accès. La version ne peut pas être créée pour le moment.";
$lang->project->budgetOverrun = "Le budget du projet a dépassé le budget restant du programme parent:";
$lang->project->disabledInputTip = 'Please cancel %s first';
$lang->project->linkRepoFailed = 'Failed to link projects and code repositories.';
$lang->project->tenThousand = '';
$lang->project->hundredMillion = 'Hundred Million';
+1
View File
@@ -127,6 +127,7 @@ $lang->project->multiLinkedProductsTip = 'The following products linked to this
$lang->project->linkStoryByPlanTips = "This action will associate all {$lang->SRCommon} under the selected plan to this project";
$lang->project->createExecution = "There is no {$lang->executionCommon} under this project, please create {$lang->executionCommon} first";
$lang->project->noDevStage = 'There is no R&D stage under this project, or you do not have access permissions. The creation of builds is not supported at the moment.';
$lang->project->linkRepoFailed = 'Failed to link projects and code repositories.';
$lang->project->tenThousand = '';
+1
View File
@@ -209,6 +209,7 @@ $lang->project->productTip = '点击新建产品后,项目将不
$lang->project->noDevStage = '该项目下没有研发类型的阶段,或者您没有权限访问,暂时不支持创建版本。';
$lang->project->budgetOverrun = '项目的预算超出了父项目集的剩余预算:';
$lang->project->disabledInputTip = '请先取消%s';
$lang->project->linkRepoFailed = '关联代码库失败';
$lang->project->tenThousand = '万';
$lang->project->hundredMillion = '亿';
+1
View File
@@ -58,6 +58,7 @@ $lang->project->copyTeamTitle = '選擇一個項目團隊來複制';
$lang->project->manageRepo = '關聯代碼庫';
$lang->project->linkedRepo = '已關聯代碼庫';
$lang->project->unlinkedRepo = '未關聯代碼庫';
$lang->project->linkRepoFailed = '關聯代碼庫失敗。';
/* Fields. */
$lang->project->common = '項目';
-1
View File
@@ -2889,7 +2889,6 @@ class projectModel extends model
->andWhere('BType')->eq('repo')
->fetchPairs('BID', 'BID');
$repos = $this->dao->select('*')->from(TABLE_REPO)
->where('deleted')->eq(0)
->andWhere('id')->in($repoIDList)