浏览代码

商品价格曲线1.9.5版本英文翻译

jwyu 1 年之前
父节点
当前提交
3b055f767c

+ 15 - 0
src/lang/modules/ToolBox/CommodityPriceChart.js

@@ -33,6 +33,13 @@ export const CommodityPriceChartEn = {
     tips_msg04:'Please set up the trading profit configuration first.',
     tips_msg05:'Indicator not selected yet',
     tips_msg06:'Please add a date.',
+
+    xAxis_set_name:'Horizontal axis settings',
+    del_edb_empty_tips:'Are you sure you want to delete all spot indicators? The chart will be cleared after the operation.',
+    tips_msg07:'date reference cannot be empty',
+    tips_msg08:"Choose a spot indicator as the date reference, and the added date rules will be calculated based on that indicator's date",
+    tips_msg09:'Please select a date reference',
+    date_reference:'date reference',
 };
   
 /* 中文 */
@@ -66,6 +73,14 @@ export const CommodityPriceChartZh = {
     tips_msg04:'请先设置盘面利润配置',
     tips_msg05:'暂未选择指标',
     tips_msg06:'请添加日期',
+
+    xAxis_set_name:'横坐标设置',
+    del_edb_empty_tips:'现货指标全部删除后,图表会被清除,确认操作吗?',
+    tips_msg07:'日期基准不能为空',
+    tips_msg08:'选择一个现货指标为日期基准,添加的日期规则以该指标日期进行计算',
+    tips_msg09:'请选择日期基准',
+    date_reference:'日期基准',
+
 };
   
 /**

+ 8 - 8
src/views/futures_manage/chartEditor.vue

@@ -111,9 +111,9 @@
 							:placeholder="$t('ToolBox.CommodityPriceChart.please_select_classify')"
 						/>
 					</el-form-item>
-					<el-form-item label="日期基准" prop="basisEdb">
+					<el-form-item :label="$t('ToolBox.CommodityPriceChart.date_reference')" prop="basisEdb">
 						<el-select 
-							placeholder="请选择日期基准" 
+							:placeholder="$t('ToolBox.CommodityPriceChart.tips_msg09')" 
 							v-model="chartInfo.basisEdb" 
 							style="width: 90%"
 							@change="handleBasisEdbChange"
@@ -125,7 +125,7 @@
 								:value="item.EdbInfoId"
 							/>
 						</el-select>
-						<el-tooltip class="item" effect="dark" content="选择一个现货指标为日期基准,添加的日期规则以该指标日期进行计算" placement="top">
+						<el-tooltip class="item" effect="dark" :content="$t('ToolBox.CommodityPriceChart.tips_msg08')" placement="top">
 							<i class="el-icon-info"></i>
 						</el-tooltip>
 					</el-form-item>
@@ -134,13 +134,13 @@
 				<div class="targetset-cont">
 					<!-- 选择的指标模块 -->
 					<div class="basis-edb-wrap" v-if="tableData.length>0">
-						<div class="label-btn" @click="isShowxAxisSet=true">横坐标设置</div>
+						<div class="label-btn" @click="isShowxAxisSet=true">{{$t('ToolBox.CommodityPriceChart.xAxis_set_name')}}</div>
 						<div 
 							class="item-basis-edb" 
 							v-for="item,index in tableData" 
 							:key="item.EdbInfoId"
 						>
-							<span class="name">{{item.EdbName}}</span>
+							<span class="name">{{$i18n.locale == 'zh'?item.EdbName:item.EdbNameEn||item.EdbName}}</span>
 							<div class="opt-box">
 								<img 
 									class="icon" 
@@ -292,7 +292,7 @@ export default {
 					{ required: true, message: this.$t('ToolBox.CommodityPriceChart.tips_msg03')||'图表分类不能为空', trigger: 'blur' },
 				],
 				basisEdb:[
-					{ required: true, message: '日期基准不能为空', trigger: 'blur' },
+					{ required: true, message: this.$t('ToolBox.CommodityPriceChart.tips_msg07')||'日期基准不能为空', trigger: 'blur' },
 				]
 			}
 		}
@@ -447,9 +447,9 @@ export default {
 		async handleBasisEdbDel(index,item){
 			if(this.tableData.length===1){
 
-				await this.$confirm('现货指标全部删除后,图表会被清除,确认操作吗?','提示',{
+				await this.$confirm(this.$t('ToolBox.CommodityPriceChart.del_edb_empty_tips'),this.$t('Dialog.warn_tit'),{
 					type:'warning'
-				})
+				}) 
 			}
 			
 			this.tableData.splice(index,1)

+ 4 - 4
src/views/futures_manage/components/xAxisSet.vue

@@ -4,7 +4,7 @@
     :close-on-click-modal="false"
     :modal-append-to-body="true"
 		append-to-body
-    title="横坐标设置"
+    :title="$t('ToolBox.CommodityPriceChart.xAxis_set_name')"
     @close="cancelHandle"
     custom-class="xAxis-set-dialog"
     center
@@ -30,8 +30,8 @@
         </li>
       </ul>
 			<div class="btns">
-				<el-button type="primary" plain @click="cancelHandle">取消</el-button>
-				<el-button type="primary" @click="handleSave">保存</el-button>
+				<el-button type="primary" plain @click="cancelHandle">{{$t('Dialog.cancel_btn')}}</el-button>
+				<el-button type="primary" @click="handleSave">{{$t('Dialog.confirm_save_btn')}}</el-button>
 			</div>
     </div>
   </el-dialog>
@@ -88,7 +88,7 @@ export default {
 		handleBasisEdbDel(item,index){
 			const count=this.arr.filter(i=>i.EdbInfoId)
 			if(count.length===1){
-				this.$confirm('现货指标全部删除后,图表会被清除,确认操作吗?','提示',{
+				this.$confirm(this.$t('ToolBox.CommodityPriceChart.del_edb_empty_tips'),this.$t('Dialog.warn_tit'),{
 					type:'warning'
 				}).then(()=>{
 					this.arr.splice(index,1)