Browse Source

国际化修改

1219
zhang 4 weeks ago
parent
commit
ffcb8b0b52
  1. 7
      lms/nladmin-system/src/main/resources/language/master/master_en_US.properties
  2. 7
      lms/nladmin-system/src/main/resources/language/master/master_in_ID.properties
  3. 7
      lms/nladmin-system/src/main/resources/language/master/master_zh_CN.properties
  4. 2
      lms/nladmin-ui/src/components/Crud/CRUD.operation.vue
  5. 3
      lms/nladmin-ui/src/components/Crud/UD.operation.vue
  6. 11
      lms/nladmin-ui/src/components/Crud/crud.js
  7. 3
      lms/nladmin-ui/src/i18n/langs/en.js
  8. 7
      lms/nladmin-ui/src/i18n/langs/in.js
  9. 104
      lms/nladmin-ui/src/i18n/langs/indonesian.js
  10. 3
      lms/nladmin-ui/src/i18n/langs/zh-CN.js
  11. 17
      lms/nladmin-ui/src/mixins/crud.js

7
lms/nladmin-system/src/main/resources/language/master/master_en_US.properties

@ -1,2 +1,9 @@
master_operation_permissions=Deleted or without permission, operation failed! master_operation_permissions=Deleted or without permission, operation failed!
master_exists=Same encoding exists master_exists=Same encoding exists
master_code_notNull=The code cannot be empty!
master_vehicle=Please select the correct type of vehicle
master_area_exists=There are salespeople in the same area!
master_jk_exists=Duplicate interface!
master_parentCode_notNull=The parent node number cannot be empty!
master_parentCode_input=Please enter the correct parent node number!
master_error_ParamExist={0}Already exists

7
lms/nladmin-system/src/main/resources/language/master/master_in_ID.properties

@ -1,3 +1,10 @@
master_operation_permissions=Dihapus atau tanpa izin, operasi gagal! master_operation_permissions=Dihapus atau tanpa izin, operasi gagal!
master_exists=Pengekodan yang sama ada master_exists=Pengekodan yang sama ada
master_code_notNull=Kodenya tidak bisa kosong!
master_vehicle=Silakan pilih tipe kendaraan yang tepat
master_area_exists=There are salespeople in the same area!
master_jk_exists=Duplikasi antarmuka!
master_parentCode_notNull=Nomor node induk tidak dapat kosong!
master_parentCode_input=Silakan masukkan nomor node induk yang benar!
master_error_ParamExist={0}Sudah ada

7
lms/nladmin-system/src/main/resources/language/master/master_zh_CN.properties

@ -1,2 +1,9 @@
master_operation_permissions=被删除或无权限,操作失败! master_operation_permissions=被删除或无权限,操作失败!
master_exists=存在相同的编码 master_exists=存在相同的编码
master_code_notNull=编码不能为空!
master_vehicle=请选择正确的载具类型
master_area_exists=存在相同区域的业务员!
master_jk_exists=接口重复!
master_parentCode_notNull=父节点编号不能为空!
master_parentCode_input=请输入正确的父节点编号!
master_error_ParamExist={0}已存在

2
lms/nladmin-ui/src/components/Crud/CRUD.operation.vue

@ -12,7 +12,7 @@
icon="el-icon-plus" icon="el-icon-plus"
@click="crud.toAdd" @click="crud.toAdd"
> >
新增 {{ $t('auto.common.Create') }}
</el-button> </el-button>
<el-button <el-button
v-if="crud.optShow.edit" v-if="crud.optShow.edit"

3
lms/nladmin-ui/src/components/Crud/UD.operation.vue

@ -14,6 +14,7 @@
</template> </template>
<script> <script>
import CRUD, { crud } from '@crud/crud' import CRUD, { crud } from '@crud/crud'
import i18n from '@/i18n'
export default { export default {
mixins: [crud()], mixins: [crud()],
props: { props: {
@ -43,7 +44,7 @@ export default {
}, },
msg: { msg: {
type: String, type: String,
default: '确定删除本条数据吗?' default: i18n.t('auto.common.crudTip')
} }
}, },
data() { data() {

11
lms/nladmin-ui/src/components/Crud/crud.js

@ -1,6 +1,7 @@
import { download, initData } from '@/api/data' import { download, initData } from '@/api/data'
import { downloadFile, parseTime } from '@/utils/index' import { downloadFile, parseTime } from '@/utils/index'
import Vue from 'vue' import Vue from 'vue'
import i18n from '@/i18n'
/** /**
* CRUD配置 * CRUD配置
@ -84,14 +85,14 @@ function CRUD(options) {
}, },
// 标题 // 标题
get title() { get title() {
return this.add > CRUD.STATUS.NORMAL ? `新增${crud.title}` : this.edit > CRUD.STATUS.NORMAL ? `编辑${crud.title}` : this.view > CRUD.STATUS.NORMAL ? `${crud.title}详情` : crud.title return this.add > CRUD.STATUS.NORMAL ? i18n.t('auto.common.Create') + `${crud.title}` : this.edit > CRUD.STATUS.NORMAL ? i18n.t('auto.common.Editors') + `${crud.title}` : this.view > CRUD.STATUS.NORMAL ? `${crud.title}` + i18n.t('auto.common.details') : crud.title
} }
}, },
msg: { msg: {
submit: '提交成功', submit: i18n.t('auto.common.submit_msg'),
add: '新增成功', add: i18n.t('auto.common.add_msg'),
edit: '编辑成功', edit: i18n.t('auto.common.edit_msg'),
del: '删除成功' del: i18n.t('auto.common.del_msg')
}, },
page: { page: {
// 页码 // 页码

3
lms/nladmin-ui/src/i18n/langs/en.js

@ -103,7 +103,8 @@ export default {
'submit_msg': 'Submitted successfully', 'submit_msg': 'Submitted successfully',
'add_msg': 'Added successfully', 'add_msg': 'Added successfully',
'edit_msg': 'Edited successfully', 'edit_msg': 'Edited successfully',
'del_msg': 'Delete successfully' 'del_msg': 'Delete successfully',
'details': 'details'
}, },
'monitor': { 'monitor': {
'sys': 'System', 'sys': 'System',

7
lms/nladmin-ui/src/i18n/langs/in.js

@ -99,7 +99,12 @@ export default {
'true': 'Ada', 'true': 'Ada',
'false': 'Tidak', 'false': 'Tidak',
'Running': 'Menjalankan', 'Running': 'Menjalankan',
'Paused': 'Berhenti' 'Paused': 'Berhenti',
'details': 'rincian',
'submit_msg': 'Submitted successfully',
'add_msg': 'Added successfully',
'edit_msg': 'Edited successfully',
'del_msg': 'Delete successfully'
}, },
'monitor': { 'monitor': {
'sys': 'Sistem', 'sys': 'Sistem',

104
lms/nladmin-ui/src/i18n/langs/indonesian.js

@ -1,10 +1,10 @@
import idLocale from 'element-ui/lib/locale/lang/id' import idLocale from 'element-ui/lib/locale/lang/id'
import id from './in' import id from './in'
// import dataPermission from './dataPermission/in' import dataPermission from './dataPermission/in'
// import workshop from './basedata/workshop/in' import workshop from './basedata/workshop/in'
// import vehicle from './basedata/vehicle/in' import vehicle from './basedata/vehicle/in'
import material from './basedata/master/material/in' import material from './basedata/master/material/in'
// import classification from './basedata/classification/in' import classification from './basedata/classification/in'
import classstandard from './basedata/master/classstandard/in' import classstandard from './basedata/master/classstandard/in'
import customer from './basedata/master/customer/in' import customer from './basedata/master/customer/in'
import faultdevice from './basedata/master/faultdevice/in' import faultdevice from './basedata/master/faultdevice/in'
@ -13,40 +13,40 @@ import measure from './basedata/master/measure/in'
import sales from './basedata/master/sales/in' import sales from './basedata/master/sales/in'
import storagevehicleinfo from './basedata/master/storagevehicleinfo/in' import storagevehicleinfo from './basedata/master/storagevehicleinfo/in'
import transport from './basedata/master/transport/in' import transport from './basedata/master/transport/in'
// import taskConfig from './sch/task/in' import taskConfig from './sch/task/in'
// import taskManage from './sch/task_manage/in' import taskManage from './sch/task_manage/in'
// import SchBasePoint from './sch/point/in' import SchBasePoint from './sch/point/in'
// import regionManage from './sch/region/in' import regionManage from './sch/region/in'
// import sys_redis from './system/redis/in' import sys_redis from './system/redis/in'
// import notice from './system/notice/in' import notice from './system/notice/in'
// import search from './lucene/search/in' import search from './lucene/search/in'
// import lucene from './lucene/in' import lucene from './lucene/in'
// import record from './record/in' import record from './record/in'
// import login from './login/in' import login from './login/in'
// import operation_log from './operationLog/in' import operation_log from './operationLog/in'
// import online from './online/in' import online from './online/in'
// import error_log from './errorLog/in' import error_log from './errorLog/in'
// import menu from './menu/in' import menu from './menu/in'
// import param from './param/in' import param from './param/in'
import instruction from './instruction/in' import instruction from './instruction/in'
import task from './task/in' import task from './task/in'
import history from './history/in' import history from './history/in'
import device from './device/in' import device from './device/in'
import opc from './opc/in' import opc from './opc/in'
import protocol from './protocol/in' import protocol from './protocol/in'
// import address from './address/in' import address from './address/in'
import storageCell from './storageCell/in' import storageCell from './storageCell/in'
import route from './route/in' import route from './route/in'
import auto from './auto/in' import auto from './auto/in'
// import monitor from './monitor/in' import monitor from './monitor/in'
// import timing from './timing/in' import timing from './timing/in'
import config from './config/in' import config from './config/in'
import customPolicy from './customPolicy/in' import customPolicy from './customPolicy/in'
import deviceErrorInfo from './deviceErrorInfo/in' import deviceErrorInfo from './deviceErrorInfo/in'
// import user from './user/in' import user from './user/in'
// import role from './role/in' import role from './role/in'
// import department from './department/in' import department from './department/in'
// import dict from './dict/in' import dict from './dict/in'
import angle from './angle/in' import angle from './angle/in'
import regional from './regional/in' import regional from './regional/in'
import stage from './stage/in' import stage from './stage/in'
@ -54,45 +54,45 @@ import stage from './stage/in'
export default { export default {
...idLocale, ...idLocale,
...id, ...id,
// ...dataPermission, ...dataPermission,
// ...menu, ...menu,
// ...workshop, ...workshop,
// ...vehicle, ...vehicle,
...material, ...material,
// ...notice, ...notice,
// ...classification, ...classification,
// ...login, ...login,
// ...error_log, ...error_log,
// ...online, ...online,
// ...operation_log, ...operation_log,
// ...taskConfig, ...taskConfig,
// ...record, ...record,
// ...taskManage, ...taskManage,
// ...SchBasePoint, ...SchBasePoint,
// ...regionManage, ...regionManage,
// ...sys_redis, ...sys_redis,
// ...search, ...search,
// ...lucene, ...lucene,
// ...param, ...param,
...instruction, ...instruction,
...task, ...task,
...history, ...history,
...device, ...device,
...opc, ...opc,
...protocol, ...protocol,
// ...address, ...address,
...storageCell, ...storageCell,
...route, ...route,
...auto, ...auto,
...customPolicy, ...customPolicy,
// ...monitor, ...monitor,
// ...timing, ...timing,
...config, ...config,
...deviceErrorInfo, ...deviceErrorInfo,
// ...user, ...user,
// ...role, ...role,
// ...department, ...department,
// ...dict, ...dict,
...angle, ...angle,
...regional, ...regional,
...stage, ...stage,

3
lms/nladmin-ui/src/i18n/langs/zh-CN.js

@ -103,7 +103,8 @@ export default {
'submit_msg': '提交成功', 'submit_msg': '提交成功',
'add_msg': '新增成功', 'add_msg': '新增成功',
'edit_msg': '编辑成功', 'edit_msg': '编辑成功',
'del_msg': '删除成功' 'del_msg': '删除成功',
'details': '详情'
}, },
'monitor': { 'monitor': {
'sys': '系统', 'sys': '系统',

17
lms/nladmin-ui/src/mixins/crud.js

@ -7,6 +7,7 @@ import {
downloadFile downloadFile
} from '@/utils/index' } from '@/utils/index'
import checkPermission from '@/utils/permission' import checkPermission from '@/utils/permission'
import i18n from '@/i18n'
export default { export default {
data() { data() {
@ -115,28 +116,28 @@ export default {
*/ */
submitSuccessNotify() { submitSuccessNotify() {
this.$notify({ this.$notify({
title: '提交成功', title: i18n.t('auto.common.submit_msg'),
type: 'success', type: 'success',
duration: 2500 duration: 2500
}) })
}, },
addSuccessNotify() { addSuccessNotify() {
this.$notify({ this.$notify({
title: '新增成功', title: i18n.t('auto.common.add_msg'),
type: 'success', type: 'success',
duration: 2500 duration: 2500
}) })
}, },
editSuccessNotify() { editSuccessNotify() {
this.$notify({ this.$notify({
title: '编辑成功', title: i18n.t('auto.common.edit_msg'),
type: 'success', type: 'success',
duration: 2500 duration: 2500
}) })
}, },
delSuccessNotify() { delSuccessNotify() {
this.$notify({ this.$notify({
title: '删除成功', title: i18n.t('auto.common.del_msg'),
type: 'success', type: 'success',
duration: 2500 duration: 2500
}) })
@ -179,9 +180,9 @@ export default {
* 多选删除提示 * 多选删除提示
*/ */
beforeDelAllMethod() { beforeDelAllMethod() {
this.$confirm('你确定删除选中的数据吗?', '提示', { this.$confirm(i18n.t('auto.common.crudTip'), i18n.t('auto.common.Tips'), {
confirmButtonText: '确定', confirmButtonText: i18n.t('auto.common.Confirm'),
cancelButtonText: '取消', cancelButtonText: i18n.t('auto.common.Cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.delAllMethod() this.delAllMethod()
@ -202,7 +203,7 @@ export default {
this.dleChangePage(ids.length) this.dleChangePage(ids.length)
this.init() this.init()
this.$notify({ this.$notify({
title: '删除成功', title: i18n.t('auto.common.del_msg'),
type: 'success', type: 'success',
duration: 2500 duration: 2500
}) })

Loading…
Cancel
Save