Fix the translate text of quota

Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
Yogi_Wang 2019-07-30 18:30:24 +08:00
parent 3dcecf7701
commit 5d9632549b
6 changed files with 10 additions and 9 deletions

View File

@ -64,8 +64,9 @@ export class ProjectQuotasComponent implements OnChanges {
private router: Router,
private errorHandler: ErrorHandler) { }
editQuota(quotaHardLimitValue: QuotaHardLimitInterface) {
const defaultTexts = [this.translate.get('QUOTA.EDIT_PROJECT_QUOTAS'), this.translate.get('QUOTA.SET_QUOTAS')
editQuota(quotaHardLimitValue: Quota) {
const defaultTexts = [this.translate.get('QUOTA.EDIT_PROJECT_QUOTAS')
, this.translate.get('QUOTA.SET_QUOTAS', { params: quotaHardLimitValue.ref.name })
, this.translate.get('QUOTA.COUNT_QUOTA'), this.translate.get('QUOTA.STORAGE_QUOTA')];
forkJoin(...defaultTexts).subscribe(res => {
const defaultTextsObj = {

View File

@ -976,7 +976,7 @@
"PROJECT_QUOTA_DEFAULT_DISK": "Default disk space per project",
"EDIT_PROJECT_QUOTAS": "Edit Project Quotas",
"EDIT_DEFAULT_PROJECT_QUOTAS": "Edit Default Project Quotas",
"SET_QUOTAS": "Set the project quotas for project 'library'",
"SET_QUOTAS": "Set the project quotas for project '{{params}}'",
"SET_DEFAULT_QUOTAS": "Set the default project quotas when creating new projects",
"COUNT_QUOTA": "Artifact count",
"COUNT_DEFAULT_QUOTA": "Default artifact count",

View File

@ -977,7 +977,7 @@
"PROJECT_QUOTA_DEFAULT_DISK": "Default disk space per project",
"EDIT_PROJECT_QUOTAS": "Edit Project Quotas",
"EDIT_DEFAULT_PROJECT_QUOTAS": "Edit Default Project Quotas",
"SET_QUOTAS": "Set the project quotas for project 'library'",
"SET_QUOTAS": "Set the project quotas for project '{{params}}'",
"SET_DEFAULT_QUOTAS": "Set the default project quotas when creating new projects",
"COUNT_QUOTA": "Count quota",
"COUNT_DEFAULT_QUOTA": "Default count quota",

View File

@ -949,7 +949,7 @@
"PROJECT_QUOTA_DEFAULT_DISK": "Default disk space per project",
"EDIT_PROJECT_QUOTAS": "Edit Project Quotas",
"EDIT_DEFAULT_PROJECT_QUOTAS": "Edit Default Project Quotas",
"SET_QUOTAS": "Set the project quotas for project 'library'",
"SET_QUOTAS": "Set the project quotas for project '{{params}}'",
"SET_DEFAULT_QUOTAS": "Set the default project quotas when creating new projects",
"COUNT_QUOTA": "Count quota",
"COUNT_DEFAULT_QUOTA": "Default count quota",

View File

@ -968,7 +968,7 @@
"PROJECT_QUOTA_DEFAULT_DISK": "Default disk space per project",
"EDIT_PROJECT_QUOTAS": "Edit Project Quotas",
"EDIT_DEFAULT_PROJECT_QUOTAS": "Edit Default Project Quotas",
"SET_QUOTAS": "Set the project quotas for project 'library'",
"SET_QUOTAS": "Set the project quotas for project '{{params}}'",
"SET_DEFAULT_QUOTAS": "Set the default project quotas when creating new projects",
"COUNT_QUOTA": "Count quota",
"COUNT_DEFAULT_QUOTA": "Default count quota",

View File

@ -682,11 +682,11 @@
},
"SUMMARY": {
"QUOTAS": "容量",
"PROJECT_REPOSITORY": "项目镜像",
"PROJECT_REPOSITORY": "项目镜像仓库",
"PROJECT_HELM_CHART": "项目 Helm Chart",
"PROJECT_MEMBER": "项目成员",
"PROJECT_QUOTAS": "项目容量",
"ARTIFACT_COUNT": "工件计数",
"ARTIFACT_COUNT": "Artifact 数量",
"STORAGE_CONSUMPTION": "存储消耗",
"ADMIN": "管理员",
"MASTER": "维护人员",
@ -975,7 +975,7 @@
"PROJECT_QUOTA_DEFAULT_DISK": "每个项目的默认磁盘空间",
"EDIT_PROJECT_QUOTAS": "修改项目容量",
"EDIT_DEFAULT_PROJECT_QUOTAS": "修改项目默认配额",
"SET_QUOTAS": "设置项目“library”的项目配额",
"SET_QUOTAS": "设置项目“{{params}}”的项目配额",
"SET_DEFAULT_QUOTAS": "创建新项目时设置默认项目配额",
"COUNT_QUOTA": "配额数量",
"COUNT_DEFAULT_QUOTA": "默认配额数量",