From de5d777f96a1c35e86b32fffb6bfba36dea56d15 Mon Sep 17 00:00:00 2001 From: lupusA Date: Tue, 12 Mar 2024 21:22:41 +0100 Subject: [PATCH] Some minor changes --- public/locales/ru/translation.json | 212 ++++++++++++++--------------- src/App.jsx | 102 +++++++------- src/utils/i18n.js | 5 +- 3 files changed, 160 insertions(+), 159 deletions(-) diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json index 8b43644..1145d1f 100644 --- a/public/locales/ru/translation.json +++ b/public/locales/ru/translation.json @@ -1,107 +1,107 @@ { - "tab.preferences":"Preferences", - "tab.repository":"Repository", - "tab.tasks":"Tasks", - "tab.policies":"Policies", - "tab.snapshots":"Snapshots", - - "task.all":"All", - "task.running":"Running", - "task.failed":"Failed", - "task.loading": "Loading...", - "task.header.time.start": "Start time", - "task.header.status": "Status", - "task.header.kind": "Kind", - "task.header.description": "Description", - "task.feedback.search": "Search logs by description", - "task.feedback.entries": "A list of tasks will appear here when you create snapshots, restore, run maintenance, etc.", - - "task.status.succeed.after": "Task succeeded after", - "task.status.canceled": "Task canceled after", - "task.status.canceling": "Canceling", - "task.status.error": "Task error", - "task.status.running.for": "Task running for", - - "task.status.started": "Started", - "task.status.finished": "Finished", - "task.logs": "Logs", - - "task.event.stop": "Stop", - "task.header.counter": "Counter", - "task.header.value": "Value", - - "snapshot.header.actions": "Actions", - "snapshot.header.status": "Status", - "snapshot.header.snapshot.next":"Next Snapshot", - "snapshot.header.snapshot.last":"Last Snapshot", - "snapshot.header.snapshot.size":"Size", - "snapshot.header.snapshot.owner":"Owner", - "snapshot.header.snapshot.path":"Path", - - "snapshot.event.snapshot.now": "Snapshot Now", - "snapshot.event.snapshot.policy": "Policy", - "snapshot.event.snapshot.pending": "Pending", - "snapshot.feedback.snapshot.start": "Snapshot will start after the previous snapshot completes", - "snapshot.event.snapshot.new": "New Snapshot", - - "snapshot.event.synchronize":"Synchronize", - - "repository.status.initializing": "Initializing repository...", - "repository.status.connected": "Connected to repository", - "repository.event.connection.cancel":"Cancel connection", - "repository.event.connection.disconnect": "Disconnect from repository", - "repository.event.description.update": "Update description", - - "repository.feedback.description.required":"Repository description is required", - "repository.feedback.read.only": "Repository is read-only", - "repository.feedback.eco.disabled":"Disabled", - "repository.feedback.compression.internal.supported": "yes", - "repository.feedback.compression.internal.not.supported": "no", - - "repository.attribute.server.url": "Server URL", - "repository.attribute.config.file": "Config file", - "repository.attribute.provider": "Provider", - "repository.attribute.algorithm.encryption": "Encryption algorithm", - "repository.attribute.algorithm.hash": "Hash algorithm", - "repository.attribute.algorithm.splitter": "Splitter algorithm", - "repository.attribute.algorithm.eco": "Error correction algorithm", - - "repository.attribute.connected.as": "Connected as", - "repository.attribute.compression.internal": "Internal compression", - "repository.attribute.format": "Repository format", - "repository.attribute.eco": "Error correction overhead", - - "log.event.hide": "Hide log", - "log.event.show": "Show log", - - "user.interface": "User interface", - "user.interface.appearance":"Appearance", - "user.interface.appearance.hint":"Select font size", - "user.interface.appearance.help": "Specifies the appearance of the user interface", - - "user.interface.appearance.small":"small", - "user.interface.appearance.medium":"medium", - "user.interface.appearance.large":"large", - - "user.interface.pagesize.description": "Page size", - "user.interface.pagesize.help": "Specifies the pagination size in tables", - "user.interface.pagesize.hint": "Page size", - - "user.interface.byte.representation.description":"Select byte representation", - "user.interface.byte.representation.select":"Select byte representation", - "user.interface.byte.representation.help":"Specifies the representation of bytes", - - "user.language":"Language", - - "lang.help": "Sets the language for the user interface", - "lang.select": "Select language", - "lang.description": "Select the language", - - "theme.description": "Theme", - "theme.select": "Select theme", - "theme.help": "The current active theme", - "theme.dark":"dark", - "theme.light": "light", - "theme.pastel": "pastel", - "theme.ocean":"ocean" -} \ No newline at end of file + "tab.preferences": "Настройки", + "tab.repository": "Репозиторий", + "tab.tasks": "Задачи", + "tab.policies": "Политики", + "tab.snapshots": "Снимки", + + "task.all": "Все", + "task.running": "Выполняются", + "task.failed": "Не удалось", + "task.loading": "Загрузка...", + "task.header.time.start": "Время начала", + "task.header.status": "Статус", + "task.header.kind": "Тип", + "task.header.description": "Описание", + "task.feedback.search": "Поиск по описанию", + "task.feedback.entries": "Список задач появится здесь при создании снимков, восстановлении, выполнении обслуживания и т. д.", + + "task.status.succeed.after": "Задача успешно завершена после", + "task.status.canceled": "Задача отменена после", + "task.status.canceling": "Отмена", + "task.status.error": "Ошибка задачи", + "task.status.running.for": "Задача выполняется в течение", + + "task.status.started": "Начало", + "task.status.finished": "Завершено", + "task.logs": "Логи", + + "task.event.stop": "Остановить", + "task.header.counter": "Счетчик", + "task.header.value": "Значение", + + "snapshot.header.actions": "Действия", + "snapshot.header.status": "Статус", + "snapshot.header.snapshot.next": "Следующий снимок", + "snapshot.header.snapshot.last": "Последний снимок", + "snapshot.header.snapshot.size": "Размер", + "snapshot.header.snapshot.owner": "Владелец", + "snapshot.header.snapshot.path": "Путь", + + "snapshot.event.snapshot.now": "Сделать снимок сейчас", + "snapshot.event.snapshot.policy": "Политика", + "snapshot.event.snapshot.pending": "Ожидание", + "snapshot.feedback.snapshot.start": "Снимок начнется после завершения предыдущего снимка", + "snapshot.event.snapshot.new": "Новый снимок", + + "snapshot.event.synchronize": "Синхронизировать", + + "repository.status.initializing": "Инициализация репозитория...", + "repository.status.connected": "Подключено к репозиторию", + "repository.event.connection.cancel": "Отменить подключение", + "repository.event.connection.disconnect": "Отключиться от репозитория", + "repository.event.description.update": "Обновить описание", + + "repository.feedback.description.required": "Требуется описание репозитория", + "repository.feedback.read.only": "Репозиторий доступен только для чтения", + "repository.feedback.eco.disabled": "Отключено", + "repository.feedback.compression.internal.supported": "да", + "repository.feedback.compression.internal.not.supported": "нет", + + "repository.attribute.server.url": "URL сервера", + "repository.attribute.config.file": "Файл конфигурации", + "repository.attribute.provider": "Поставщик", + "repository.attribute.algorithm.encryption": "Алгоритм шифрования", + "repository.attribute.algorithm.hash": "Алгоритм хеширования", + "repository.attribute.algorithm.splitter": "Алгоритм разделения", + "repository.attribute.algorithm.eco": "Алгоритм коррекции ошибок", + + "repository.attribute.connected.as": "Подключено как", + "repository.attribute.compression.internal": "Внутреннее сжатие", + "repository.attribute.format": "Формат репозитория", + "repository.attribute.eco": "Коррекция ошибок", + + "log.event.hide": "Скрыть лог", + "log.event.show": "Показать лог", + + "user.interface": "Пользовательский интерфейс", + "user.interface.appearance":"Внешний вид", + "user.interface.appearance.hint":"Выберите размер шрифта", + "user.interface.appearance.help": "Определяет внешний вид пользовательского интерфейса", + + "user.interface.appearance.small":"маленький", + "user.interface.appearance.medium":"средний", + "user.interface.appearance.large":"большой", + + "user.interface.pagesize.description": "Размер страницы", + "user.interface.pagesize.help": "Определяет размер страницы в таблицах", + "user.interface.pagesize.hint": "Размер страницы", + + "user.interface.byte.representation.description":"Выберите представление байта", + "user.interface.byte.representation.select":"Выберите представление байта", + "user.interface.byte.representation.help":"Определяет представление байтов", + + "user.language":"Язык", + + "lang.help": "Устанавливает язык пользовательского интерфейса", + "lang.select": "Выберите язык", + "lang.description": "Выберите язык", + + "theme.description": "Тема", + "theme.select": "Выберите тему", + "theme.help": "Текущая активная тема", + "theme.dark":"темная", + "theme.light": "светлая", + "theme.pastel": "пастельная", + "theme.ocean":"морская" +} diff --git a/src/App.jsx b/src/App.jsx index db3ba6b..cd159c1 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -102,59 +102,59 @@ export default class App extends Component { render() { const { uiPrefs, runningTaskCount, isRepositoryConnected } = this.state; return ( - - - - - logo - - - - - - + + + + + logo + + + + + + - - -
{this.state.repoDescription}
-
+ + +
{this.state.repoDescription}
+
- - - - - - - - - - - - - - - - -
-
-
-
+ + + + + + + + + + + + + + + + + +
+
+
); } } diff --git a/src/utils/i18n.js b/src/utils/i18n.js index 90e6115..6c09172 100644 --- a/src/utils/i18n.js +++ b/src/utils/i18n.js @@ -10,14 +10,15 @@ i18n .init({ lng: "en", fallbackLng: "en", - debug: true, ns: ["translation"], defaultNS: "translation", interpolation: { escapeValue: false, }, react: - { useSuspense: true } + { + useSuspense: true + } }); export default i18n; \ No newline at end of file