Explorar o código

剩余英文翻译补充

cxmo hai 8 meses
pai
achega
982ad5702c

+ 3 - 0
src/lang/modules/EtaChart/En.js

@@ -93,6 +93,9 @@ export default {
     right_edb_mark_connect_line_color:'Line Color',
     right_edb_mark_connect_line_style:'Line Style',
     right_edb_mark_connect_line_width:'Line Width',
+    limit_range:'Range of Limits',
+    average_range:'Range of Average',
+    std_range:'Range of STDEV',
 
     //截面散点图区域
     label_serie_set:'Series {index} Configuration',

+ 3 - 0
src/lang/modules/EtaChart/Zh.js

@@ -94,6 +94,9 @@ export default {
     right_edb_mark_connect_line_color:'连线颜色',
     right_edb_mark_connect_line_style:'连线线型',
     right_edb_mark_connect_line_width:'连线粗细',
+    limit_range:'上下限取数范围',
+    average_range:'均线取数范围',
+    std_range:'取数范围',
 
     //截面散点图区域
     label_serie_set:'系列{index}配置',

+ 8 - 0
src/lang/modules/EtaChart/commonLang.js

@@ -501,6 +501,10 @@ export default {
         zh:'倍',
         en:'times'
     },
+    cal_range_times2:{
+        zh:'倍数',
+        en:'times'
+    },
     cal_range_std:{
         zh:'标准差',
         en:'STDEV'
@@ -552,6 +556,10 @@ export default {
     edb_time_dyn:{
         zh:'动态',
         en:'Dynamic'
+    },
+    pass_year:{
+        zh:'过去',
+        en:'pass'
     }
 
 

+ 19 - 15
src/views/dataEntry_manage/components/addAverageDialog.vue

@@ -17,7 +17,8 @@
                 ref="averageFormRef"
                 label-position="right"
                 label-width="120px">
-                <el-form-item label="倍数" prop="Multiple" v-if="averageType===3">
+                <!-- 倍数 -->
+                <el-form-item :label="$t('Chart.Detail.cal_range_times2')" prop="Multiple" v-if="averageType===3">
                     <el-input-number 
                         v-model="averageForm.Multiple" 
                         controls-position="right" 
@@ -27,16 +28,17 @@
                 </el-form-item>
                 <el-form-item prop="Year"
                     :label="rangeLabelMap[averageType]" >
-                    <span>过去</span>
+                    <span><!-- 过去 -->{{ $t('Chart.Detail.pass_year') }}</span>
                     <el-input-number 
                         v-model="averageForm.Year" 
                         controls-position="right" 
                         :min="averageType===3?1:2" step-strictly
                         style="width: 90px" 
                         />
-                    <span>年</span>
+                    <span><!--  -->{{ $t('Edb.FreAll.year_min') }}</span>
                 </el-form-item>
-                <el-form-item label="颜色及透明度" prop="Color">
+                <!-- 颜色 -->
+                <el-form-item :label="$t('EtaChartAddPage.right_edb_color_set')" prop="Color">
                     <el-color-picker
                       style="width: 90px"
                       v-model="averageForm.Color"
@@ -44,7 +46,8 @@
                       :predefine="predefineColors"
                     ></el-color-picker>
                 </el-form-item>
-                <el-form-item label="线型" prop="LineType" v-if="averageType===2">
+                <!-- 线型 -->
+                <el-form-item :label="$t('EtaChartAddPage.label_line_sty')" prop="LineType" v-if="averageType===2">
                     <el-select v-model="averageForm.LineType">
                         <el-option v-for="lineItem in lineStylesOpts"
                             :key="lineItem.value"
@@ -56,21 +59,22 @@
                         </el-option>
                     </el-select>
                 </el-form-item>
-                <el-form-item label="粗细" prop="LineWidth" v-if="averageType===2">
+                <!-- 粗细 -->
+                <el-form-item :label="$t('Chart.Detail.size')" prop="LineWidth" v-if="averageType===2">
                     <el-input-number 
                         v-model="averageForm.LineWidth" 
                         controls-position="right" 
                         :min="1" step-strictly
                         style="width: 90px"/>
                 </el-form-item>
-                <el-form-item label="图例" prop="Legend">
+                <el-form-item :label="$t('EtaChartAddPage.right_edb_legend')" prop="Legend">
                     <el-input v-model="averageForm.Legend"  style="width: 300px;"/>
                 </el-form-item>
             </el-form>
         </div>
         <div slot="footer" class="dialog-footer" style="text-align: center;">
-            <el-button @click="$emit('close')">取消</el-button>
-            <el-button type="primary" @click="confirmPerson">保存</el-button>
+            <el-button @click="$emit('close')">{{$t('Dialog.cancel_btn')}}</el-button>
+            <el-button type="primary" @click="confirmPerson">{{$t('Dialog.confirm_save_btn')}}</el-button>
         </div>
     </el-dialog>
 </template>
@@ -96,17 +100,17 @@ export default {
     computed:{
         dialogTitle(){
             const titleMap = {
-                1:'添加同期上下限',
-                2:'添加同期均线',
-                3:'添加同期标准差'
+                1:/* '添加同期上下限' */`${this.$t('Table.add_btn')}${this.$i18n.locale!=='zh'?' ':''}${this.$t('EtaChartAddPage.limits_btn')}`,
+                2:/* '添加同期均线' */`${this.$t('Table.add_btn')}${this.$i18n.locale!=='zh'?' ':''}${this.$t('EtaChartAddPage.avg_line_btn')}`,
+                3:/* '添加同期标准差' */`${this.$t('Table.add_btn')}${this.$i18n.locale!=='zh'?' ':''}${this.$t('EtaChartAddPage.std_btn')}`
             }
             return titleMap[this.averageType]
         },
         rangeLabelMap(){
             return {
-                1:'上下限取数范围',
-                2:'均线取数范围',
-                3:'取数范围'
+                1:/* '上下限取数范围' */ this.$t('EtaChartAddPage.limit_range'),
+                2:/* '均线取数范围' */ this.$t('EtaChartAddPage.average_range'),
+                3:/* '取数范围' */ this.$t('EtaChartAddPage.std_range')
             }
         },
         formRules(){ //方便英文翻译