summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-advanced-reboot
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-advanced-reboot')
-rw-r--r--applications/luci-app-advanced-reboot/Makefile2
-rw-r--r--applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua200
-rw-r--r--applications/luci-app-advanced-reboot/po/hu/advanced-reboot.po10
-rw-r--r--applications/luci-app-advanced-reboot/po/mr/advanced-reboot.po217
-rw-r--r--applications/luci-app-advanced-reboot/po/pt/advanced-reboot.po10
-rw-r--r--applications/luci-app-advanced-reboot/po/ru/advanced-reboot.po10
-rw-r--r--applications/luci-app-advanced-reboot/po/tr/advanced-reboot.po12
-rw-r--r--applications/luci-app-advanced-reboot/po/uk/advanced-reboot.po24
-rw-r--r--applications/luci-app-advanced-reboot/po/zh-cn/advanced-reboot.po10
9 files changed, 367 insertions, 128 deletions
diff --git a/applications/luci-app-advanced-reboot/Makefile b/applications/luci-app-advanced-reboot/Makefile
index 97301fc6af..20f9168936 100644
--- a/applications/luci-app-advanced-reboot/Makefile
+++ b/applications/luci-app-advanced-reboot/Makefile
@@ -13,7 +13,7 @@ LUCI_DESCRIPTION:=Provides Web UI (found under System/Advanced Reboot) to reboot
LUCI_DEPENDS:=+luci-compat +luci-mod-admin-full
LUCI_PKGARCH:=all
-PKG_RELEASE:=46
+PKG_RELEASE:=47
include ../../luci.mk
diff --git a/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua b/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua
index 6ed4c66149..3da7bbe0f2 100644
--- a/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua
+++ b/applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua
@@ -34,7 +34,7 @@ function is_alt_mountable(p1_mtd, p2_mtd)
end
function get_partition_os_info(op_ubi)
- local cp_info, ap_info
+ local cp_info, op_info
if fs.access("/etc/os-release") then
cp_info = util.trim(util.exec('. /etc/os-release && echo "$PRETTY_NAME"'))
if cp_info:find("SNAPSHOT") then
@@ -45,14 +45,14 @@ function get_partition_os_info(op_ubi)
alt_partition_unmount(op_ubi)
alt_partition_mount(op_ubi)
if fs.access("/alt/rom/etc/os-release") then
- ap_info = util.trim(util.exec('. /alt/rom/etc/os-release && echo "$PRETTY_NAME"'))
- if ap_info:find("SNAPSHOT") then
- ap_info = util.trim(util.exec('. /alt/rom/etc/os-release && echo "$OPENWRT_RELEASE"'))
+ op_info = util.trim(util.exec('. /alt/rom/etc/os-release && echo "$PRETTY_NAME"'))
+ if op_info:find("SNAPSHOT") then
+ op_info = util.trim(util.exec('. /alt/rom/etc/os-release && echo "$OPENWRT_RELEASE"'))
end
end
logger(i18n.translate("attempting to unmount alternative partition") .. " (mtd" .. tostring(op_ubi) .. ")")
alt_partition_unmount(op_ubi)
- return cp_info, ap_info
+ return cp_info, op_info
end
function alt_partition_mount(op_ubi)
@@ -87,107 +87,124 @@ function alt_partition_unmount(op_ubi)
end
end
-devices = {
- -- deviceName, boardName, part1MTD, part2MTD, offset, envVar1, envVar1Value1, envVar1Value2, envVar2, envVar2Value1, envVar2Value2
- {"Linksys EA3500", "linksys-audi", "mtd3", "mtd5", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
- {"Linksys E4200v2/EA4500", "linksys-viper", "mtd3", "mtd5", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
- {"Linksys EA6350v3", "linksys-ea6350v3", "mtd10", "mtd12", 192, "boot_part", 1, 2},
- {"Linksys EA8300", "linksys-ea8300", "mtd10", "mtd12", 192, "boot_part", 1, 2},
- {"Linksys EA8500", "ea8500", "mtd13", "mtd15", 32, "boot_part", 1, 2},
--- {"Linksys EA9500", "linksys-panamera", "mtd3", "mtd6", 28, "boot_part", 1, 2},
- {"Linksys WRT1200AC", "linksys-caiman", "mtd4", "mtd6", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
- {"Linksys WRT1900AC", "linksys-mamba", "mtd4", "mtd6", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
- {"Linksys WRT1900ACv2", "linksys-cobra", "mtd4", "mtd6", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
- {"Linksys WRT1900ACS", "linksys-shelby", "mtd4", "mtd6", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
- {"Linksys WRT3200ACM", "linksys-rango", "mtd5", "mtd7", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
- {"Linksys WRT32X", "linksys-venom", "mtd5", "mtd7", nil, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
- {"ZyXEL NBG6817", "nbg6817", "mmcblk0p4", "mmcblk0p7", 32, nil, 255, 1}
-}
-
--- local errorMessage, d
--- local device_name, p1_mtd, p2_mtd, offset, bev1, bev1p1, bev1p2, bev2, bev2p1, bev2p2
-romBoardName = util.trim(util.exec("cat /tmp/sysinfo/board_name"))
-
-for i=1, #devices do
- d = devices[i][2]:gsub('%p','')
- if romBoardName and romBoardName:gsub('%p',''):match(d) then
- device_name = devices[i][1]
- p1_mtd = devices[i][3] or nil
- p2_mtd = devices[i][4] or nil
- offset = devices[i][5] or nil
- bev1 = devices[i][6] or nil
- bev1p1 = tonumber(devices[i][7]) or nil
- bev1p2 = tonumber(devices[i][8]) or nil
- bev2 = devices[i][9] or nil
- bev2p1 = devices[i][10] or nil
- bev2p2 = devices[i][11] or nil
- if p1_mtd and offset then
- p1_label = util.trim(util.exec("dd if=/dev/" .. p1_mtd .. " bs=1 skip=" .. offset .. " count=128" .. " 2>/dev/null"))
- n, p1_version = p1_label:match('(Linux)-([%d|.]+)')
- end
- if p2_mtd and offset then
- p2_label = util.trim(util.exec("dd if=/dev/" .. p2_mtd .. " bs=1 skip=" .. offset .. " count=128" .. " 2>/dev/null"))
- n, p2_version = p2_label:match('(Linux)-([%d|.]+)')
- end
- if p1_label and p1_label:find("LEDE") then p1_os = "LEDE" end
- if p1_label and p1_label:find("OpenWrt") then p1_os = "OpenWrt" end
- if p1_label and p1_label:find("Linksys") then p1_os = "Linksys" end
- if p2_label and p2_label:find("LEDE") then p2_os = "LEDE" end
- if p2_label and p2_label:find("OpenWrt") then p2_os = "OpenWrt" end
- if p2_label and p2_label:find("Linksys") then p2_os = "Linksys" end
- if device_name == "ZyXEL NBG6817" then
- if not p1_os then p1_os = "ZyXEL" end
- if not p2_os then p2_os = "ZyXEL" end
- end
- if device_name == "Linksys WRT32X" then
- if not p1_os then p1_os = "Unknown/Compressed" end
- if not p2_os then p2_os = "Unknown/Compressed" end
- end
- if not p1_os then p1_os = "Unknown" end
- if not p2_os then p2_os = "Unknown" end
- if p1_os and p1_version then p1_os = p1_os .. " (Linux " .. p1_version .. ")" end
- if p2_os and p2_version then p2_os = p2_os .. " (Linux " .. p2_version .. ")" end
-
- if device_name == "ZyXEL NBG6817" then
- if not zyxelFlagPartition then zyxelFlagPartition = util.trim(util.exec(". /lib/functions.sh; find_mtd_part 0:DUAL_FLAG")) end
- if not zyxelFlagPartition then
- errorMessage = errorMessage or "" .. i18n.translate("Unable to find Dual Boot Flag Partition." .. " ")
- util.perror(i18n.translate("Unable to find Dual Boot Flag Partition."))
- else
- current_partition = tonumber(util.exec("dd if=" .. zyxelFlagPartition .. " bs=1 count=1 2>/dev/null | hexdump -n 1 -e '1/1 \"%d\"'"))
+function obtain_device_info()
+ local i, d, p1_mtd, p2_mtd, offset, bev1, bev1p1, bev1p2, bev2, bev2p1, n
+ local p1_label, p1_version, p2_label, p2_version, p1_os, p2_os
+ local errorMessage, current_partition, other_partition
+ local op_ubi, cp_info, op_info
+ local zyxelFlagPartition
+ local devices = {
+ -- deviceName, boardName, part1MTD, part2MTD, offset, envVar1, envVar1Value1, envVar1Value2, envVar2, envVar2Value1, envVar2Value2
+ {"Linksys EA3500", "linksys-audi", "mtd3", "mtd5", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
+ {"Linksys E4200v2/EA4500", "linksys-viper", "mtd3", "mtd5", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
+ {"Linksys EA6350v3", "linksys-ea6350v3", "mtd10", "mtd12", 192, "boot_part", 1, 2},
+ {"Linksys EA8300", "linksys-ea8300", "mtd10", "mtd12", 192, "boot_part", 1, 2},
+ {"Linksys EA8500", "ea8500", "mtd13", "mtd15", 32, "boot_part", 1, 2},
+ -- {"Linksys EA9500", "linksys-panamera", "mtd3", "mtd6", 28, "boot_part", 1, 2},
+ {"Linksys WRT1200AC", "linksys-caiman", "mtd4", "mtd6", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
+ {"Linksys WRT1900AC", "linksys-mamba", "mtd4", "mtd6", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
+ {"Linksys WRT1900ACv2", "linksys-cobra", "mtd4", "mtd6", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
+ {"Linksys WRT1900ACS", "linksys-shelby", "mtd4", "mtd6", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
+ {"Linksys WRT3200ACM", "linksys-rango", "mtd5", "mtd7", 32, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
+ {"Linksys WRT32X", "linksys-venom", "mtd5", "mtd7", nil, "boot_part", 1, 2, "bootcmd", "run nandboot", "run altnandboot"},
+ {"ZyXEL NBG6817", "nbg6817", "mmcblk0p4", "mmcblk0p7", 32, nil, 255, 1}
+ }
+ local romBoardName = util.trim(util.exec("cat /tmp/sysinfo/board_name"))
+ for i=1, #devices do
+ d = devices[i][2]:gsub('%p','')
+ if romBoardName and romBoardName:gsub('%p',''):match(d) then
+ device_name = devices[i][1]
+ p1_mtd = devices[i][3] or nil
+ p2_mtd = devices[i][4] or nil
+ offset = devices[i][5] or nil
+ bev1 = devices[i][6] or nil
+ bev1p1 = tonumber(devices[i][7]) or nil
+ bev1p2 = tonumber(devices[i][8]) or nil
+ bev2 = devices[i][9] or nil
+ bev2p1 = devices[i][10] or nil
+ bev2p2 = devices[i][11] or nil
+ if p1_mtd and offset then
+ p1_label = util.trim(util.exec("dd if=/dev/" .. p1_mtd .. " bs=1 skip=" .. offset .. " count=128" .. " 2>/dev/null"))
+ n, p1_version = p1_label:match('(Linux)-([%d|.]+)')
end
- else
- if fs.access("/usr/sbin/fw_printenv") and fs.access("/usr/sbin/fw_setenv") then
- current_partition = tonumber(util.trim(util.exec("fw_printenv -n " .. bev1)))
+ if p2_mtd and offset then
+ p2_label = util.trim(util.exec("dd if=/dev/" .. p2_mtd .. " bs=1 skip=" .. offset .. " count=128" .. " 2>/dev/null"))
+ n, p2_version = p2_label:match('(Linux)-([%d|.]+)')
end
- end
- other_partition = current_partition == bev1p2 and bev1p1 or bev1p2
-
- if is_alt_mountable(p1_mtd, p2_mtd) then
- if current_partition == bev1p1 then
- op_ubi = tonumber(p2_mtd:sub(4)) + 1
- else
- op_ubi = tonumber(p1_mtd:sub(4)) + 1
+ if p1_label and p1_label:find("LEDE") then p1_os = "LEDE" end
+ if p1_label and p1_label:find("OpenWrt") then p1_os = "OpenWrt" end
+ if p1_label and p1_label:find("Linksys") then p1_os = "Linksys" end
+ if p2_label and p2_label:find("LEDE") then p2_os = "LEDE" end
+ if p2_label and p2_label:find("OpenWrt") then p2_os = "OpenWrt" end
+ if p2_label and p2_label:find("Linksys") then p2_os = "Linksys" end
+ if device_name == "ZyXEL NBG6817" then
+ if not p1_os then p1_os = "ZyXEL" end
+ if not p2_os then p2_os = "ZyXEL" end
+ end
+ if device_name == "Linksys WRT32X" then
+ if not p1_os then p1_os = "Unknown/Compressed" end
+ if not p2_os then p2_os = "Unknown/Compressed" end
end
- local cp_info, ap_info = get_partition_os_info(op_ubi)
- if current_partition == bev1p1 then
- p1_os = cp_info or p1_os
- p2_os = ap_info or p2_os
+ if not p1_os then p1_os = "Unknown" end
+ if not p2_os then p2_os = "Unknown" end
+ if p1_os and p1_version then p1_os = p1_os .. " (Linux " .. p1_version .. ")" end
+ if p2_os and p2_version then p2_os = p2_os .. " (Linux " .. p2_version .. ")" end
+
+ if device_name == "ZyXEL NBG6817" then
+ if not zyxelFlagPartition then zyxelFlagPartition = util.trim(util.exec(". /lib/functions.sh; find_mtd_part 0:DUAL_FLAG")) end
+ if not zyxelFlagPartition then
+ errorMessage = errorMessage or "" .. i18n.translate("Unable to find Dual Boot Flag Partition." .. " ")
+ util.perror(i18n.translate("Unable to find Dual Boot Flag Partition."))
+ else
+ current_partition = tonumber(util.exec("dd if=" .. zyxelFlagPartition .. " bs=1 count=1 2>/dev/null | hexdump -n 1 -e '1/1 \"%d\"'"))
+ end
else
- p1_os = ap_info or p1_os
- p2_os = cp_info or p2_os
+ if fs.access("/usr/sbin/fw_printenv") and fs.access("/usr/sbin/fw_setenv") then
+ current_partition = tonumber(util.trim(util.exec("fw_printenv -n " .. bev1)))
+ end
+ end
+ other_partition = current_partition == bev1p2 and bev1p1 or bev1p2
+
+ if is_alt_mountable(p1_mtd, p2_mtd) then
+ if current_partition == bev1p1 then
+ op_ubi = tonumber(p2_mtd:sub(4)) + 1
+ else
+ op_ubi = tonumber(p1_mtd:sub(4)) + 1
+ end
+ local cp_info, op_info = get_partition_os_info(op_ubi)
+ if current_partition == bev1p1 then
+ p1_os = cp_info or p1_os
+ p2_os = op_info or p2_os
+ else
+ p1_os = op_info or p1_os
+ p2_os = cp_info or p2_os
+ end
end
end
end
+ return romBoardName, device_name, bev1, bev1p1, p1_os, bev1p2, p2_os, bev2, bev2p1, bev2p2, current_partition
end
function index()
- entry({"admin", "system", "advanced_reboot"}, template("advanced_reboot/advanced_reboot"), _("Advanced Reboot"), 90)
+ entry({"admin", "system", "advanced_reboot"}, call("action_template"), _("Advanced Reboot"), 90)
entry({"admin", "system", "advanced_reboot", "reboot"}, post("action_reboot"))
entry({"admin", "system", "advanced_reboot", "alternative_reboot"}, post("action_altreboot"))
entry({"admin", "system", "advanced_reboot", "power_off"}, post("action_poweroff"))
end
+function action_template()
+ local romBoardName, device_name, bev1, bev1p1, p1_os, bev1p2, p2_os, bev2, bev2p1, bev2p2, current_partition = obtain_device_info()
+ ltemplate.render("advanced_reboot/advanced_reboot",{
+ romBoardName=romBoardName,
+ device_name=device_name,
+ bev1p1=bev1p1,
+ p1_os=p1_os,
+ bev1p2=bev1p2,
+ p2_os=p2_os,
+ current_partition=current_partition,
+ errorMessage = errorMessage})
+end
+
function action_reboot()
ltemplate.render("advanced_reboot/applyreboot", {
title = i18n.translate("Rebooting..."),
@@ -198,6 +215,7 @@ function action_reboot()
end
function action_altreboot()
+ local romBoardName, device_name, bev1, bev1p1, p1_os, bev1p2, p2_os, bev2, bev2p1, bev2p2, current_partition = obtain_device_info()
local zyxelFlagPartition, zyxelBootFlag, zyxelNewBootFlag, errorCode, curEnvSetting, newEnvSetting
errorMessage = nil
errorCode = 0
diff --git a/applications/luci-app-advanced-reboot/po/hu/advanced-reboot.po b/applications/luci-app-advanced-reboot/po/hu/advanced-reboot.po
index cc1ac807ff..fbeb98bf2e 100644
--- a/applications/luci-app-advanced-reboot/po/hu/advanced-reboot.po
+++ b/applications/luci-app-advanced-reboot/po/hu/advanced-reboot.po
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2019-11-26 17:11+0000\n"
+"PO-Revision-Date: 2019-12-10 23:15+0000\n"
"Last-Translator: Balázs Úr <balazs@urbalazs.hu>\n"
"Language-Team: Hungarian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsadvanced-reboot/hu/>\n"
@@ -45,7 +45,7 @@ msgstr "HIBA:"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:28
msgid "Firmware"
-msgstr ""
+msgstr "Firmware"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:45
msgid "Loading"
@@ -79,7 +79,7 @@ msgstr "Folytatás"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:29
msgid "Reboot"
-msgstr ""
+msgstr "Újraindítás"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:10
msgid "Reboot Device to an Alternative Partition"
@@ -232,11 +232,11 @@ msgstr "Figyelmeztetés: nem lehet megszerezni az eszköz információit!"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:44
msgid "attempting to mount alternative partition"
-msgstr ""
+msgstr "kísérlet az alternatív partíció csatolására"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:53
msgid "attempting to unmount alternative partition"
-msgstr ""
+msgstr "kísérlet az alternatív partíció leválasztására"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:226
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:227
diff --git a/applications/luci-app-advanced-reboot/po/mr/advanced-reboot.po b/applications/luci-app-advanced-reboot/po/mr/advanced-reboot.po
new file mode 100644
index 0000000000..acf68b2b96
--- /dev/null
+++ b/applications/luci-app-advanced-reboot/po/mr/advanced-reboot.po
@@ -0,0 +1,217 @@
+msgid ""
+msgstr ""
+"PO-Revision-Date: 2020-01-01 23:07+0000\n"
+"Last-Translator: Prachi Joshi <josprachi@yahoo.com>\n"
+"Language-Team: Marathi <https://hosted.weblate.org/projects/openwrt/"
+"luciapplicationsadvanced-reboot/mr/>\n"
+"Language: mr\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n > 1;\n"
+"X-Generator: Weblate 3.10\n"
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:185
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:10
+msgid "Advanced Reboot"
+msgstr "प्रगत रीबूट"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:36
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:60
+msgid "Alternative"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:24
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm:20
+msgid "Cancel"
+msgstr "रद्द करा"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:42
+msgid "Changes applied."
+msgstr "बदल लागू केले."
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:10
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm:10
+msgid "Confirm"
+msgstr "पुष्टी"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:36
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:60
+msgid "Current"
+msgstr "वर्तमान"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:18
+msgid "ERROR:"
+msgstr "त्रुटी:"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:28
+msgid "Firmware"
+msgstr "फर्मवेअर"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:45
+msgid "Loading"
+msgstr "लोड करीत आहे"
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:213
+msgid "No access to fw_printenv or fw_printenv!"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:26
+msgid "Partition"
+msgstr "विभाजन"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:23
+msgid "Partitions"
+msgstr "विभाजने"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:94
+msgid "Perform power off..."
+msgstr "वीज बंद करा ..."
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm:10
+msgid "Power Off Device"
+msgstr "डिव्हाइस बंद करा"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:25
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm:21
+msgid "Proceed"
+msgstr "पुढे जा"
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:29
+msgid "Reboot"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:10
+msgid "Reboot Device to an Alternative Partition"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:50
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:74
+msgid "Reboot to alternative partition..."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:45
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:69
+msgid "Reboot to current partition"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:193
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:264
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:9
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:39
+msgid "Rebooting..."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:297
+msgid "Shutting down..."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:27
+msgid "Status"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:39
+msgid "System"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:194
+msgid ""
+"The system is rebooting now.<br /> DO NOT POWER OFF THE DEVICE!<br /> Wait a "
+"few minutes before you try to reconnect. It might be necessary to renew the "
+"address of your computer to reach the device again, depending on your "
+"settings."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:265
+msgid ""
+"The system is rebooting to an alternative partition now.<br /> DO NOT POWER "
+"OFF THE DEVICE!<br /> Wait a few minutes before you try to reconnect. It "
+"might be necessary to renew the address of your computer to reach the device "
+"again, depending on your settings."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:298
+msgid ""
+"The system is shutting down now.<br /> DO NOT POWER OFF THE DEVICE!<br /> It "
+"might be necessary to renew the address of your computer to reach the device "
+"again, depending on your settings."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:154
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:155
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:248
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:249
+msgid "Unable to find Dual Boot Flag Partition."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:220
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:221
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:234
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:235
+msgid "Unable to obtain firmware environment variable"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:256
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:257
+msgid "Unable to set Dual Boot Flag Partition entry for partition"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:226
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:227
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:240
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:241
+msgid "Unable to set firmware environment variable"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:12
+msgid ""
+"WARNING: An alternative partition might have its own settings and completely "
+"different firmware.<br /><br /> As your network configuration and WiFi SSID/"
+"password on alternative partition might be different, you might have to "
+"adjust your computer settings to be able to access your device once it "
+"reboots.<br /><br /> Please also be aware that alternative partition "
+"firmware might not provide an easy way to switch active partition and boot "
+"back to the currently active partition.<br /><br /> Click \"Proceed\" below "
+"to reboot device to an alternative partition."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm:12
+msgid ""
+"WARNING: Power off might result in a reboot on a device which doesn't "
+"support power off.<br /><br /> Click \"Proceed\" below to power off your "
+"device."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:46
+msgid "Waiting for changes to be applied..."
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:83
+msgid "Warning: Device (%s) is unknown or isn't a dual-partition device!"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:14
+msgid "Warning: There are unsaved changes that will get lost on reboot!"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:97
+msgid "Warning: This system does not support powering off!"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:85
+msgid "Warning: Unable to obtain device information!"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:44
+msgid "attempting to mount alternative partition"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:53
+msgid "attempting to unmount alternative partition"
+msgstr ""
+
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:226
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:227
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:240
+#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:241
+msgid "to"
+msgstr ""
diff --git a/applications/luci-app-advanced-reboot/po/pt/advanced-reboot.po b/applications/luci-app-advanced-reboot/po/pt/advanced-reboot.po
index e11ce2c19e..5e6fbb74f9 100644
--- a/applications/luci-app-advanced-reboot/po/pt/advanced-reboot.po
+++ b/applications/luci-app-advanced-reboot/po/pt/advanced-reboot.po
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2019-11-23 01:49+0000\n"
+"PO-Revision-Date: 2019-12-05 17:08+0000\n"
"Last-Translator: ssantos <ssantos@web.de>\n"
"Language-Team: Portuguese <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsadvanced-reboot/pt/>\n"
@@ -45,7 +45,7 @@ msgstr "ERRO:"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:28
msgid "Firmware"
-msgstr ""
+msgstr "Firmware"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:45
msgid "Loading"
@@ -78,7 +78,7 @@ msgstr "Continuar"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:29
msgid "Reboot"
-msgstr ""
+msgstr "Reiniciar"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:10
msgid "Reboot Device to an Alternative Partition"
@@ -230,11 +230,11 @@ msgstr "Aviso: Incapaz de obter informações do dispositivo!"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:44
msgid "attempting to mount alternative partition"
-msgstr ""
+msgstr "tentando montar partição alternativa"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:53
msgid "attempting to unmount alternative partition"
-msgstr ""
+msgstr "tentando desmontar uma partição alternativa"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:226
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:227
diff --git a/applications/luci-app-advanced-reboot/po/ru/advanced-reboot.po b/applications/luci-app-advanced-reboot/po/ru/advanced-reboot.po
index b91439434f..cce74c4e4f 100644
--- a/applications/luci-app-advanced-reboot/po/ru/advanced-reboot.po
+++ b/applications/luci-app-advanced-reboot/po/ru/advanced-reboot.po
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: LuCI: advanced-reboot\n"
"POT-Creation-Date: 2017-11-30 15:20+0300\n"
-"PO-Revision-Date: 2019-11-15 03:06+0000\n"
-"Last-Translator: Alex Vinnick <alexv10@gmail.com>\n"
+"PO-Revision-Date: 2019-12-26 18:23+0000\n"
+"Last-Translator: Alex Ky <esthomolupus@gmail.com>\n"
"Language-Team: Russian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsadvanced-reboot/ru/>\n"
"Language: ru\n"
@@ -12,7 +12,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<="
"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
-"X-Generator: Weblate 3.10-dev\n"
+"X-Generator: Weblate 3.10\n"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:185
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:10
@@ -82,7 +82,7 @@ msgstr "Продолжить"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:29
msgid "Reboot"
-msgstr ""
+msgstr "Перезагрузка"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:10
msgid "Reboot Device to an Alternative Partition"
@@ -220,7 +220,7 @@ msgstr ""
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:14
msgid "Warning: There are unsaved changes that will get lost on reboot!"
msgstr ""
-"Внимание: Есть несохраненные изменения, которые будут потеряны при "
+"Внимание: Есть не сохраненные изменения, которые будут потеряны при "
"перезагрузке!"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:97
diff --git a/applications/luci-app-advanced-reboot/po/tr/advanced-reboot.po b/applications/luci-app-advanced-reboot/po/tr/advanced-reboot.po
index 7c24c3070b..76e7d91cee 100644
--- a/applications/luci-app-advanced-reboot/po/tr/advanced-reboot.po
+++ b/applications/luci-app-advanced-reboot/po/tr/advanced-reboot.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2019-11-13 13:08+0000\n"
-"Last-Translator: Yunus BAYRAK <yunus@baygunelektronik.com>\n"
+"PO-Revision-Date: 2019-12-04 12:07+0000\n"
+"Last-Translator: Caglar Ozalp <cozalp@gmail.com>\n"
"Language-Team: Turkish <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsadvanced-reboot/tr/>\n"
"Language: tr\n"
@@ -45,7 +45,7 @@ msgstr "HATA:"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:28
msgid "Firmware"
-msgstr ""
+msgstr "Cihaz yazılımı"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:45
msgid "Loading"
@@ -78,7 +78,7 @@ msgstr "İlerle"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:29
msgid "Reboot"
-msgstr ""
+msgstr "Yeniden başlat"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:10
msgid "Reboot Device to an Alternative Partition"
@@ -132,6 +132,10 @@ msgid ""
"might be necessary to renew the address of your computer to reach the device "
"again, depending on your settings."
msgstr ""
+"Sistem şimdi alternatif bir bölüme yeniden başlıyor. <br /> CİHAZI "
+"KAPATMAYIN! <br /> Yeniden bağlanmayı denemeden önce birkaç dakika bekleyin. "
+"Ayarlarınıza bağlı olarak, aygıta tekrar erişmek için bilgisayarınızın "
+"adresini yenilemeniz gerekebilir."
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:298
msgid ""
diff --git a/applications/luci-app-advanced-reboot/po/uk/advanced-reboot.po b/applications/luci-app-advanced-reboot/po/uk/advanced-reboot.po
index 1d4bcdc059..36e31c2184 100644
--- a/applications/luci-app-advanced-reboot/po/uk/advanced-reboot.po
+++ b/applications/luci-app-advanced-reboot/po/uk/advanced-reboot.po
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
-"PO-Revision-Date: 2019-11-05 01:57+0000\n"
+"PO-Revision-Date: 2019-12-15 21:23+0000\n"
"Last-Translator: Yurii Petrashko <yuripet@gmail.com>\n"
"Language-Team: Ukrainian <https://hosted.weblate.org/projects/openwrt/"
"luciapplicationsadvanced-reboot/uk/>\n"
@@ -14,12 +14,12 @@ msgstr ""
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:185
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:10
msgid "Advanced Reboot"
-msgstr ""
+msgstr "Розширене перезавантаження"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:36
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:60
msgid "Alternative"
-msgstr ""
+msgstr "Альтернатива"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:24
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm:20
@@ -28,21 +28,21 @@ msgstr "Скасувати"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:42
msgid "Changes applied."
-msgstr ""
+msgstr "Зміни застосовано."
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:10
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm:10
msgid "Confirm"
-msgstr ""
+msgstr "Підтвердити"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:36
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:60
msgid "Current"
-msgstr ""
+msgstr "Поточний"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:18
msgid "ERROR:"
-msgstr ""
+msgstr "ПОМИЛКА:"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:28
msgid "Firmware"
@@ -58,11 +58,11 @@ msgstr ""
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:26
msgid "Partition"
-msgstr ""
+msgstr "Розділ"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:23
msgid "Partitions"
-msgstr ""
+msgstr "Розділи"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:94
msgid "Perform power off..."
@@ -75,11 +75,11 @@ msgstr ""
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:25
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/power_off.htm:21
msgid "Proceed"
-msgstr ""
+msgstr "Продовжити"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:29
msgid "Reboot"
-msgstr ""
+msgstr "Перезавантаження"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm:10
msgid "Reboot Device to an Alternative Partition"
@@ -100,7 +100,7 @@ msgstr ""
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:9
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:39
msgid "Rebooting..."
-msgstr ""
+msgstr "Перезавантаження..."
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:297
msgid "Shutting down..."
diff --git a/applications/luci-app-advanced-reboot/po/zh-cn/advanced-reboot.po b/applications/luci-app-advanced-reboot/po/zh-cn/advanced-reboot.po
index 38d8848f30..3ed723b257 100644
--- a/applications/luci-app-advanced-reboot/po/zh-cn/advanced-reboot.po
+++ b/applications/luci-app-advanced-reboot/po/zh-cn/advanced-reboot.po
@@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
-"PO-Revision-Date: 2019-12-03 08:27+0000\n"
-"Last-Translator: Meano Lee <meanocat@gmail.com>\n"
+"PO-Revision-Date: 2019-12-04 12:07+0000\n"
+"Last-Translator: lissom <kkjoy2617@gmail.com>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
"openwrt/luciapplicationsadvanced-reboot/zh_Hans/>\n"
"Language: zh-cn\n"
@@ -51,7 +51,7 @@ msgstr "错误:"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm:28
msgid "Firmware"
-msgstr ""
+msgstr "固件"
#: applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm:45
msgid "Loading"
@@ -222,11 +222,11 @@ msgstr "警告:无法获取设备信息!"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:44
msgid "attempting to mount alternative partition"
-msgstr ""
+msgstr "正在尝试装载备用分区"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:53
msgid "attempting to unmount alternative partition"
-msgstr ""
+msgstr "正在尝试卸载备用分区"
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:226
#: applications/luci-app-advanced-reboot/luasrc/controller/advanced_reboot.lua:227