From 3f6785cdca6242d2fcfcec92e89b0be4abad0b4d Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Fri, 11 Mar 2022 17:43:09 +0800 Subject: [PATCH] #654 add English version of debug task create page --- options/locale/locale_en-US.ini | 21 ++++++++++++ options/locale/locale_zh-CN.ini | 23 ++++++++++++- templates/repo/cloudbrain/new.tmpl | 70 +++++++++++++++++++------------------- templates/repo/debugjob/index.tmpl | 56 +++++++++++++++--------------- 4 files changed, 106 insertions(+), 64 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index fdd3f7f94..cb8fd7e15 100755 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -850,6 +850,8 @@ model_rename=Duplicate model name, please modify model name. debug=Debug stop=Stop delete=Delete +more=More +gpu_type_all=All model_download=Model Download submit_image=Submit Image download=Download @@ -879,6 +881,8 @@ cloudbrain_status_createtime = Status/Createtime cloudbrain_status_runtime = Running Time cloudbrain_jobname_err=Name must start with a lowercase letter or number,can include lowercase letter,number,_ and -,can not end with _, and can be up to 36 characters long. cloudbrain_query_fail=Failed to query cloudbrain information. +cloudbrain.mirror_tag = Mirror Tag +cloudbrain.mirror_description = Mirror Description record_begintime_get_err=Can not get the record begin time. parameter_is_wrong=The input parameter is wrong. @@ -2796,3 +2800,20 @@ foot.help = help foot.copyright= Copyright: New Generation Artificial Intelligence Open Source Open Platform (OpenI) Platform_Tutorial = Tutorial foot.advice_feedback = Feedback + +[cloudbrain] +compute_resource = Computing resources +task_name = Task name +task_type = Task type +gpu_type = GPU type +mirror = Mirror +dataset = Dataset +resource_specification = Resource specification +dataset_storage_path = Dataset storage path +model_storage_path = Model storage path +code_storage_path = Code storage path +benchmark_path = Benchmark script path +snn4imagenet_path = Snn4imagenet script path +brainscore_path = Brainscore script path +start_command = Start command +choose_mirror = select mirror diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 3bce2aa20..47e5b8eba 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -855,6 +855,8 @@ debug=调试 debug_again=再次调试 stop=停止 delete=删除 +more=更多 +gpu_type_all=全部 model_download=结果下载 submit_image=提交镜像 download=模型下载 @@ -883,6 +885,8 @@ cloudbrain_status_createtime=状态/创建时间 cloudbrain_status_runtime = 运行时长 cloudbrain_jobname_err=只能以小写字母或数字开头且只包含小写字母、数字、_和-,不能以_结尾,最长36个字符。 cloudbrain_query_fail=查询云脑任务失败。 +cloudbrain.mirror_tag = 镜像标签 +cloudbrain.mirror_description = 镜像描述 record_begintime_get_err=无法获取统计开始时间。 parameter_is_wrong=输入参数错误,请检查输入参数。 @@ -2094,7 +2098,7 @@ team_permission_desc=权限 team_unit_desc=允许访问项目单元 team_unit_disabled=(已禁用) selected_couse=精选课程 -release_course = 发布课程 +release_course = 发布课程 all_keywords=全部关键字 all_org_topics=全部 max_selectedPro= 最多可选9个公开项目 @@ -2804,3 +2808,20 @@ foot.help=帮助 foot.copyright= 版权所有:新一代人工智能开源开放平台(OpenI) Platform_Tutorial=新手指引 foot.advice_feedback = 意见反馈 + +[cloudbrain] +compute_resource = 计算资源 +task_name = 任务名称 +task_type = 任务类型 +gpu_type = GPU类型 +mirror = 镜像 +dataset = 数据集 +resource_specification = 资源规格 +dataset_storage_path = 数据集存放路径 +model_storage_path = 模型存放路径 +code_storage_path = 代码存放路径 +benchmark_path = benchmark脚本存放路径 +snn4imagenet_path = snn4imagenet脚本存放路径 +brainscore_path = brainscore脚本存放路径 +start_command = 启动命令 +choose_mirror = 选择镜像 diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl index f7fcda2bc..126fa1d9b 100755 --- a/templates/repo/cloudbrain/new.tmpl +++ b/templates/repo/cloudbrain/new.tmpl @@ -1,7 +1,7 @@ {{template "base/head" .}} @@ -208,10 +208,10 @@ {{template "repo/header" .}} {{template "base/alert" .}} - +
- +
- {{if .Permission.CanWrite $.UnitTypeCloudBrain}} + {{if .Permission.CanWrite $.UnitTypeCloudBrain}} {{$.i18n.Tr "repo.modelarts.train_job.new_debug"}} {{else}} {{$.i18n.Tr "repo.modelarts.train_job.new_debug"}} @@ -272,15 +272,15 @@ {{$.i18n.Tr "repo.modelarts.createtime"}}
- {{$.i18n.Tr "repo.modelarts.computing_resources"}} + {{$.i18n.Tr "repo.modelarts.computing_resources"}}
- {{$.i18n.Tr "repo.cloudbrain_creator"}} + {{$.i18n.Tr "repo.cloudbrain_creator"}}
{{$.i18n.Tr "repo.cloudbrain_operate"}}
-
+
{{range .Tasks}}
@@ -313,7 +313,7 @@ {{end}}
-
+
{{$.CsrfTokenHtml}} @@ -371,11 +371,11 @@ {{$.i18n.Tr "repo.delete"}} {{end}} -
-
+ +