#2774 中英文修改

Merged
chenshihai merged 4 commits from fix-2764 into V20220830 1 year ago
  1. +7
    -6
      options/locale/locale_en-US.ini
  2. +1
    -0
      options/locale/locale_zh-CN.ini
  3. +2
    -1
      templates/repo/attachment/upload.tmpl
  4. +1
    -1
      templates/repo/datasets/index.tmpl
  5. +3
    -1
      web_src/js/components/MinioUploader.vue
  6. +83
    -82
      web_src/js/features/i18nVue.js

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

@@ -923,9 +923,10 @@ select_task = Select Research Direction/Application Area
dataset_name_tooltips = Please enter letters, numbers, _ and - up to 100 characters.
dataset_no_create = No dataset has been created yet
dataset_explain = Dataset: CloudBrain I provides CPU/GPU resources, Cloudbrain II provides Ascend NPU resources, and the data set used for debugging also needs to be uploaded to the corresponding environment;
dataset_instructions_for_use = Instructions for use: You can refer to Qizhi AI Collaboration Platform
dataset_camp_course = Newcomer Training Camp Course;
dataset_instructions_for_use = Instructions for use: You can refer to Openi AI Collaboration Platform
dataset_camp_course = Newcomer Training Camp Course;
dataset_upload = Upload
dataset_upload_status= Upload Status
dataset_file_name = File Name
dataset_available_clusters = Available Clusters
dataset_upload_time = Upload Time
@@ -954,8 +955,8 @@ unzip_status=Unzip Status
collection_num=Collection Nums
current_dataset=Current Dataset
linked_dataset=Linked Dataset
unfavorite=Unfavorite
favorite=Favorite
unfavorite=Unlike
favorite=Like
disassociate=Disassociate
benchmark_dataset_tip=Note: first use the dataset function to upload the model, and then select the model from the dataset list.

@@ -1220,7 +1221,7 @@ model_Evaluation_not_created = Model evaluation has not been created
repo_not_initialized = Code version: You have not initialized the code repository, please <a href="%s"> initialized </a> first ;
debug_task_running_limit =Running time: no more than 4 hours, it will automatically stop if it exceeds 4 hours;
dataset_desc = Dataset: Cloud Brain 1 provides CPU/GPU,Cloud Brain 2 provides Ascend NPU.And dataset also needs to be uploaded to the corresponding environment;
platform_instructions = Instructions for use: You can refer to the <a href="https://git.openi.org.cn/zeizei/OpenI_Learning">Xiaobai training camp </a> course of Qizhi AI collaboration platform.
platform_instructions = Instructions for use: You can refer to the <a href="https://git.openi.org.cn/zeizei/OpenI_Learning">Xiaobai training camp </a> course of Openi AI collaboration platform.
model_not_exist = Model file: You do not have a model file yet, please generate and <a href="%s/modelmanage/show_model">export the model</a> through the <a href="%s/modelarts/train-job">training task</a> first ;
benchmark_leaderboards = Benchmark leaderboards

@@ -2382,7 +2383,7 @@ topic.count_prompt = You can not select more than 25 topics
topic.format_prompt = Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
imagetopic.format_prompt = Topics can be up to 35 characters long.
use_repo_agreement=I promise that the content of this warehouse does not violate any national laws and regulations. During the use of the warehouse, I will abide by the OpenI community management regulations and platform usage rules, and will not conduct malicious attacks, mining, or any other illegal or disruptive platform order. Information release and related behaviors. For more information please refer to
openi_use_agreement=OpenI Qizhi Community Platform Use Agreement.
openi_use_agreement=OpenI Openi Community Platform Use Agreement.
[org]
org_name_holder = Organization Name
org_full_name_holder = Organization Full Name


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

@@ -932,6 +932,7 @@ dataset_explain = 数据集:云脑1提供 CPU / GPU 资源,云脑2提供 Asc
dataset_instructions_for_use = 使用说明:可以参考启智AI协作平台
dataset_camp_course = 小白训练营课程
dataset_upload = 上传
dataset_upload_status = 上传状态
dataset_file_name = 文件名称
dataset_available_clusters = 可用集群
dataset_upload_time = 上传时间


+ 2
- 1
templates/repo/attachment/upload.tmpl View File

@@ -47,7 +47,8 @@
data-uploading='{{.i18n.Tr "dropzone.uploading"}}'
data-failed='{{.i18n.Tr "dropzone.failed"}}'
data-repopath='{{AppSubUrl}}{{$.RepoLink}}/datasets' data-cancel='{{.i18n.Tr "cancel"}}'
data-upload='{{.i18n.Tr "dataset.dataset_upload"}}'>
data-upload='{{.i18n.Tr "dataset.dataset_upload"}}'
data-upload-status='{{.i18n.Tr "dataset.dataset_upload_status"}}'>
</div>
<div id="datasetId" datasetId="{{.datasetId}}"></div>
</el-form>


+ 1
- 1
templates/repo/datasets/index.tmpl View File

@@ -406,7 +406,7 @@
<a class="item" href="{{.RepoLink}}/datasets/reference_datasets">{{$.i18n.Tr "dataset.linked_dataset"}}</a>
</div>
{{if $.CanWrite}}
<a class="ui green button" href="{{.RepoLink}}/datasets/create">{{$.i18n.Tr "dataset.new_dataset"}}</a>
<a class="ui green button" href="{{.RepoLink}}/datasets/create">{{$.i18n.Tr "new_dataset"}}</a>
{{end}}
</div>
</div>


+ 3
- 1
web_src/js/components/MinioUploader.vue View File

@@ -18,7 +18,7 @@
<label
class="el-form-item__label"
style="width: 140px; position: absolute; left: -140px"
>上传状态:</label
>{{ upload_status }}:</label
>
<div v-for="(item, index) in uploadFiles" class="datast-upload-progress">
<span class="dataset-name nowrap" :title="item.name">{{
@@ -103,6 +103,7 @@ export default {
btnFlag: false,
cancel: "",
upload: "",
upload_status: "",
uploadFiles: [],
uploadFilesAddId: [],
// allUploadFiles: [],
@@ -119,6 +120,7 @@ export default {
this.repoPath = this.dropzoneParams.data("repopath");
this.cancel = this.dropzoneParams.data("cancel");
this.upload = this.dropzoneParams.data("upload");
this.upload_status = this.dropzoneParams.data("upload-status");
let previewTemplate = `
<div class="dz-preview dz-file-preview">
<div class="dz-image">


+ 83
- 82
web_src/js/features/i18nVue.js View File

@@ -50,51 +50,51 @@ export const i18nVue = {
downloads: "下载次数",
not_link_dataset: "还未关联过数据集",
no_link_dataset_tips1:
"您可以通过单击新建关联数据集按钮,将平台上公开数据集展示在这里。",
"您可以通过单击关联数据集按钮,将平台上公开数据集展示在这里。",
dataset_instructions_for_use: "使用说明:可以参考启智AI协作平台",
dataset_camp_course: "小白训练营课程",
dataset_link_success: "关联数据集成功!",
dataset_link_failed: "关联数据集失败!",
dataset_over_nums: "关联超过?个数据集",
cancel_link_dataset: "取消?关联数据集成功!",
image_label:"镜像",
image_select_placeholder:"选择镜像或输入镜像地址",
image_select:"选择镜像",
image_search_placeholder:"搜镜像Tag/描述/标签...",
image_public:"公开镜像",
image_use:"使用",
image_my:"我的镜像",
image_commit:"提交中",
image_commit_content:"检测提交镜像是否大小超过20G!",
image_commit_failed:"提交失败",
image_collected:"我收藏的镜像",
dataset_label:"数据集",
dataset_select_placeholder:"选择数据集文件",
dataset_select:"选择数据集",
dataset_search_placeholder:"搜数据集名称/描述...",
dataset_unziping:"正在解压缩",
dataset_unzip_failed:"解压失败",
dataset_my_upload:"我上传的",
dataset_current_repo:"本项目",
dataset_public:"公开数据集",
dataset_relate:"关联数据集",
dataset_collected:"我收藏的",
dataset_selected:"已选数据文件",
dataset_ok:"确定",
dataset_not_equal_file:"不能选择相同名称的数据文件",
dataset_most:"最多不超过五个文件",
model_name:"模型名称",
model_version:"版本",
model_version_num:"版本数",
model_size:"模型大小",
model_egine:"模型框架",
model_compute_resource:"计算资源",
model_create_time:"创建时间",
model_creator:"创建者",
model_operation:"操作",
model_create_new_ver:"创建新版本",
model_download:"下载",
model_delete:"删除",
image_label: "镜像",
image_select_placeholder: "选择镜像或输入镜像地址",
image_select: "选择镜像",
image_search_placeholder: "搜镜像Tag/描述/标签...",
image_public: "公开镜像",
image_use: "使用",
image_my: "我的镜像",
image_commit: "提交中",
image_commit_content: "检测提交镜像是否大小超过20G!",
image_commit_failed: "提交失败",
image_collected: "我收藏的镜像",
dataset_label: "数据集",
dataset_select_placeholder: "选择数据集文件",
dataset_select: "选择数据集",
dataset_search_placeholder: "搜数据集名称/描述...",
dataset_unziping: "正在解压缩",
dataset_unzip_failed: "解压失败",
dataset_my_upload: "我上传的",
dataset_current_repo: "本项目",
dataset_public: "公开数据集",
dataset_relate: "关联数据集",
dataset_collected: "我收藏的",
dataset_selected: "已选数据文件",
dataset_ok: "确定",
dataset_not_equal_file: "不能选择相同名称的数据文件",
dataset_most: "最多不超过五个文件",
model_name: "模型名称",
model_version: "版本",
model_version_num: "版本数",
model_size: "模型大小",
model_egine: "模型框架",
model_compute_resource: "计算资源",
model_create_time: "创建时间",
model_creator: "创建者",
model_operation: "操作",
model_create_new_ver: "创建新版本",
model_download: "下载",
model_delete: "删除",
},
US: {
computer_vision: "computer vision",
@@ -137,9 +137,9 @@ export const i18nVue = {
speech_synthesis: "speech synthesis",
current_dataset: "Current Dataset",
linked_datasets: "Linked Datasets",
unfavorite: "Unfavorite",
favorite: "Favorite",
disassociate: "Disassociate",
unfavorite: "UnLike",
favorite: "Like",
disassociate: "Unlink",
public_dataset: "Public Dataset",
selected_data_file: "Selected DataSets",
sure: "Ok",
@@ -151,49 +151,50 @@ export const i18nVue = {
"You can display public datasets on the platform here by clicking the New Linked Dataset button.",

dataset_instructions_for_use:
"Instructions for use: You can refer to Qizhi AI Collaboration Platform ",
dataset_camp_course: "Newcomer Training Camp Course",
"Instructions for use: You can refer to Openi AI Collaboration Platform ",
dataset_camp_course: " Newcomer Training Camp Course",
dataset_link_success: "Linked dataset succeeded!",
dataset_link_failed: "Linked dataset Failed!",
dataset_over_nums: "Linked over ? datasets!",
cancel_link_dataset: "Cancel ? Linked dataset succeeded!",
image_label:"Image",
image_select_placeholder:"Select image or input image url",
image_select:"Select Image",
image_search_placeholder:"Search image tag/description/label...",
image_public:"Public Image",
image_use:"Use",
image_my:"My Images",
image_commit:"Commiting",
image_commit_content:"Check whether the size of the submitted image exceeds 20g.",
image_commit_failed:"Commit failed",
image_collected:"My collected images",
dataset_label:"Dataset",
dataset_select_placeholder:"Select dataset file",
dataset_select:"Select dataset",
dataset_search_placeholder:"Search dataset name/description ...",
dataset_unziping:"Decompressing",
dataset_unzip_failed:"Decompression failed",
dataset_my_upload:"Upload by me",
dataset_current_repo:"Current Repository",
dataset_public:"Public dataset",
dataset_collected:"My collection",
dataset_relate:"Related dataset",
dataset_selected:"Selected dataset file",
dataset_ok:"OK",
dataset_not_equal_file:"Cannot select a data file with the same name.",
dataset_most:"Up to five files.",
model_name:"Model Name",
model_version:"Version",
model_version_num:"Total",
model_size:"Size",
model_egine:"Engine",
model_compute_resource:"Compute Resource",
model_create_time:"Created Time",
model_creator:"Creator",
model_operation:"Operation",
model_create_new_ver:"New Version",
model_download:"Download",
model_delete:"Delete",
image_label: "Image",
image_select_placeholder: "Select image or input image url",
image_select: "Select Image",
image_search_placeholder: "Search image tag/description/label...",
image_public: "Public Image",
image_use: "Use",
image_my: "My Images",
image_commit: "Commiting",
image_commit_content:
"Check whether the size of the submitted image exceeds 20g.",
image_commit_failed: "Commit failed",
image_collected: "My collected images",
dataset_label: "Dataset",
dataset_select_placeholder: "Select dataset file",
dataset_select: "Select dataset",
dataset_search_placeholder: "Search dataset name/description ...",
dataset_unziping: "Decompressing",
dataset_unzip_failed: "Decompression failed",
dataset_my_upload: "Upload by me",
dataset_current_repo: "Current Repository",
dataset_public: "Public dataset",
dataset_collected: "My collection",
dataset_relate: "Related dataset",
dataset_selected: "Selected dataset file",
dataset_ok: "OK",
dataset_not_equal_file: "Cannot select a data file with the same name.",
dataset_most: "Up to five files.",
model_name: "Model Name",
model_version: "Version",
model_version_num: "Total",
model_size: "Size",
model_egine: "Engine",
model_compute_resource: "Compute Resource",
model_create_time: "Created Time",
model_creator: "Creator",
model_operation: "Operation",
model_create_new_ver: "New Version",
model_download: "Download",
model_delete: "Delete",
},
};

Loading…
Cancel
Save