Browse Source

internationalization

pull/3464/head
chenshihai 2 years ago
parent
commit
4da18f658d
4 changed files with 9 additions and 2 deletions
  1. +3
    -0
      options/locale/locale_en-US.ini
  2. +3
    -0
      options/locale/locale_zh-CN.ini
  3. +2
    -1
      templates/repo/modelarts/trainjob/para_manage.tmpl
  4. +1
    -1
      web_src/js/features/cloudrbanin.js

+ 3
- 0
options/locale/locale_en-US.ini View File

@@ -1263,6 +1263,9 @@ scrolled_logs_top_pls_retry = You have scrolled to the top of the log, please tr
scrolled_logs_bottom = You have scrolled to the bottom of the log
scrolled_logs_bottom_pls_retry = You have scrolled to the bottom of the log, please try again later!

canceled_operation = You have canceled the operation
successfully_deleted = Successfully deleted

debug_task_not_created = Debug task has not been created
train_task_not_created = Train task has not been created
inference_job_not_created = Inference job has not been created


+ 3
- 0
options/locale/locale_zh-CN.ini View File

@@ -1275,6 +1275,9 @@ scrolled_logs_top_pls_retry = 您已翻阅至日志顶部,请稍后再试!
scrolled_logs_bottom = 您已翻阅至日志底部
scrolled_logs_bottom_pls_retry = 您已翻阅至日志底部,请稍后再试!

canceled_operation = 您已取消操作
successfully_deleted = 删除成功

debug_task_not_created = 未创建过调试任务
train_task_not_created = 未创建过训练任务
inference_job_not_created = 未创建过推理任务


+ 2
- 1
templates/repo/modelarts/trainjob/para_manage.tmpl View File

@@ -107,6 +107,7 @@

<script>
// 删除时用户确认
var lang_canceled_operation = {{.i18n.Tr "repo.canceled_operation"}};
function assertDelete(obj) {
if (obj.style.color == "rgb(204, 204, 204)") {
return
@@ -124,7 +125,7 @@
},
onHidden: function() {
if (flag == false) {
$('.alert').html('您已取消操作').removeClass('alert-success').addClass('alert-danger').show().delay(1500).fadeOut();
$('.alert').html(lang_canceled_operation).removeClass('alert-success').addClass('alert-danger').show().delay(1500).fadeOut();
}
}
})


+ 1
- 1
web_src/js/features/cloudrbanin.js View File

@@ -267,7 +267,7 @@ export default async function initCloudrain() {
onHidden: function () {
if (flag == false) {
$(".alert")
.html("您已取消操作")
.html(i18n.canceled_operation)
.removeClass("alert-success")
.addClass("alert-danger")
.show()


Loading…
Cancel
Save