diff options
author | Daniel Nilsson <daniel.nilsson94@outlook.com> | 2024-02-28 23:12:55 +0100 |
---|---|---|
committer | Paul Donald <itsascambutmailmeanyway@gmail.com> | 2024-03-19 17:22:44 +0100 |
commit | c608a15a9c53a19654f5a36ba2056a7a1eb561da (patch) | |
tree | f6aaa47d4dc22d6ac77d4322d9109b8c6bbdf6f9 /applications/luci-app-attendedsysupgrade/po/fa/attendedsysupgrade.po | |
parent | 374af8b522796424e2b915a4113ed37d22ae653c (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/fa/attendedsysupgrade.po')
-rw-r--r-- | applications/luci-app-attendedsysupgrade/po/fa/attendedsysupgrade.po | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/applications/luci-app-attendedsysupgrade/po/fa/attendedsysupgrade.po b/applications/luci-app-attendedsysupgrade/po/fa/attendedsysupgrade.po index bc4f7cd366..588f3d420a 100644 --- a/applications/luci-app-attendedsysupgrade/po/fa/attendedsysupgrade.po +++ b/applications/luci-app-attendedsysupgrade/po/fa/attendedsysupgrade.po @@ -23,7 +23,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 "در Sysupgrade ثبت شد" @@ -32,20 +32,20 @@ msgstr "در Sysupgrade ثبت شد" msgid "Attendedsysupgrade Configuration." msgstr "تنظیمات sysupgrade ثبت شد" -#: 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 "لغو" @@ -53,10 +53,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 "بستن" @@ -64,20 +64,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 "دانلود تصویر سیستم عامل" @@ -85,31 +85,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 "سامانهپرونده" @@ -121,27 +121,27 @@ msgstr "در حال ساخت ایمیج سیستم عامل" msgid "Grant UCI access to LuCI app attendedsysupgrade" msgstr "به UCI اجازه دسترسی به برنامه LuCI اعطا کنید تا در حال ارتقاء باشد" -#: 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 "هیچ ارتقایی در دسترس نیست" @@ -157,23 +157,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 "در صف..." @@ -181,7 +181,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 "بازسازی ها" @@ -189,23 +189,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 "جستجو برای ارتقاء سیستم عامل" @@ -217,11 +217,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 "جستجو برای ارتقاء سیستم موجود %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 "درحال جستجو..." @@ -229,7 +229,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" @@ -241,15 +241,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." @@ -257,22 +257,22 @@ 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 "اشتباه در checksum" -#: 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" |