From badbf6c9866c996ccbe0d6f5474eedfbc6ee7499 Mon Sep 17 00:00:00 2001 From: Andrew nuark G Date: Wed, 17 May 2023 20:34:21 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B2=D1=91=D0=BB=20?= =?UTF-8?q?=D1=83=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/dialogs/group_acl_dialog.dart | 60 ++++++++++++------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/lib/pages/dialogs/group_acl_dialog.dart b/lib/pages/dialogs/group_acl_dialog.dart index 84a188f..84466ab 100644 --- a/lib/pages/dialogs/group_acl_dialog.dart +++ b/lib/pages/dialogs/group_acl_dialog.dart @@ -47,7 +47,7 @@ class GroupACLController extends GetxController { final respData = resp.data; if (respData == null) { - throw Exception("No data in response"); + throw Exception("В ответе нет данных"); } _tables.clear(); @@ -56,18 +56,18 @@ class GroupACLController extends GetxController { final respData = e.response?.data; if (respData != null) { Get.snackbar( - "Error trying to get tables", + "Ошибка запроса таблиц", "${respData['error']}", ); } else { Get.snackbar( - "Error trying to get tables", + "Ошибка запроса таблиц", "$e", ); } } catch (e) { Get.snackbar( - "Error trying to get tables", + "Ошибка запроса таблиц", "$e", ); } @@ -96,7 +96,7 @@ class GroupACLController extends GetxController { final respData = resp.data; if (respData == null) { - throw Exception("No data in response"); + throw Exception("В ответе нет данных"); } if (respData.isNotEmpty) { @@ -111,18 +111,18 @@ class GroupACLController extends GetxController { final respData = e.response?.data; if (respData != null) { Get.snackbar( - "Error trying to get tables access", + "Ошибка запроса информации доступа к таблицам", "${respData['error']}", ); } else { Get.snackbar( - "Error trying to get tables access", + "Ошибка запроса информации доступа к таблицам", "$e", ); } } catch (e) { Get.snackbar( - "Error trying to get tables access", + "Ошибка запроса информации доступа к таблицам", "$e", ); } @@ -187,7 +187,7 @@ class GroupACLController extends GetxController { final respData = resp.data; if (respData == null) { - throw Exception("No data in response"); + throw Exception("В ответе нет данных"); } refreshTableAccess(table); @@ -195,18 +195,18 @@ class GroupACLController extends GetxController { final respData = e.response?.data; if (respData != null) { Get.snackbar( - "Error trying to update tables access", + "Ошибка обновления информации доступа к таблицам", "${respData['error']}", ); } else { Get.snackbar( - "Error trying to update tables access", + "Ошибка обновления информации доступа к таблицам", "$e", ); } } catch (e) { Get.snackbar( - "Error trying to update tables access", + "Ошибка обновления информации доступа к таблицам", "$e", ); } @@ -234,7 +234,7 @@ class GroupACLController extends GetxController { final confirm = await Get.dialog( AlertDialog( - title: const Text("Allowed columns"), + title: const Text("Разрешённые колонки"), content: Obx( () => Wrap( children: [ @@ -244,7 +244,7 @@ class GroupACLController extends GetxController { selectedColumns[column] = !selectedColumns[column]!; } }, - child: const Text("Swap all"), + child: const Text("Перевернуть"), ), ...selectedColumns.entries.map((e) { return CheckboxListTile( @@ -259,11 +259,11 @@ class GroupACLController extends GetxController { actions: [ TextButton( onPressed: () => Get.back(result: false), - child: const Text("Cancel"), + child: const Text("Отменить"), ), TextButton( onPressed: () => Get.back(result: true), - child: const Text("Ok"), + child: const Text("Ок"), ), ], ), @@ -274,12 +274,12 @@ class GroupACLController extends GetxController { if (selectedColumns.values.every((e) => !e)) { await Get.dialog( AlertDialog( - title: const Text("Error"), - content: const Text("At least one column must be selected"), + title: const Text("Ошибка"), + content: const Text("Необходимо выбрать хотя бы одну колонку"), actions: [ TextButton( onPressed: () => Get.back(), - child: const Text("Ok"), + child: const Text("Ок"), ), ], ), @@ -306,7 +306,7 @@ class GroupACLController extends GetxController { final respData = resp.data; if (respData == null) { - throw Exception("No data in response"); + throw Exception("В ответе нет данных"); } refreshTableAccess(table); @@ -314,18 +314,18 @@ class GroupACLController extends GetxController { final respData = e.response?.data; if (respData != null) { Get.snackbar( - "Error trying to update tables access", + "Ошибка обновления информации доступа к таблицам", "${respData['error']}", ); } else { Get.snackbar( - "Error trying to update tables access", + "Ошибка обновления информации доступа к таблицам", "$e", ); } } catch (e) { Get.snackbar( - "Error trying to update tables access", + "Ошибка обновления информации доступа к таблицам", "$e", ); } @@ -338,16 +338,16 @@ class GroupACLDialog extends GetView { @override Widget build(BuildContext context) { return AlertDialog( - title: const Text('Group ACL'), + title: const Text('Доступ группы'), content: Obx( () => DataTable2( columns: const [ - DataColumn2(label: Text('Table'), size: ColumnSize.L), - DataColumn2(label: Text('Read'), size: ColumnSize.S), - DataColumn2(label: Text('Write'), size: ColumnSize.S), - DataColumn2(label: Text('Allowed columns'), size: ColumnSize.S), + DataColumn2(label: Text('Таблица'), size: ColumnSize.L), + DataColumn2(label: Text('Чтение'), size: ColumnSize.S), + DataColumn2(label: Text('Запись'), size: ColumnSize.S), + DataColumn2(label: Text('Колонки'), size: ColumnSize.S), ], - empty: const Text("No tables"), + empty: const Text("Нет таблиц"), rows: controller.access.entries.map((e) { final table = controller.tables.firstWhere( (element) => element.tableId == e.key, @@ -390,7 +390,7 @@ class GroupACLDialog extends GetView { onPressed: () { Get.back(); }, - child: const Text('Close'), + child: const Text("Закрыть"), ), ], );