summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-attendedsysupgrade/po/ru/attendedsysupgrade.po
diff options
context:
space:
mode:
authorDaniel Nilsson <daniel.nilsson94@outlook.com>2024-02-28 23:12:55 +0100
committerPaul Donald <itsascambutmailmeanyway@gmail.com>2024-03-19 17:22:44 +0100
commitc608a15a9c53a19654f5a36ba2056a7a1eb561da (patch)
treef6aaa47d4dc22d6ac77d4322d9109b8c6bbdf6f9 /applications/luci-app-attendedsysupgrade/po/ru/attendedsysupgrade.po
parent374af8b522796424e2b915a4113ed37d22ae653c (diff)
luci-app-attendedsysupgrade: don't reassign data and firmware info
The reassignment of the variable that holds the package information once you get a response from the sysupgrade server caused the package list (which is only loaded once when entering the app) to become an array instead of an object (since that's how the response is structured), which gave the result of once cancelling the firmware upgrade, the package list is now an array, making the package list unusable. This commit updates the variables that shouldn't be changed (data and firmware) to constants and all handle methods to take these values as parameters instead, allowing us to avoid the possible reassignment which will otherwise result in unexpected control flows. Ref: #6284 Signed-off-by: Daniel Nilsson <daniel.nilsson94@outlook.com>
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/po/ru/attendedsysupgrade.po')
-rw-r--r--applications/luci-app-attendedsysupgrade/po/ru/attendedsysupgrade.po104
1 files changed, 52 insertions, 52 deletions
diff --git a/applications/luci-app-attendedsysupgrade/po/ru/attendedsysupgrade.po b/applications/luci-app-attendedsysupgrade/po/ru/attendedsysupgrade.po
index b023277809..892fe1b16a 100644
--- a/applications/luci-app-attendedsysupgrade/po/ru/attendedsysupgrade.po
+++ b/applications/luci-app-attendedsysupgrade/po/ru/attendedsysupgrade.po
@@ -24,7 +24,7 @@ msgid "Advanced Mode"
msgstr "Расширенный режим"
#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/configuration.js:11
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:610
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:600
#: applications/luci-app-attendedsysupgrade/root/usr/share/luci/menu.d/luci-app-attendedsysupgrade.json:3
msgid "Attended Sysupgrade"
msgstr "Обновление Системы"
@@ -33,20 +33,20 @@ msgstr "Обновление Системы"
msgid "Attendedsysupgrade Configuration."
msgstr "Конфигурация обновления системы."
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:521
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:511
msgid "Board Name / Profile"
msgstr "Имя платформы / Профиль"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:132
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:116
msgid "Build Date"
msgstr "Дата сборки"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:209
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:193
msgid "Building Firmware..."
msgstr "Сборка прошивки..."
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:172
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:536
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:156
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:526
msgid "Cancel"
msgstr "Отмена"
@@ -54,10 +54,10 @@ msgstr "Отмена"
msgid "Client"
msgstr "Клиент"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:247
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:381
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:436
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:570
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:237
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:374
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:429
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:563
msgid "Close"
msgstr "Закрыть"
@@ -65,20 +65,20 @@ msgstr "Закрыть"
msgid "Configuration"
msgstr "Конфигурация"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:430
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:423
msgid "Could not reach API at \"%s\". Please try again later."
msgstr "API сервера \"%s\" недоступен. Пожалуйста, попробуйте позднее."
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:529
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:625
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:519
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:615
msgid "Currently running: %s - %s"
msgstr "Сейчас работает: %s - %s"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:299
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:289
msgid "Download"
msgstr "Скачать"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:143
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:127
msgid "Download firmware image"
msgstr "Скачать образ прошивки"
@@ -86,31 +86,31 @@ msgstr "Скачать образ прошивки"
msgid "Downloading ImageBuilder archive"
msgstr "Загрузка архива ImageBuilder"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:342
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:335
msgid "Downloading firmware from server to browser"
msgstr "Скачивание прошивки с сервера через браузер"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:338
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:331
msgid "Downloading..."
msgstr "Скачивание..."
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:251
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:241
msgid "Error building the firmware image"
msgstr "Ошибка сборки образа прошивки"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:426
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:419
msgid "Error connecting to upgrade server"
msgstr "Ошибка соединения с сервером обновления"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:379
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:372
msgid "Error during download of firmware. Please try again"
msgstr "Ошибка при скачивании прошивки. Пожалуйста, попробуйте ещё раз"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:134
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:118
msgid "Filename"
msgstr "Имя файла"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:136
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:120
msgid "Filesystem"
msgstr "Файловая система"
@@ -122,27 +122,27 @@ msgstr "Создание образа прошивки"
msgid "Grant UCI access to LuCI app attendedsysupgrade"
msgstr "Предоставить UCI доступ к приложению LuCI attendedsysupgrade"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:182
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:166
msgid "Install firmware image"
msgstr "Установить образ прошивки"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:388
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:381
msgid "Installing the sysupgrade. Do not unpower device!"
msgstr "Установка обновления системы. Не выключайте устройство!"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:384
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:377
msgid "Installing..."
msgstr "Установка..."
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:168
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:152
msgid "Keep settings and retain the current configuration"
msgstr "Сохранить настройки и оставить текущую конфигурацию"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:526
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:516
msgid "New firmware upgrade available"
msgstr "Новое обновление прошивки доступно"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:561
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:554
msgid "No upgrade available"
msgstr "Нет доступных обновлений"
@@ -158,23 +158,23 @@ msgstr ""
msgid "Overview"
msgstr "Обзор"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:522
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:512
msgid "Packages"
msgstr "Пакеты"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:229
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:219
msgid "Please report the error message and request"
msgstr "Пожалуйста, сообщите текст ошибки и запроса"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:128
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:112
msgid "Profile"
msgstr "Профиль"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:213
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:197
msgid "Progress: %s%% %s"
msgstr "Ход выполнения: %s%% %s"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:199
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:183
msgid "Queued..."
msgstr "В очереди..."
@@ -182,7 +182,7 @@ msgstr "В очереди..."
msgid "Rebuilders"
msgstr "Реконструкторы"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:146
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:130
msgid "Rebuilds"
msgstr "Перестраивает"
@@ -190,23 +190,23 @@ msgstr "Перестраивает"
msgid "Received build request"
msgstr "Получен запрос на сборку"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:231
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:221
msgid "Request Data:"
msgstr "Данные запроса:"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:555
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:548
msgid "Request firmware image"
msgstr "Запросить образ прошивки"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:203
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:187
msgid "Request in build queue position %s"
msgstr "Запрос в очереди сборки, позиция %s"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:122
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:106
msgid "SHA256"
msgstr "SHA256"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:636
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:626
msgid "Search for firmware upgrade"
msgstr "Поиск обновлений прошивки"
@@ -218,11 +218,11 @@ msgstr "Искать новые системные обновления при
msgid "Search on opening"
msgstr "Искать при открытии"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:417
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:410
msgid "Searching for an available sysupgrade of %s - %s"
msgstr "Поиск доступной версии sysupgrade %s - %s"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:413
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:406
msgid "Searching..."
msgstr "Поиск..."
@@ -230,7 +230,7 @@ msgstr "Поиск..."
msgid "Server"
msgstr "Сервер"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:225
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:215
msgid "Server response: %s"
msgstr "Ответ сервера: %s"
@@ -242,15 +242,15 @@ msgstr "Настройка ImageBuilder"
msgid "Show advanced options like package list modification"
msgstr "Показать расширенные параметры, такие как модификация списка пакетов"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:187
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:171
msgid "Successfully created firmware image"
msgstr "Образ прошивки создан успешно"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:130
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:114
msgid "Target"
msgstr "Приоритет"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:614
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:604
msgid ""
"The attended sysupgrade service allows to easily upgrade vanilla and custom "
"firmware images."
@@ -258,21 +258,21 @@ msgstr ""
"Данная служба позволяет легко обновлять ванильные и пользовательские образы "
"прошивки."
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:564
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:557
msgid "The device runs the latest firmware version %s - %s"
msgstr "На устройстве установлена последняя версия прошивки %s - %s"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:620
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:610
msgid ""
"This is done by building a new firmware on demand via an online service."
msgstr ""
"Это делается путём создания новой прошивки по требованию через онлайн-сервис."
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:364
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:357
msgid "Uploading firmware from browser to device"
msgstr "Загрузка прошивки из браузера на устройство"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:360
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:353
msgid "Uploading..."
msgstr "Загрузка..."
@@ -280,15 +280,15 @@ msgstr "Загрузка..."
msgid "Validate package selection"
msgstr "Проверка выбора пакета"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:120
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:104
msgid "Version"
msgstr "Версия"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:376
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:369
msgid "Wrong checksum"
msgstr "Неверная контрольная сумма"
-#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:506
+#: applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js:496
msgid "[installed] %s"
msgstr "[установлено] %s"