summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkirankumarb07 <kirankumarb@ami.com>2023-02-07 16:42:33 +0300
committerKiran Kumar Ballapalli <kirankumarb@ami.com>2023-02-13 09:39:24 +0300
commit3bf966a73eb55dbc0751734ce5bd78105e2d1c70 (patch)
tree07437223d4b9900d7cf029b000dee9d6007354b0
parent38e131ada65ea78b0e73eebde488002b3e2369c9 (diff)
downloadwebui-vue-3bf966a73eb55dbc0751734ce5bd78105e2d1c70.tar.xz
Add translation for a few missing UI elements
On the sensor page and user management page, some of the strings are not getting translated to the selected language. I have added this patch to add the multiple language strings to the missing strings. Change-Id: I03ca43bb81708f85e913e39c6dfa24ab7f3de876 Signed-off-by: Kirankumar Ballapalli <kirankumarb@ami.com>
-rw-r--r--src/locales/en-US.json12
-rw-r--r--src/locales/ru-RU.json12
-rw-r--r--src/views/HardwareStatus/Sensors/Sensors.vue6
-rw-r--r--src/views/SecurityAndAccess/UserManagement/TableRoles.vue29
4 files changed, 49 insertions, 10 deletions
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index 0796c67a..74dad4ef 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -20,7 +20,10 @@
"reset": "Reset",
"save": "Save",
"saveSettings": "Save settings",
- "selected": "Selected"
+ "selected": "Selected",
+ "ok": "OK",
+ "warning": "Warning",
+ "critical": "Critical"
},
"ariaLabel": {
"clearSearch": "Clear search input",
@@ -574,7 +577,12 @@
"configureManagerResources": "Configure manager resources",
"configureUsersAndTheirAccounts": "Configure users and their accounts",
"logInToTheServiceAndReadResources": "Log in to the service and read resources",
- "updatePasswordForCurrentUserAccount": "Update password for current user account"
+ "updatePasswordForCurrentUserAccount": "Update password for current user account",
+ "privilege": "Privilege",
+ "administrator": "Administrator",
+ "operator": "Operator",
+ "readOnly": "ReadOnly",
+ "noAccess": "NoAccess"
},
"toast": {
"errorBatchDelete": "Error deleting %{count} user. | Error deleting %{count} users.",
diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json
index 477cde74..4808aec4 100644
--- a/src/locales/ru-RU.json
+++ b/src/locales/ru-RU.json
@@ -20,7 +20,10 @@
"reset": "Сбросить",
"save": "Сохранить",
"saveSettings": "Сохранить настройки",
- "selected": "Выбрано"
+ "selected": "Выбрано",
+ "ok": "Хорошо",
+ "warning": "Предупреждение",
+ "critical": "Критический"
},
"ariaLabel": {
"clearSearch": "Очистить поле поиска",
@@ -574,7 +577,12 @@
"configureManagerResources": "Конфигурирование ресурсов менеджера",
"configureUsersAndTheirAccounts": "Конфигурирование пользователей и их учётных записей",
"logInToTheServiceAndReadResources": "Вход в сервис и доступ к ресурсам на чтение",
- "updatePasswordForCurrentUserAccount": "Обновление пароля для текущей учётной записи пользователя"
+ "updatePasswordForCurrentUserAccount": "Обновление пароля для текущей учётной записи пользователя",
+ "privilege": "Привилегия",
+ "administrator": "Администратор",
+ "operator": "Оператор",
+ "readOnly": "Только для чтения",
+ "noAccess": "Нет доступа"
},
"toast": {
"errorBatchDelete": "Ошибка удаления %{count} пользователя. | Ошибка удаления %{count} пользователей.",
diff --git a/src/views/HardwareStatus/Sensors/Sensors.vue b/src/views/HardwareStatus/Sensors/Sensors.vue
index 6329d9d8..c4663a94 100644
--- a/src/views/HardwareStatus/Sensors/Sensors.vue
+++ b/src/views/HardwareStatus/Sensors/Sensors.vue
@@ -196,7 +196,11 @@ export default {
{
key: 'status',
label: this.$t('pageSensors.table.status'),
- values: ['OK', 'Warning', 'Critical'],
+ values: [
+ this.$t('global.action.ok'),
+ this.$t('global.action.warning'),
+ this.$t('global.action.critical'),
+ ],
},
],
activeFilters: [],
diff --git a/src/views/SecurityAndAccess/UserManagement/TableRoles.vue b/src/views/SecurityAndAccess/UserManagement/TableRoles.vue
index 61ef1ee8..cbdec353 100644
--- a/src/views/SecurityAndAccess/UserManagement/TableRoles.vue
+++ b/src/views/SecurityAndAccess/UserManagement/TableRoles.vue
@@ -80,11 +80,30 @@ export default {
},
],
fields: [
- { key: 'description', label: 'Privilege' },
- { key: 'administrator', label: 'Administrator', class: 'text-center' },
- { key: 'operator', label: 'Operator', class: 'text-center' },
- { key: 'readonly', label: 'ReadOnly', class: 'text-center' },
- { key: 'noaccess', label: 'NoAccess', class: 'text-center' },
+ {
+ key: 'description',
+ label: this.$t('pageUserManagement.tableRoles.privilege'),
+ },
+ {
+ key: 'administrator',
+ label: this.$t('pageUserManagement.tableRoles.administrator'),
+ class: 'text-center',
+ },
+ {
+ key: 'operator',
+ label: this.$t('pageUserManagement.tableRoles.operator'),
+ class: 'text-center',
+ },
+ {
+ key: 'readonly',
+ label: this.$t('pageUserManagement.tableRoles.readOnly'),
+ class: 'text-center',
+ },
+ {
+ key: 'noaccess',
+ label: this.$t('pageUserManagement.tableRoles.noAccess'),
+ class: 'text-center',
+ },
],
};
},