Инициализация интернационализации. Перевод на en, ru для эндпоинтов api/v1
This commit is contained in:
parent
48e8551b0e
commit
9ac52c8a8b
16 changed files with 990 additions and 181 deletions
BIN
SRV/locales/en/LC_MESSAGES/api_v1.mo
Normal file
BIN
SRV/locales/en/LC_MESSAGES/api_v1.mo
Normal file
Binary file not shown.
219
SRV/locales/en/LC_MESSAGES/api_v1.po
Normal file
219
SRV/locales/en/LC_MESSAGES/api_v1.po
Normal file
|
|
@ -0,0 +1,219 @@
|
|||
# English translations for PROJECT.
|
||||
# Copyright (C) 2025 ORGANIZATION
|
||||
# This file is distributed under the same license as the PROJECT project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2025-07-08 14:53+0500\n"
|
||||
"PO-Revision-Date: 2025-07-08 14:54+0500\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: en\n"
|
||||
"Language-Team: en <LL@li.org>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.17.0\n"
|
||||
|
||||
#: api/v1/auth.py:44
|
||||
msgid "Не удалось зарегистрировать пользователя"
|
||||
msgstr "Failed to register user"
|
||||
|
||||
#: api/v1/auth.py:75
|
||||
msgid "Не удалось авторизовать пользователя"
|
||||
msgstr "Failed to authorize user"
|
||||
|
||||
#: api/v1/auth.py:103
|
||||
msgid "bearer"
|
||||
msgstr "bearer"
|
||||
|
||||
#: api/v1/auth.py:109
|
||||
msgid "Не удалось получить данные пользователя"
|
||||
msgstr "Failed to retrieve user data"
|
||||
|
||||
#: api/v1/auth.py:136
|
||||
msgid "Не удалось выйти из системы"
|
||||
msgstr "Failed to log out"
|
||||
|
||||
#: api/v1/auth.py:162
|
||||
msgid "Файл users.json не существует"
|
||||
msgstr "The users.json file does not exist"
|
||||
|
||||
#: api/v1/auth.py:172
|
||||
msgid "Файл users.json существует и содержит пользователей"
|
||||
msgstr "The users.json file exists and contains users"
|
||||
|
||||
#: api/v1/auth.py:179
|
||||
msgid "Файл users.json существует, но не содержит пользователей"
|
||||
msgstr "The users.json file exists but contains no users"
|
||||
|
||||
#: api/v1/auth.py:183
|
||||
msgid "Ошибка при проверке файла"
|
||||
msgstr "Error checking file"
|
||||
|
||||
#: api/v1/ip.py:36 api/v1/ip.py:73 api/v1/ip.py:110
|
||||
#, python-brace-format
|
||||
msgid "Ошибка проверки IP конфигурации: {error}"
|
||||
msgstr "IP configuration check error: {error}"
|
||||
|
||||
#: api/v1/ip.py:64 api/v1/ip.py:101
|
||||
#, python-brace-format
|
||||
msgid "Настройки сетевого профиля для {connection_id} применены"
|
||||
msgstr "Network profile settings for {connection_id} applied"
|
||||
|
||||
#: api/v1/network.py:62
|
||||
#, python-brace-format
|
||||
msgid "Неверное имя контейнера: {container_name}"
|
||||
msgstr "Invalid container name: {container_name}"
|
||||
|
||||
#: api/v1/network.py:129
|
||||
msgid "Не удалось получить сетевые данные"
|
||||
msgstr "Failed to retrieve network data"
|
||||
|
||||
#: api/v1/network.py:182
|
||||
msgid ""
|
||||
"Отсутствуют обязательные поля: container_id, container_x, container_y, "
|
||||
"isOpen"
|
||||
msgstr "Missing required fields: container_id, container_x, container_y, isOpen"
|
||||
|
||||
#: api/v1/network.py:194
|
||||
msgid "Неверный тип данных в запросе"
|
||||
msgstr "Invalid data type in request"
|
||||
|
||||
#: api/v1/network.py:199
|
||||
msgid "Позиция и состояние контейнера обновлены"
|
||||
msgstr "Container position and state updated"
|
||||
|
||||
#: api/v1/network.py:203
|
||||
#, python-brace-format
|
||||
msgid "Не удалось обновить положение контейнера: {error}"
|
||||
msgstr "Failed to update container position: {error}"
|
||||
|
||||
#: api/v1/network.py:225
|
||||
msgid "Не удалось получить имя хоста"
|
||||
msgstr "Failed to retrieve hostname"
|
||||
|
||||
#: api/v1/settings.py:37
|
||||
msgid "Данные узлов подсети успешно очищены"
|
||||
msgstr "Subnet node data cleared successfully"
|
||||
|
||||
#: api/v1/settings.py:39
|
||||
msgid "Не удалось очистить данные узлов подсети"
|
||||
msgstr "Failed to clear subnet node data"
|
||||
|
||||
#: api/v1/settings.py:42 api/v1/settings.py:67 api/v1/settings.py:92
|
||||
#, python-brace-format
|
||||
msgid "Ошибка очистки: {error}"
|
||||
msgstr "Cleanup error: {error}"
|
||||
|
||||
#: api/v1/settings.py:62
|
||||
msgid "Данные точек доступа Wi-Fi успешно очищены"
|
||||
msgstr "Wi-Fi access point data cleared successfully"
|
||||
|
||||
#: api/v1/settings.py:64
|
||||
msgid "Не удалось очистить данные точек доступа Wi-Fi"
|
||||
msgstr "Failed to clear Wi-Fi access point data"
|
||||
|
||||
#: api/v1/settings.py:87
|
||||
msgid "Все сетевые данные успешно очищены"
|
||||
msgstr "All network data cleared successfully"
|
||||
|
||||
#: api/v1/settings.py:89
|
||||
msgid "Не удалось очистить все сетевые данные"
|
||||
msgstr "Failed to clear all network data"
|
||||
|
||||
#: api/v1/settings.py:113 api/v1/settings.py:137
|
||||
msgid "Файл не найден"
|
||||
msgstr "File not found"
|
||||
|
||||
#: api/v1/subnet.py:36
|
||||
#, python-brace-format
|
||||
msgid "Ошибка сканирования: {error}"
|
||||
msgstr "Scan error: {error}"
|
||||
|
||||
#: api/v1/subnet.py:59
|
||||
#, python-brace-format
|
||||
msgid "Ошибка сканирования Wi-Fi: {error}"
|
||||
msgstr "Wi-Fi scan error: {error}"
|
||||
|
||||
#: api/v1/subnet.py:87
|
||||
#, python-brace-format
|
||||
msgid "Заметка '{note}' добавлена для устройства {mac}"
|
||||
msgstr "Note '{note}' added for device {mac}"
|
||||
|
||||
#: api/v1/subnet.py:91 api/v1/subnet.py:186
|
||||
#, python-brace-format
|
||||
msgid "Ошибка добавления заметки: {error}"
|
||||
msgstr "Error adding note: {error}"
|
||||
|
||||
#: api/v1/subnet.py:119
|
||||
#, python-brace-format
|
||||
msgid "Заметка '{note}' обновлена для устройства {mac}"
|
||||
msgstr "Note '{note}' updated for device {mac}"
|
||||
|
||||
#: api/v1/subnet.py:123 api/v1/subnet.py:218
|
||||
#, python-brace-format
|
||||
msgid "Ошибка обновления заметки: {error}"
|
||||
msgstr "Error updating note: {error}"
|
||||
|
||||
#: api/v1/subnet.py:150
|
||||
#, python-brace-format
|
||||
msgid "Заметка удалена для устройства {mac}"
|
||||
msgstr "Note deleted for device {mac}"
|
||||
|
||||
#: api/v1/subnet.py:154 api/v1/subnet.py:249
|
||||
#, python-brace-format
|
||||
msgid "Ошибка удаления заметки: {error}"
|
||||
msgstr "Error deleting note: {error}"
|
||||
|
||||
#: api/v1/subnet.py:182
|
||||
#, python-brace-format
|
||||
msgid "Заметка '{note}' добавлена для сети с SSID {ssid}"
|
||||
msgstr "Note '{note}' added for network with SSID {ssid}"
|
||||
|
||||
#: api/v1/subnet.py:214
|
||||
#, python-brace-format
|
||||
msgid "Заметка '{note}' обновлена для сети с SSID {ssid}"
|
||||
msgstr "Note '{note}' updated for network with SSID {ssid}"
|
||||
|
||||
#: api/v1/subnet.py:245
|
||||
#, python-brace-format
|
||||
msgid "Заметка удалена для сети с SSID {ssid}"
|
||||
msgstr "Note deleted for network with SSID {ssid}"
|
||||
|
||||
#: api/v1/subnet.py:273
|
||||
#, python-brace-format
|
||||
msgid "Успешно подключено к {ssid}"
|
||||
msgstr "Successfully connected to {ssid}"
|
||||
|
||||
#: api/v1/subnet.py:277
|
||||
#, python-brace-format
|
||||
msgid "Ошибка подключения к Wi-Fi: {error}"
|
||||
msgstr "Wi-Fi connection error: {error}"
|
||||
|
||||
#: api/v1/subnet.py:300
|
||||
#, python-brace-format
|
||||
msgid "Успешно отключено от {ssid}"
|
||||
msgstr "Successfully disconnected from {ssid}"
|
||||
|
||||
#: api/v1/subnet.py:304
|
||||
#, python-brace-format
|
||||
msgid "Ошибка отключения от Wi-Fi: {error}"
|
||||
msgstr "Wi-Fi disconnection error: {error}"
|
||||
|
||||
#: api/v1/subnet.py:328
|
||||
msgid "connected"
|
||||
msgstr "connected"
|
||||
|
||||
#: api/v1/subnet.py:332
|
||||
#, python-brace-format
|
||||
msgid "Ошибка проверки статуса Wi-Fi: {error}"
|
||||
msgstr "Wi-Fi status check error: {error}"
|
||||
|
||||
#: api/v1/websocket.py:145
|
||||
msgid "Ошибка: Ключ 'activation' отсутствует в полученных данных сети"
|
||||
msgstr "Error: 'activation' key missing in received network data"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue