Browse Source

云盘翻译补充,翻译修正

cxmo 10 months ago
parent
commit
23badc0f9a

+ 12 - 2
src/lang/modules/ReportManagement/CloudPage.js

@@ -11,6 +11,7 @@ export const CloudPageEn = {
   create_btn: "Create",
   folder_error_msg: "The folder exists",
   folder_success_msg: "New folder created successfully",
+  selected_msg:"Selected {num} files/folders",
   // 上传文件
   upload_btn: "Upload document",
   select_folder_title: "Select folder",
@@ -20,6 +21,7 @@ export const CloudPageEn = {
   upload_folder_error_msg: "Please select a folder director",
   upload_please_error_msg: "A file with the same name already exists. Do you still want to proceed with uploading the file?",
   upload_confirm_btn: "Keep both",
+  upload_msg:"Uploading, please hold on······",
   //   表格
   column_name: "Name",
   column_author: "Author",
@@ -33,9 +35,12 @@ export const CloudPageEn = {
   rename_dialog_success_msg: "Rename successful",
   download_info_msg: "is starting to download. Please do not download again",
   download_success_msg: "Download successful",
+  download_fail_msg:"Download failed",
   delete_success_msg: "Delete successful",
   table_no_file: "No file available",
-  everything:'Everything'
+  everything:'Everything',
+  download_msg:"The folder is empty and cannot be downloaded",
+  download_banch_msg:"Please select at least one file/folder",
 };
 
 /* 中文 */
@@ -47,6 +52,7 @@ export const CloudPageZh = {
   create_btn: "创建",
   folder_error_msg: "该文件夹已存在",
   folder_success_msg: "新建文件夹成功",
+  selected_msg:"已选中{num}个文件/文件夹",
   // 上传文件
   upload_btn: "上传文件",
   select_folder_title: "选择文件夹",
@@ -56,6 +62,7 @@ export const CloudPageZh = {
   upload_folder_error_msg: "请选择文件夹目录",
   upload_please_error_msg: "已有同名文件,是否继续上传文件?",
   upload_confirm_btn: "保留两者",
+  upload_msg:"上传中,请稍后······",
   //   表格
   column_name: "名称",
   column_author: "创建人",
@@ -69,7 +76,10 @@ export const CloudPageZh = {
   rename_dialog_success_msg: "重命名成功",
   download_info_msg: "开始下载,请勿重复下载",
   download_success_msg: "下载成功 ",
+  download_fail_msg:"下载失败",
   delete_success_msg: "删除成功",
   table_no_file: "暂无文件",
-  everything:'全部'
+  everything:'全部',
+  download_msg:"文件夹为空,暂不支持下载",
+  download_banch_msg:"请至少选择一个文件/文件夹",
 };

+ 2 - 2
src/routes/modules/chartRoutes.js

@@ -58,7 +58,7 @@ export default [
 				name: '指标库',
 				hidden: false,
 				meta:{
-					name_en:'ETA Indics'
+					name_en:'Indics'
 				},
 			},
 			{
@@ -139,7 +139,7 @@ export default [
 		name: '表格',
 		hidden: false,
 		meta:{
-			name_en:'ETA Tables'
+			name_en:'Tables'
 		},
 		children:[
 			{

+ 9 - 9
src/views/report_manage/cloudDisk.vue

@@ -48,7 +48,7 @@
           </el-table-column>
           <el-table-column prop="ItemName" show-overflow-tooltip >
             <template slot="header" slot-scope="scope">
-              {{ tableSelection.length>0?`已选中${tableSelection.length}个文件/文件夹`:$t('ReportManage.CloudPage.column_name') }}
+              {{ tableSelection.length>0?/* `已选中${tableSelection.length}个文件/文件夹` */$t('ReportManage.CloudPage.selected_msg',{num:tableSelection.length}):$t('ReportManage.CloudPage.column_name') }}
             </template>
             <template slot-scope="{row}">
               <div class="file-name">
@@ -365,7 +365,7 @@ import 'streamsaver/examples/zip-stream'
         this.isUploading=true
         let uploadLoading=this.$message({
           type:"info",
-          message:'上传中,请稍后······',
+          message:/* '上传中,请稍后······' */this.$t('ReportManage.CloudPage.upload_msg'),
           duration:0,
           iconClass:'el-icon-loading'
         })
@@ -458,10 +458,10 @@ import 'streamsaver/examples/zip-stream'
       },
       // 下载文件
       downloadFile(row){
-        if(row.Size === 0) return this.$message.warning('文件夹为空,暂不支持下载')
+        if(row.Size === 0) return this.$message.warning(this.$t('ReportManage.CloudPage.download_msg'))
         let downloadHint = this.$message({
           type:"info",
-          message:row.ItemName+'开始下载,请勿重复下载',
+          message:row.ItemName+/* '开始下载,请勿重复下载' */this.$t('ReportManage.CloudPage.download_info_msg'),
           duration:0,
           iconClass:'el-icon-loading'
         })
@@ -492,14 +492,14 @@ import 'streamsaver/examples/zip-stream'
             this.$message.success(row.ItemName + this.$t('ReportManage.CloudPage.download_success_msg'))
             downloadHint.close()
           },()=>{
-            this.$message.error(row.ItemName + '下载失败')
+            this.$message.error(row.ItemName + /* '下载失败' */this.$t('ReportManage.CloudPage.download_fail_msg'))
             downloadHint.close()
           })
         }
       },
       downloadBatch(){
         if(!this.tableSelection || this.tableSelection.length==0){
-          this.$message.warning('请至少选择一个文件/文件夹')
+          this.$message.warning(/* '请至少选择一个文件/文件夹' */ this.$t('ReportManage.CloudPage.download_banch_msg'))
           return
         }
         let emptyFolders=this.tableSelection.filter(it => it.Size==0)
@@ -515,7 +515,7 @@ import 'streamsaver/examples/zip-stream'
             downloadHint.close()
             this.$refs.tableRef.clearSelection()
           }
-          this.$message.warning(`【${emptyFolders.map(it => it.ItemName).join('、')}】文件夹为空,暂不支持下载`)
+          this.$message.warning(`【${emptyFolders.map(it => it.ItemName).join('、')}】`+/* '文件夹为空,暂不支持下载' */this.$t('ReportManage.CloudPage.download_msg'))
         },0)
         let downNumber = 0
         let selectLength = this.tableSelection.length-emptyFolders.length
@@ -571,7 +571,7 @@ import 'streamsaver/examples/zip-stream'
                     that.$refs.tableRef.clearSelection()
                 }
             },()=>{
-                this.$message.error(item.ItemName + '下载失败')
+                this.$message.error(item.ItemName + /* '下载失败' */this.$t('ReportManage.CloudPage.download_fail_msg'))
                 downloadHint.close()
                 downNumber++
                 if(downNumber == selectLength){
@@ -600,7 +600,7 @@ import 'streamsaver/examples/zip-stream'
       },
       removeBatch(){
         if(!this.tableSelection || this.tableSelection.length==0){
-          this.$message.warning('请至少选择一个文件/文件夹')
+          this.$message.warning(/* '请至少选择一个文件/文件夹' */this.$t('ReportManage.CloudPage.download_banch_msg'))
           return
         }
         this.$confirm(this.$t('MsgPrompt.delete_info_msg'),this.$t('ReportManage.CloudPage.column_delete_btn'),{

+ 1 - 1
src/views/report_manage/reportVarietyV2.vue

@@ -402,7 +402,7 @@ export default {
 
         async handleConfirmEidtBreed(){
             if(!this.editBreedData.name){
-                this.$message.warning($t('ReportManage.CommodityConfiguration.variety_name_check_hint'))
+                this.$message.warning(this.$t('ReportManage.CommodityConfiguration.variety_name_check_hint'))
                 return
             }
             let params={