Browse Source

国际化信息提交。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2767/head
zouap 2 years ago
parent
commit
0e12257649
4 changed files with 26 additions and 15 deletions
  1. +7
    -2
      options/locale/locale_en-US.ini
  2. +6
    -0
      options/locale/locale_zh-CN.ini
  3. +2
    -2
      templates/repo/modelmanage/convertIndex.tmpl
  4. +11
    -11
      templates/repo/modelmanage/convertshowinfo.tmpl

+ 7
- 2
options/locale/locale_en-US.ini View File

@@ -1231,7 +1231,7 @@ model.manage.version = Version
model.manage.label = Label model.manage.label = Label
model.manage.size = Size model.manage.size = Size
model.manage.create_time = Create Time model.manage.create_time = Create Time
model.manage.Description = Description
model.manage.description = Description
model.manage.Accuracy = Accuracy model.manage.Accuracy = Accuracy
model.manage.F1 = F1 model.manage.F1 = F1
model.manage.Precision = Precision model.manage.Precision = Precision
@@ -1279,7 +1279,12 @@ modelconvert.inputshapetip=For example: 1,1,32,32, corresponding to the input da
modelconvert.netoutputdata=Network output data type modelconvert.netoutputdata=Network output data type
modelconvert.taskdesc=Task description modelconvert.taskdesc=Task description
modelconvert.newtask=New modelconvert.newtask=New
modelconvert.createtask=Create model conversion task
modelconvert.createtask=Create model transformation task
modelconvert.taskurlname=Model transformation task
log_scroll_start=Scroll to top
log_scroll_end=Scroll to bottom
modelconvert.tasknameempty=Please enter a task name.
modelconvert.inputshapeerror=Format input error, please input such as: 1,1,32,32, corresponding to the input data format.


modelconvert.manage.create_error1=A model transformation task with the same name already exists. modelconvert.manage.create_error1=A model transformation task with the same name already exists.
modelconvert.manage.create_error2=Only one running model transformation task can be created. modelconvert.manage.create_error2=Only one running model transformation task can be created.


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

@@ -1294,6 +1294,12 @@ modelconvert.taskdesc=任务描述
modelconvert.newtask=新建任务 modelconvert.newtask=新建任务
modelconvert.createtask=创建模型转换任务 modelconvert.createtask=创建模型转换任务


modelconvert.taskurlname=模型转换任务
log_scroll_start=滚动到顶部
log_scroll_end=滚动到底部
modelconvert.tasknameempty=请输入任务名称。
modelconvert.inputshapeerror=格式输入错误,请输入如:1,1,32,32,与输入数据格式对应。

modelconvert.manage.create_error1=相同的名称模型转换任务已经存在。 modelconvert.manage.create_error1=相同的名称模型转换任务已经存在。
modelconvert.manage.create_error2=只能创建一个正在运行的模型转换任务。 modelconvert.manage.create_error2=只能创建一个正在运行的模型转换任务。
modelconvert.manage.model_not_exist=选择的模型不存在。 modelconvert.manage.model_not_exist=选择的模型不存在。


+ 2
- 2
templates/repo/modelmanage/convertIndex.tmpl View File

@@ -356,7 +356,7 @@
data['name']= $('#model_convert_name').val() data['name']= $('#model_convert_name').val()


if(data['name']==""){ if(data['name']==""){
$('.ui.error.message').text("请输入任务名称。")
$('.ui.error.message').text("{{.i18n.Tr "repo.modelconvert.tasknameempty"}}")
$('.ui.error.message').css('display','block') $('.ui.error.message').css('display','block')
$("#task_name").addClass("error") $("#task_name").addClass("error")
return false return false
@@ -370,7 +370,7 @@
data['inputshape']= $('#inputshape').val(); data['inputshape']= $('#inputshape').val();


if(inputshapeNotValid(data['inputshape'])){ if(inputshapeNotValid(data['inputshape'])){
$('.ui.error.message').text("格式输入错误,请输入如:1,1,32,32,与输入数据格式对应。")
$('.ui.error.message').text("{{.i18n.Tr "repo.modelconvert.inputshapeerror"}}")
$('.ui.error.message').css('display','block') $('.ui.error.message').css('display','block')
$("#inputshape_div").addClass("error") $("#inputshape_div").addClass("error")
return false return false


+ 11
- 11
templates/repo/modelmanage/convertshowinfo.tmpl View File

@@ -173,7 +173,7 @@ td, th {
<h4 class="ui header" id="vertical-segment"> <h4 class="ui header" id="vertical-segment">
<div class="ui breadcrumb"> <div class="ui breadcrumb">
<a class="section" href="{{$.RepoLink}}/modelmanage/convert_model"> <a class="section" href="{{$.RepoLink}}/modelmanage/convert_model">
模型转换任务
{{.i18n.Tr "repo.modelconvert.taskurlname"}}
</a> </a>
<div class="divider"> / </div> <div class="divider"> / </div>
<div class="active section">{{.Name}}</div> <div class="active section">{{.Name}}</div>
@@ -243,7 +243,7 @@ td, th {


<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
输入张量形状
{{$.i18n.Tr "repo.modelconvert.inputshape"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
@@ -255,7 +255,7 @@ td, th {
<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
输入数据格式
{{$.i18n.Tr "repo.modelconvert.inputdataformat"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
@@ -291,7 +291,7 @@ td, th {


<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
网络输出数据类型
{{$.i18n.Tr "repo.modelconvert.netoutputdata"}}
</td> </td>
<td class="ti-text-form-content"> <td class="ti-text-form-content">
@@ -311,7 +311,7 @@ td, th {
<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
模型名称
{{$.i18n.Tr "repo.modelconvert.modelname"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
@@ -324,7 +324,7 @@ td, th {


<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
模型版本
{{$.i18n.Tr "repo.modelconvert.modelversion"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
@@ -337,7 +337,7 @@ td, th {


<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
模型文件
{{$.i18n.Tr "repo.model.manage.modelfile"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
@@ -350,7 +350,7 @@ td, th {


<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
原模型框架
{{$.i18n.Tr "repo.modelconvert.srcengine"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
@@ -362,7 +362,7 @@ td, th {


<tr class="ti-no-ng-animate"> <tr class="ti-no-ng-animate">
<td class="ti-no-ng-animate ti-text-form-label text-width80"> <td class="ti-no-ng-animate ti-text-form-label text-width80">
转换后格式
{{$.i18n.Tr "repo.modelconvert.outputformat"}}
</td> </td>


<td class="ti-text-form-content"> <td class="ti-text-form-content">
@@ -439,10 +439,10 @@ td, th {
<div class="ui tab" data-tab="five"> <div class="ui tab" data-tab="five">
<div style="position: relative;"> <div style="position: relative;">
<span> <span>
<a title="滚动到顶部" style="position: absolute; right: -32px;cursor: pointer;" class="log_top" data-version="V0001"><i class="icon-to-top"></i></a>
<a title="{{$.i18n.Tr "repo.log_scroll_start"}}" style="position: absolute; right: -32px;cursor: pointer;" class="log_top" data-version="V0001"><i class="icon-to-top"></i></a>
</span> </span>
<span> <span>
<a title="滚动到底部" style="position: absolute; bottom: 10px;right: -32px;cursor: pointer;" class="log_bottom" data-version="V0001"><i class="icon-to-bottom"></i></a>
<a title="{{$.i18n.Tr "repo.log_scroll_end"}}" style="position: absolute; bottom: 10px;right: -32px;cursor: pointer;" class="log_bottom" data-version="V0001"><i class="icon-to-bottom"></i></a>
</span> </span>
<div id="log_npu_message" class="ui message message" style="display: none;"> <div id="log_npu_message" class="ui message message" style="display: none;">
<div id="log_npu_header"></div> <div id="log_npu_header"></div>


Loading…
Cancel
Save