Browse Source

增加翻译内容,找到翻译缺失的地方

vothin 2 years ago
parent
commit
63f6d8dd54

+ 59 - 4
languages/en.js

@@ -87,9 +87,57 @@ module.exports = {
     times: 'Times',
     choice: 'Please choose',
     choiceAll: 'Select all',
+    choiceAllSearchResults: '(choose all search results)',
+    searchOoo: 'Search...',
+    blanks: '(space)',
+    noMatches: 'No matching results',
+    filterOoo: 'Filter value...',
+    equals: 'equal to',
+    notEqual: 'not equal to',
+    empty: 'Please select a record',
+    lessThan: 'less than',
+    greaterThan: 'greater than',
+    lessThanOrEqual: 'less than or equal to',
+    greaterThanOrEqual: 'greater than or equal to',
+    inRange: 'Range',
+    inRangeStart: 'to',
+    inRangeEnd: 'from',
+    contains: 'contains',
+    notContains: 'does not contain',
+    startsWith: 'starts with',
+    endsWith: 'ends with',
+    andCondition: 'and',
+    orCondition: 'or',
+    applyFilter: 'Apply',
+    resetFilter: 'reset',
+    clearFilter: 'Clear',
+    cancelFilter: 'Cancel',
+    textFilter: 'text filter',
+    numberFilter: 'number filter',
+    dateFilter: 'date filter',
+    setFilter: 'list filter',
+    columns: 'columns',
+    filters: 'filter',
+    loadingOoo: 'Loading...',
+    noRowsToShow: 'No data to show',
+    enabled: 'open',
+    pinColumn: 'fixed column',
+    pinLeft: 'Fixed to the left',
+    pinRight: 'Fixed to the right',
+    noPin: 'not fixed',
+    autosizeThiscolumn: 'Automatically scale this column',
+    autosizeAllColumns: 'Automatically scale all columns',
+    groupBy: 'group',
+    resetColumns: 'Reset column settings',
+    expandAll: 'Expand all',
+    collapseAll: 'Collapse all',
+    copy: 'Copy',
+    copyWithHeaders: 'Copy with headers',
+    paste: 'paste',
     colour: 'Colour',
     searchDateRange: 'Search time period',
-    to: 'to',
+    to: ' to ',
+    of: ' of ',
     index: 'Serial number',
     null: 'None',
     all: 'All',
@@ -152,7 +200,12 @@ module.exports = {
     excelUpload: 'Upload an excel sheet',
     play: 'Play',
     pause: 'Pause',
-    noFile: 'File does not exist, cannot be played'
+    noFile: 'File does not exist, cannot be played',
+    inputMsg: 'Please enter the content!',
+    year: 'year',
+    month: 'month',
+    day: 'day',
+    timeMsg: 'Please select a time range!'
   },
   member: {
     face: 'Avatar',
@@ -559,7 +612,9 @@ module.exports = {
     MaxNum2: 'Maximum on time',
     SumNum: 'Total call time',
     total: 'Total',
-    recordPlay: 'Play the audio recording'
+    recordPlay: 'Play the audio recording',
+    eventStatistics: 'Event Statistics',
+    statisticalTable: 'Statistical table'
   },
   frameGroup: {
     frameGroupAdd: 'New area',
@@ -950,7 +1005,7 @@ module.exports = {
     DEVICE: 'Device',
     DATA: 'Data',
     EVENT: 'Event',
-    SIDE: 'Outside Information',
+    SIDE: 'nursing',
     BROADCAST: 'Broadcast',
     TIME: 'Time',
     ENTRACEGUARD: 'Access Control',

+ 60 - 5
languages/es.js

@@ -86,10 +86,58 @@ module.exports = {
     every: 'Cada',
     times: 'Tiempos',
     choice: 'Por favor elija',
+    choiceAllSearchResults: '(elegir todos los resultados de búsqueda)',
+    searchOoo: 'Buscar...',
+    blanks: '(espacio)',
+    noMatches: 'No hay resultados coincidentes',
+    filterOoo: 'Valor de filtro...',
+    equals: 'igual a',
+    notEqual: 'no igual a',
+    empty: 'Seleccione un registro',
+    lessThan: 'menos que',
+    greaterThan: 'mayor que',
+    lessThanOrEqual: 'menor que o igual a',
+    greatThanOrEqual: 'mayor que o igual a',
+    inRange: 'Rango',
+    inRangeStart: 'a',
+    inRangeEnd: 'desde',
+    contains: 'contiene',
+    notContains: 'no contiene',
+    startsWith: 'comienza con',
+    endsWith: 'termina con',
+    andCondition: 'y',
+    orCondition: 'o',
+    applyFilter: 'Aplicar',
+    resetFilter: 'restablecer',
+    clearFilter: 'Borrar',
+    cancelarFiltro: 'Cancelar',
+    textFilter: 'filtro de texto',
+    numberFilter: 'filtro de números',
+    dateFilter: 'filtro de fecha',
+    setFilter: 'filtro de lista',
+    columnas: 'columnas',
+    filters: 'filtro',
+    loadingOoo: 'Cargando...',
+    noRowsToShow: 'No hay datos para mostrar',
+    enabled: 'abierto',
+    pinColumn: 'columna fija',
+    pinLeft: 'Fijo a la izquierda',
+    pinRight: 'Fijo a la derecha',
+    noPin: 'no fijo',
+    autosizeThiscolumn: 'Escalar automáticamente esta columna',
+    autosizeAllColumns: 'Escalar automáticamente todas las columnas',
+    groupBy: 'grupo',
+    resetColumns: 'Restablecer configuración de columna',
+    expandAll: 'Expandir todo',
+    colapsarTodo: 'Contraer todo',
+    copy: 'Copiar',
+    copyWithHeaders: 'Copiar con encabezados',
+    paste: 'pegar',
     choiceAll: 'Todos',
     colour: 'Color',
     searchDateRange: 'Período de tiempo de búsqueda',
-    to: 'Para',
+    to: ' Para ',
+    of: ' De ',
     index: 'Número de serie',
     null: 'Ninguno',
     all: 'todo',
@@ -152,7 +200,12 @@ module.exports = {
     excelUpload: 'Cargar una hoja de Excel',
     play: 'Jugar',
     pause: 'Pausa',
-    noFile: 'El archivo no existe, no se puede reproducir'
+    noFile: 'El archivo no existe, no se puede reproducir',
+    inputMsg: '¡Por favor, introduzca el contenido!',
+    year: 'Año',
+    month: 'Mes',
+    day: 'Día',
+    timeMsg: '¡Por favor, seleccione el rango de tiempo!'
   },
   member: {
     face: 'Avatar',
@@ -558,7 +611,9 @@ module.exports = {
     MaxNum2: 'Tiempo máximo',
     SumNum: 'Tiempo total de llamada',
     total: 'Total',
-    recordPlay: 'Reproducir la grabación de audio'
+    recordPlay: 'Reproducir la grabación de audio',
+    eventStatistics: 'Tabla estadística de eventos',
+    statisticalTable: 'Cuadro estadístico'
   },
   frameGroup: {
     frameGroupAdd: 'Nueva área',
@@ -938,7 +993,7 @@ module.exports = {
     EPIDEMIC_PATTERN: 'Modo de prevención de epidemias',
     CARING_PATTERN: 'Modo de cuidado de ancianos'
   },
-  TcpType: {
+  tcpType: {
     CALLCACK: 'Comentarios de TCP',
     VOICE: 'Voz',
     VIDEO: 'Vídeo',
@@ -948,7 +1003,7 @@ module.exports = {
     DEVICE: 'Dispositivo',
     DATA: 'Datos',
     EVENT: 'Evento',
-    SIDE: 'Información Externa',
+    SIDE: 'Enfermería',
     BROADCAST: 'Transmisión',
     TIME: 'tiempo',
     ENTRACEGUARD: 'Control de Acceso',

+ 61 - 6
languages/ru-RU.js

@@ -86,10 +86,58 @@ module.exports = {
     every: 'Каждый',
     times: 'Время',
     choice: 'Пожалуйста, выберите',
-    selectionAll: 'Выбрать все',
+    choiceAll: 'Выбрать все',
+    choiceAllSearchResults: '(выбрать все результаты поиска)',
+    searchOoo: 'Искать...',
+    blanks: '(пробел)',
+    noMatches: 'Нет подходящих результатов',
+    filterOoo: 'Значение фильтра...',
+    equals: 'равно',
+    notEqual: 'не равно',
+    empty: 'Пожалуйста, выберите запись',
+    lessThan: 'меньше чем',
+    greaterThan: 'больше чем',
+    lessThanOrEqual: 'меньше или равно',
+    GreaterThanOrEqual: 'больше или равно',
+    inRange: 'Диапазон',
+    inRangeStart: 'до',
+    inRangeEnd: 'от',
+    contains: 'содержит',
+    notContains: 'не содержит',
+    startWith: 'начинается с',
+    endWith: 'заканчивается',
+    andCondition: 'и',
+    orCondition: 'или',
+    applyFilter: 'Применить',
+    resetFilter: 'сбросить',
+    clearFilter: 'Очистить',
+    cancelFilter: 'Отмена',
+    textFilter: 'текстовый фильтр',
+    numberFilter: 'числовой фильтр',
+    dateFilter: 'фильтр даты',
+    setFilter: 'фильтр списка',
+    columns: 'столбцы',
+    filters: 'фильтр',
+    loadingOoo: 'Идет загрузка...',
+    noRowsToShow: 'Нет данных для отображения',
+    enabled: 'открыть',
+    pinColumn: 'фиксированный столбец',
+    pinLeft: 'Зафиксировано слева',
+    pinRight: 'Закреплено справа',
+    noPin: 'не исправлено',
+    autosizeThiscolumn: 'Автоматически масштабировать этот столбец',
+    autosizeAllColumns: 'Автоматически масштабировать все столбцы',
+    groupBy: 'группа',
+    resetColumns: 'Сбросить настройки столбца',
+    expandAll: 'Развернуть все',
+    collapseAll: 'Свернуть все',
+    copy: 'Копировать',
+    copyWithHeaders: 'Копировать с заголовками',
+    paste: 'вставить',
     colour: 'Цвет',
     searchDateRange: 'Период поиска',
-    to: 'к',
+    to: ' к ',
+    of: ' в ',
     index: 'Серийный номер',
     null: 'Нет',
     all: 'Все',
@@ -152,7 +200,12 @@ module.exports = {
     excelUpload: 'Отправка листа Excel',
     play: 'Играть',
     pause: 'Тайм-аут',
-    noFile: 'Файл не существует и не может быть воспроизведен'
+    noFile: 'Файл не существует и не может быть воспроизведен',
+    inputMsg: 'Введите содержимое!',
+    year: 'год',
+    month: 'месяц',
+    day: 'день',
+    timeMsg: 'Выберите диапазон времени!'
   },
   member: {
     face: 'Аватар',
@@ -559,7 +612,9 @@ module.exports = {
     MaxNum2: 'Максимум по времени',
     SumNum: 'Общее время разговора',
     total: 'Всего',
-    recordPlay: 'Воспроизведение аудио- и видеозаписей'
+    recordPlay: 'Воспроизведение аудио- и видеозаписей',
+    eventStatistics: 'Таблица событий',
+    statisticalTable: 'Статистические таблицы'
   },
   frameGroup: {
     frameGroupAdd: 'Новая область',
@@ -939,7 +994,7 @@ module.exports = {
     EPIDEMIC_PATTERN: 'Режим профилактики эпидемий',
     CARING_PATTERN: 'Режим ухода за пожилыми людьми'
   },
-  TCPType: {
+  tcpType: {
     CALLBACK: 'TCP-обратная связь',
     VOICE: 'Голос',
     VIDEO: 'Видео',
@@ -949,7 +1004,7 @@ module.exports = {
     DEVICE: 'Данные',
     DATA: 'Событие',
     EVENT: 'Внешняя информация',
-    SIDE: 'Трансляция',
+    SIDE: 'уход',
     BROADCAST: 'Время',
     TIME: 'Время',
     ENTRACEGUARD: 'Контроль доступа',

+ 58 - 3
languages/zh-CN.js

@@ -87,9 +87,57 @@ module.exports = {
     times: '次',
     choice: '请选择',
     choiceAll: '全选',
+    choiceAllSearchResults: '(选择所有搜索结果)',
+    searchOoo: '搜索...',
+    blanks: '(空格)',
+    noMatches: '无匹配结果',
+    filterOoo: '筛选值...',
+    equals: '等于',
+    notEqual: '不等于',
+    empty: '请选择一条记录',
+    lessThan: '小于',
+    greaterThan: '大于',
+    lessThanOrEqual: '小于等于',
+    greaterThanOrEqual: '大于等于',
+    inRange: '范围',
+    inRangeStart: '至',
+    inRangeEnd: '从',
+    contains: '包含',
+    notContains: '不包含',
+    startsWith: '开始于',
+    endsWith: '结束于',
+    andCondition: '且',
+    orCondition: '或',
+    applyFilter: '应用',
+    resetFilter: '重置',
+    clearFilter: '清除',
+    cancelFilter: '取消',
+    textFilter: '文本筛选',
+    numberFilter: '数字筛选',
+    dateFilter: '日期筛选',
+    setFilter: '列表筛选',
+    columns: '列',
+    filters: '筛选器',
+    loadingOoo: '加载中...',
+    noRowsToShow: '无数据显示',
+    enabled: '开启',
+    pinColumn: '固定列',
+    pinLeft: '固定到左边',
+    pinRight: '固定到右边',
+    noPin: '不固定',
+    autosizeThiscolumn: '自动缩放此列',
+    autosizeAllColumns: '自动缩放所有列',
+    groupBy: '分组',
+    resetColumns: '重置列设置',
+    expandAll: '展开所有',
+    collapseAll: '收缩所有',
+    copy: '复制',
+    copyWithHeaders: '连同表头复制',
+    paste: '粘贴',
     colour: '颜色',
     searchDateRange: '搜索时间段',
     to: '至',
+    of: '的',
     index: '序号',
     null: '无',
     all: '全部',
@@ -152,7 +200,12 @@ module.exports = {
     excelUpload: '上传excel表',
     play: '播放',
     pause: '暂停',
-    noFile: '文件不存在,无法播放'
+    noFile: '文件不存在,无法播放',
+    inputMsg: '请输入内容!',
+    year: '年',
+    month: '月',
+    day: '日',
+    timeMsg: '请选择时间范围!'
   },
   member: {
     face: '头像',
@@ -559,7 +612,9 @@ module.exports = {
     MaxNum2: '最大接通时间',
     SumNum: '总通话时间',
     total: '总量',
-    recordPlay: '播放录音录像'
+    recordPlay: '播放录音录像',
+    eventStatistics: '事件统计表',
+    statisticalTable: '统计表'
   },
   frameGroup: {
     frameGroupAdd: '新建区域',
@@ -949,7 +1004,7 @@ module.exports = {
     DEVICE: '设备',
     DATA: '数据',
     EVENT: '事件',
-    SIDE: '边外信息',
+    SIDE: '护理',
     BROADCAST: '广播',
     TIME: '时间',
     ENTRACEGUARD: '门禁',

BIN
src/assets/logo.png


+ 1 - 1
src/utils/i18n.js

@@ -11,7 +11,7 @@ Vue.use(VueI18n)
 const i18n = new VueI18n({
   // 设置默认语言
   // locale: 'zh', // 语言标识
-  locale: Storage.getItem('DefaultLanguage') == null ? 'ru' : Storage.getItem('DefaultLanguage'),
+  locale: Storage.getItem('DefaultLanguage') == null ? 'es' : Storage.getItem('DefaultLanguage'),
   // 添加多语言(每一个语言标示对应一个语言文件)
   messages: {
     'zh': Object.assign(require('../../languages/zh-CN'), zhLang),

+ 5 - 3
src/views/ncs-chars/index.vue

@@ -462,12 +462,12 @@ export default {
         this.sssparams.year = object.date_val.getFullYear()
         this.sssparams.month = this.checkTime(object.date_val.getMonth() + 1)
         this.sssparams.day = this.checkTime(object.date_val.getDate())
-        this.infoDay = this.sssparams.year + '年' + this.sssparams.month + '月' + this.sssparams.day + '日'
+        this.infoDay = this.sssparams.year + this.$t('interaction.year') + this.sssparams.month + this.$t('interaction.month') + this.sssparams.day + this.$t('interaction.day')
       } else {
         this.sssparams.year = object.year
         this.sssparams.month = object.month
         this.sssparams.cycle_type = object.type
-        this.infoDay = this.sssparams.year + '年' + this.sssparams.month
+        this.infoDay = this.sssparams.year + this.$t('interaction.year') + this.sssparams.month
       }
       this.getLogCharsJS()
       if (this.activeName !== 'ALL') {
@@ -498,6 +498,8 @@ export default {
           return this.$t('tcpType.SOS')
         case 'PHONE':
           return this.$t('tcpType.PHONE')
+        case 'SIDE':
+          return this.$t('tcpType.SIDE')
         default:
           return this.$t('tcpType.UNKNOWN')
       }
@@ -577,7 +579,7 @@ export default {
             tHeader.push(this.$t('interaction.SumNum'))
             filterVal.push('sum_num')
           }
-          const tit = _this.infoDay + _this.formatterType(_this.activeName) + '统计表'
+          const tit = _this.infoDay + _this.formatterType(_this.activeName) + $t('interaction.statisticalTable')
           const data = _this.formatJson(filterVal, _this.userActionList)
           excel.export_json_to_excel({
             header: tHeader,

+ 3 - 3
src/views/ncs-chars/info.vue

@@ -2,7 +2,7 @@
   <div>
     <div style="padding: 10px;margin: 10px;">
       <div style="padding: 10px;">
-        <el-button type="primary" @click="exportExcel">导出</el-button>
+        <el-button type="primary" @click="exportExcel">{{ this.$t('action.export') }}</el-button>
       </div>
       <div class="table-wrapper">
         <el-table :data="userActionList" stripe border :default-sort = "{prop: 'num', order: 'descending'}" style="width: 100%">
@@ -107,7 +107,7 @@ export default {
     },
     exportExcel() {
       const _this = this
-      this.$confirm('将导出Excel文件,是否继续?', '提示', {
+      this.$confirm(this.$t('action.excelFile'), this.$t('action.prompt'), {
         type: 'warning'
       }).then(() => {
         _this.loading = false
@@ -115,7 +115,7 @@ export default {
           const tHeader = [this.sssparams.eventType ? this.$t('member.name') : this.$t('tcpType.EVENT'), this.$t('interaction.actionTime'),
             this.$t('interaction.unSuccessTime'), this.$t('interaction.avgResponseNum'), this.$t('interaction.MinNum'), this.$t('interaction.MaxNum')] // 表头
           const filterVal = ['name', 'num', 'error_num', 'avg_num', 'min_num', 'max_num']
-          const tit = this.infoName + '事件统计表'
+          const tit = this.infoName + this.$t('action.eventStatistics')
           const data = _this.formatJson(filterVal, this.userActionList)
           excel.export_json_to_excel({
             header: tHeader,

+ 4 - 4
src/views/ncs-interaction/index.vue

@@ -398,7 +398,7 @@ export default {
         }
         return named
       } else {
-        return row.data.from_member_name + '的' + row.data.relative_name
+        return row.data.from_member_name + this.$t('action.of') + row.data.relative_name
       }
     },
     formatterToName(row) {
@@ -536,13 +536,13 @@ export default {
     },
     daochu() {
       const _this = this
-      this.$confirm('将导出交互信息Excel文件,是否继续?', '提示', {
+      this.$confirm(this.$t('action.excelFile'), this.$t('action.prompt'), {
         type: 'warning'
       }).then(() => {
         _this.loading = true
         const params = _this.MixinClone(_this.params)
         if (!params.start_date || !params.end_date) {
-          _this.$message.info('请选择时间范围!')
+          _this.$message.info(this.$t('action.timeMsg'))
           return
         }
         params.page_size = this.pageData.data_total
@@ -553,7 +553,7 @@ export default {
             const tHeader = [this.$t('interaction.fromMemberName'), this.$t('interaction.toMemberName'), this.$t('interaction.actionType'), this.$t('interaction.actionEnd'), this.$t('interaction.data'),
               this.$t('interaction.createDate')] // 表头
             const filterVal = ['fromMemberName', 'toMemberName', 'action_type', 'action_end', 'data', 'create_date']
-            const tit = params.start_date + '至' + params.end_date + '交互记录'
+            const tit = params.start_date + this.$t('action.to') + params.end_date + this.$t('interaction.interactionRecord')
             const data = _this.formatJson(filterVal, res.data)
             excel.export_json_to_excel({
               header: tHeader,

+ 4 - 4
src/views/ncs-remark/index.vue

@@ -107,7 +107,7 @@
                 userInfo: this.$store.getters.userInfo,
                 content: null,
                 rules: {
-                    content: [{required: true, message: '请输入备注内容', trigger: 'blur'}],
+                    content: [{required: true, message: this.$t('customerManage.inputRemarks'), trigger: 'blur'}],
                 },
               remarkContent: this.$t('remark.remarkContent'),
               remarkCreateTime: this.$t('remark.remarkCreateTime'),
@@ -212,11 +212,11 @@
                     const isImg = hz === 'jpeg' || hz === 'png' || hz === 'jpg' || hz === 'txt'  || hz === 'doc' || hz === 'docx' || hz === 'xls' || hz === 'xlsx'
                     const isLt5M = file.size / 1024 / 1024 < 5
                     if (!isImg) {
-                        _this.$message.error('上传附件只能是txt,doc,docx,xls,xlsx,jpg,png,jpeg格式!')
+                        _this.$message.error(this.$t('action.uploaderImg'))
                         reject()
                     }
                     if (!isLt5M) {
-                        _this.$message.error('上传附件大小不能超过 5MB!')
+                        _this.$message.error(this.$t('action.uploaderSize'))
                         reject()
                     }
                     resolve()
@@ -224,7 +224,7 @@
             },
             addRemark() {
                 if (!this.content) {
-                    this.$message.info('请输入内容!')
+                    this.$message.info(this.$t('action.inputMsg'))
                     return
                 }
                 if (!this.filePath) {