add update all, fix typo

This commit is contained in:
Ing 2023-07-13 00:51:10 +08:00
parent cf9663c539
commit 3bd5023f51
4 changed files with 218 additions and 156 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-11 21:15+0800\n" "POT-Creation-Date: 2023-07-12 23:47+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -223,7 +223,7 @@ msgstr ""
msgid "Choose the model" msgid "Choose the model"
msgstr "" msgstr ""
#: menu.sh:154 menu.sh:1765 #: menu.sh:154 menu.sh:1808
msgid "Choose a product version" msgid "Choose a product version"
msgstr "" msgstr ""
@ -251,7 +251,7 @@ msgstr ""
msgid "Reconfiguring Synoinfo, Addons and Modules" msgid "Reconfiguring Synoinfo, Addons and Modules"
msgstr "" msgstr ""
#: menu.sh:260 menu.sh:405 menu.sh:546 menu.sh:687 menu.sh:1633 #: menu.sh:260 menu.sh:405 menu.sh:546 menu.sh:687 menu.sh:1655
msgid "Choose a option" msgid "Choose a option"
msgstr "" msgstr ""
@ -275,14 +275,14 @@ msgstr ""
msgid "Upload a external addon" msgid "Upload a external addon"
msgstr "" msgstr ""
#: menu.sh:266 menu.sh:412 menu.sh:542 menu.sh:682 menu.sh:995 menu.sh:1640 #: menu.sh:266 menu.sh:412 menu.sh:542 menu.sh:682 menu.sh:995 menu.sh:1663
#: menu.sh:1788 menu.sh:1856 #: menu.sh:1831 menu.sh:1899
msgid "Exit" msgid "Exit"
msgstr "" msgstr ""
#: menu.sh:278 menu.sh:283 menu.sh:289 menu.sh:300 menu.sh:308 menu.sh:326 #: menu.sh:278 menu.sh:283 menu.sh:289 menu.sh:300 menu.sh:308 menu.sh:326
#: menu.sh:340 menu.sh:345 menu.sh:349 menu.sh:363 menu.sh:367 menu.sh:374 #: menu.sh:340 menu.sh:345 menu.sh:349 menu.sh:363 menu.sh:367 menu.sh:374
#: menu.sh:377 menu.sh:1767 #: menu.sh:377 menu.sh:1810
msgid "Addons" msgid "Addons"
msgstr "" msgstr ""
@ -306,7 +306,7 @@ msgstr ""
msgid "Select addon to remove" msgid "Select addon to remove"
msgstr "" msgstr ""
#: menu.sh:346 menu.sh:1236 menu.sh:1267 menu.sh:1300 menu.sh:1702 #: menu.sh:346 menu.sh:1236 menu.sh:1267 menu.sh:1300 menu.sh:1745
msgid "This feature is only available when accessed via web/ssh." msgid "This feature is only available when accessed via web/ssh."
msgstr "" msgstr ""
@ -314,7 +314,7 @@ msgstr ""
msgid "Please upload the *.addons file." msgid "Please upload the *.addons file."
msgstr "" msgstr ""
#: menu.sh:364 menu.sh:517 menu.sh:1729 menu.sh:1743 #: menu.sh:364 menu.sh:517 menu.sh:1772 menu.sh:1786
msgid "Not a valid file, please try again!" msgid "Not a valid file, please try again!"
msgstr "" msgstr ""
@ -331,7 +331,7 @@ msgid "File format not recognized!"
msgstr "" msgstr ""
#: menu.sh:393 menu.sh:421 menu.sh:425 menu.sh:442 menu.sh:455 menu.sh:469 #: menu.sh:393 menu.sh:421 menu.sh:425 menu.sh:442 menu.sh:455 menu.sh:469
#: menu.sh:475 menu.sh:494 menu.sh:497 menu.sh:512 menu.sh:516 menu.sh:1768 #: menu.sh:475 menu.sh:494 menu.sh:497 menu.sh:512 menu.sh:516 menu.sh:1811
msgid "Modules" msgid "Modules"
msgstr "" msgstr ""
@ -608,7 +608,7 @@ msgstr ""
msgid "Addon %s not found!" msgid "Addon %s not found!"
msgstr "" msgstr ""
#: menu.sh:953 menu.sh:1839 #: menu.sh:953 menu.sh:1882
msgid "Cleaning" msgid "Cleaning"
msgstr "" msgstr ""
@ -691,7 +691,7 @@ msgstr ""
msgid "Advanced" msgid "Advanced"
msgstr "" msgstr ""
#: menu.sh:998 menu.sh:1791 #: menu.sh:998 menu.sh:1834
msgid "Choose the option" msgid "Choose the option"
msgstr "" msgstr ""
@ -899,7 +899,7 @@ msgstr ""
msgid "Config changed, would you like to rebuild the loader?" msgid "Config changed, would you like to rebuild the loader?"
msgstr "" msgstr ""
#: menu.sh:1461 menu.sh:1782 #: menu.sh:1461 menu.sh:1825
msgid "Choose a language" msgid "Choose a language"
msgstr "" msgstr ""
@ -911,196 +911,205 @@ msgstr ""
msgid "Choice a keymap" msgid "Choice a keymap"
msgstr "" msgstr ""
#: menu.sh:1505 menu.sh:1538 menu.sh:1588 menu.sh:1645 menu.sh:1653 #: menu.sh:1506 menu.sh:1554 menu.sh:1605 menu.sh:1668 menu.sh:1672
#: menu.sh:1661 menu.sh:1669 #: menu.sh:1676 menu.sh:1680 menu.sh:1688 menu.sh:1696 menu.sh:1704
#: menu.sh:1712
msgid "Update %s" msgid "Update %s"
msgstr "" msgstr ""
#: menu.sh:1508 #: menu.sh:1509
msgid "Checking last version" msgid "Checking last version"
msgstr "" msgstr ""
#: menu.sh:1516 #: menu.sh:1518 menu.sh:1521
msgid "Error checking new version" msgid "Error checking new version"
msgstr "" msgstr ""
#: menu.sh:1521 #: menu.sh:1528
msgid "No new version."
msgstr ""
#: menu.sh:1531
msgid "No new version. Actual version is %s\\nForce update?" msgid "No new version. Actual version is %s\\nForce update?"
msgstr "" msgstr ""
#: menu.sh:1525 #: menu.sh:1536
msgid "Downloading last version" msgid "Downloading last version"
msgstr "" msgstr ""
#: menu.sh:1530 #: menu.sh:1542 menu.sh:1545
msgid "Error downloading new version" msgid "Error downloading new version"
msgstr "" msgstr ""
#: menu.sh:1540 menu.sh:1590 #: menu.sh:1556 menu.sh:1607
msgid "Extracting last version" msgid "Extracting last version"
msgstr "" msgstr ""
#: menu.sh:1544 #: menu.sh:1560
msgid "Error extracting update file" msgid "Error extracting update file"
msgstr "" msgstr ""
#: menu.sh:1551 #: menu.sh:1567
msgid "Checksum do not match!" msgid "Checksum do not match!"
msgstr "" msgstr ""
#: menu.sh:1560 #: menu.sh:1576
msgid "" msgid ""
"The current version does not support upgrading to the latest update.zip. " "The current version does not support upgrading to the latest update.zip. "
"Please remake the bootloader disk!" "Please remake the bootloader disk!"
msgstr "" msgstr ""
#: menu.sh:1565 #: menu.sh:1581
msgid "Installing new files" msgid "Installing new files"
msgstr "" msgstr ""
#: menu.sh:1582 #: menu.sh:1598
msgid "Arpl updated with success to %s!\\nReboot?" msgid "Arpl updated with success to %s!\\nReboot?"
msgstr "" msgstr ""
#: menu.sh:1596 #: menu.sh:1613
msgid "Installing new %s" msgid "Installing new %s"
msgstr "" msgstr ""
#: menu.sh:1624 #: menu.sh:1642 menu.sh:1645
msgid "%s updated with success!" msgid "%s updated with success!"
msgstr "" msgstr ""
#: menu.sh:1634 #: menu.sh:1656
msgid "Update all"
msgstr ""
#: menu.sh:1657
msgid "Update arpl" msgid "Update arpl"
msgstr "" msgstr ""
#: menu.sh:1635 #: menu.sh:1658
msgid "Update addons" msgid "Update addons"
msgstr "" msgstr ""
#: menu.sh:1636 #: menu.sh:1659
msgid "Update modules" msgid "Update modules"
msgstr "" msgstr ""
#: menu.sh:1637 #: menu.sh:1660
msgid "Update LKMs" msgid "Update LKMs"
msgstr "" msgstr ""
#: menu.sh:1638 #: menu.sh:1661
msgid "Set proxy server" msgid "Set proxy server"
msgstr "" msgstr ""
#: menu.sh:1639 #: menu.sh:1662
msgid "Local upload" msgid "Local upload"
msgstr "" msgstr ""
#: menu.sh:1645 #: menu.sh:1668 menu.sh:1696
msgid "arpl"
msgstr ""
#: menu.sh:1653
msgid "addons" msgid "addons"
msgstr "" msgstr ""
#: menu.sh:1661 #: menu.sh:1672 menu.sh:1704
msgid "modules" msgid "modules"
msgstr "" msgstr ""
#: menu.sh:1669 #: menu.sh:1676 menu.sh:1712
msgid "LKMs" msgid "LKMs"
msgstr "" msgstr ""
#: menu.sh:1679 menu.sh:1690 menu.sh:1701 menu.sh:1711 menu.sh:1728 #: menu.sh:1680 menu.sh:1688
#: menu.sh:1742 msgid "arpl"
msgstr ""
#: menu.sh:1722 menu.sh:1733 menu.sh:1744 menu.sh:1754 menu.sh:1771
#: menu.sh:1785
msgid "Update" msgid "Update"
msgstr "" msgstr ""
#: menu.sh:1680 #: menu.sh:1723
msgid "Please enter a proxy server url" msgid "Please enter a proxy server url"
msgstr "" msgstr ""
#: menu.sh:1691 #: menu.sh:1734
msgid "Invalid proxy server url, continue?" msgid "Invalid proxy server url, continue?"
msgstr "" msgstr ""
#: menu.sh:1706 #: menu.sh:1749
msgid "" msgid ""
"Please keep the attachment name consistent with the attachment name on " "Please keep the attachment name consistent with the attachment name on "
"Github.\\n" "Github.\\n"
msgstr "" msgstr ""
#: menu.sh:1707 #: menu.sh:1750
msgid "Upload update.zip will update arpl.\\n" msgid "Upload update.zip will update arpl.\\n"
msgstr "" msgstr ""
#: menu.sh:1708 #: menu.sh:1751
msgid "Upload addons.zip will update Addons.\\n" msgid "Upload addons.zip will update Addons.\\n"
msgstr "" msgstr ""
#: menu.sh:1709 #: menu.sh:1752
msgid "Upload modules.zip will update Modules.\\n" msgid "Upload modules.zip will update Modules.\\n"
msgstr "" msgstr ""
#: menu.sh:1710 #: menu.sh:1753
msgid "Upload rp-lkms.zip will update LKMs.\\n" msgid "Upload rp-lkms.zip will update LKMs.\\n"
msgstr "" msgstr ""
#: menu.sh:1763 #: menu.sh:1806
msgid "Choose a model" msgid "Choose a model"
msgstr "" msgstr ""
#: menu.sh:1769 #: menu.sh:1812
msgid "Cmdline menu" msgid "Cmdline menu"
msgstr "" msgstr ""
#: menu.sh:1770 #: menu.sh:1813
msgid "Synoinfo menu" msgid "Synoinfo menu"
msgstr "" msgstr ""
#: menu.sh:1773 #: menu.sh:1816
msgid "Advanced menu" msgid "Advanced menu"
msgstr "" msgstr ""
#: menu.sh:1776 #: menu.sh:1819
msgid "Build the loader" msgid "Build the loader"
msgstr "" msgstr ""
#: menu.sh:1780 #: menu.sh:1823
msgid "Boot the loader" msgid "Boot the loader"
msgstr "" msgstr ""
#: menu.sh:1783 #: menu.sh:1826
msgid "Choose a keymap" msgid "Choose a keymap"
msgstr "" msgstr ""
#: menu.sh:1785 #: menu.sh:1828
msgid "Clean disk cache" msgid "Clean disk cache"
msgstr "" msgstr ""
#: menu.sh:1787 #: menu.sh:1830
msgid "Update menu" msgid "Update menu"
msgstr "" msgstr ""
#: menu.sh:1851 #: menu.sh:1894
msgid "Choose a action" msgid "Choose a action"
msgstr "" msgstr ""
#: menu.sh:1852 #: menu.sh:1895
msgid "Poweroff" msgid "Poweroff"
msgstr "" msgstr ""
#: menu.sh:1853 #: menu.sh:1896
msgid "Reboot" msgid "Reboot"
msgstr "" msgstr ""
#: menu.sh:1854 #: menu.sh:1897
msgid "Reboot to arpl" msgid "Reboot to arpl"
msgstr "" msgstr ""
#: menu.sh:1855 #: menu.sh:1898
msgid "Back to shell" msgid "Back to shell"
msgstr "" msgstr ""
#: menu.sh:1881 #: menu.sh:1924
msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu" msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu"
msgstr "" msgstr ""

View File

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: arpl-i18n\n" "Project-Id-Version: arpl-i18n\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-09 11:51+0800\n" "POT-Creation-Date: 2023-07-12 23:47+0800\n"
"PO-Revision-Date: 2023-07-09 11:51+0800\n" "PO-Revision-Date: 2023-07-12 23:47+0800\n"
"Last-Translator: ing <wjz304@qq.com>\n" "Last-Translator: ing <wjz304@qq.com>\n"
"Language-Team: Chinese (simplified) <i18n-zh@googlegroups.com>\n" "Language-Team: Chinese (simplified) <i18n-zh@googlegroups.com>\n"
"Language: zh_CN\n" "Language: zh_CN\n"
@ -222,7 +222,7 @@ msgstr "显示测试型号"
msgid "Choose the model" msgid "Choose the model"
msgstr "选择型号" msgstr "选择型号"
#: menu.sh:154 menu.sh:1765 #: menu.sh:154 menu.sh:1808
msgid "Choose a product version" msgid "Choose a product version"
msgstr "选择版本" msgstr "选择版本"
@ -250,7 +250,7 @@ msgstr "获取线上pat数据 .."
msgid "Reconfiguring Synoinfo, Addons and Modules" msgid "Reconfiguring Synoinfo, Addons and Modules"
msgstr "重新配置 Syninfo, 插件和模块" msgstr "重新配置 Syninfo, 插件和模块"
#: menu.sh:260 menu.sh:405 menu.sh:546 menu.sh:687 menu.sh:1633 #: menu.sh:260 menu.sh:405 menu.sh:546 menu.sh:687 menu.sh:1655
msgid "Choose a option" msgid "Choose a option"
msgstr "设置" msgstr "设置"
@ -274,14 +274,14 @@ msgstr "显示所有可用插件"
msgid "Upload a external addon" msgid "Upload a external addon"
msgstr "上传外部插件" msgstr "上传外部插件"
#: menu.sh:266 menu.sh:412 menu.sh:542 menu.sh:682 menu.sh:995 menu.sh:1640 #: menu.sh:266 menu.sh:412 menu.sh:542 menu.sh:682 menu.sh:995 menu.sh:1663
#: menu.sh:1788 menu.sh:1856 #: menu.sh:1831 menu.sh:1899
msgid "Exit" msgid "Exit"
msgstr "退出" msgstr "退出"
#: menu.sh:278 menu.sh:283 menu.sh:289 menu.sh:300 menu.sh:308 menu.sh:326 #: menu.sh:278 menu.sh:283 menu.sh:289 menu.sh:300 menu.sh:308 menu.sh:326
#: menu.sh:340 menu.sh:345 menu.sh:349 menu.sh:363 menu.sh:367 menu.sh:374 #: menu.sh:340 menu.sh:345 menu.sh:349 menu.sh:363 menu.sh:367 menu.sh:374
#: menu.sh:377 menu.sh:1767 #: menu.sh:377 menu.sh:1810
msgid "Addons" msgid "Addons"
msgstr "插件" msgstr "插件"
@ -305,7 +305,7 @@ msgstr "没有要删除的用户插件"
msgid "Select addon to remove" msgid "Select addon to remove"
msgstr "选择要删除的插件" msgstr "选择要删除的插件"
#: menu.sh:346 menu.sh:1236 menu.sh:1267 menu.sh:1300 menu.sh:1702 #: menu.sh:346 menu.sh:1236 menu.sh:1267 menu.sh:1300 menu.sh:1745
msgid "This feature is only available when accessed via web/ssh." msgid "This feature is only available when accessed via web/ssh."
msgstr "此功能仅通过web/ssh访问时可用." msgstr "此功能仅通过web/ssh访问时可用."
@ -313,7 +313,7 @@ msgstr "此功能仅通过web/ssh访问时可用."
msgid "Please upload the *.addons file." msgid "Please upload the *.addons file."
msgstr "请上传 *.addons 文件." msgstr "请上传 *.addons 文件."
#: menu.sh:364 menu.sh:517 menu.sh:1729 menu.sh:1743 #: menu.sh:364 menu.sh:517 menu.sh:1772 menu.sh:1786
msgid "Not a valid file, please try again!" msgid "Not a valid file, please try again!"
msgstr "不是有效的文件, 请重试!" msgstr "不是有效的文件, 请重试!"
@ -330,7 +330,7 @@ msgid "File format not recognized!"
msgstr "文件格式无法识别!" msgstr "文件格式无法识别!"
#: menu.sh:393 menu.sh:421 menu.sh:425 menu.sh:442 menu.sh:455 menu.sh:469 #: menu.sh:393 menu.sh:421 menu.sh:425 menu.sh:442 menu.sh:455 menu.sh:469
#: menu.sh:475 menu.sh:494 menu.sh:497 menu.sh:512 menu.sh:516 menu.sh:1768 #: menu.sh:475 menu.sh:494 menu.sh:497 menu.sh:512 menu.sh:516 menu.sh:1811
msgid "Modules" msgid "Modules"
msgstr "模块" msgstr "模块"
@ -607,7 +607,7 @@ msgstr "拷贝文件: "
msgid "Addon %s not found!" msgid "Addon %s not found!"
msgstr "插件 %s 未找到!" msgstr "插件 %s 未找到!"
#: menu.sh:953 menu.sh:1839 #: menu.sh:953 menu.sh:1882
msgid "Cleaning" msgid "Cleaning"
msgstr "清除中" msgstr "清除中"
@ -690,7 +690,7 @@ msgstr "开发者工具"
msgid "Advanced" msgid "Advanced"
msgstr "高级" msgstr "高级"
#: menu.sh:998 menu.sh:1791 #: menu.sh:998 menu.sh:1834
msgid "Choose the option" msgid "Choose the option"
msgstr "设置" msgstr "设置"
@ -898,7 +898,7 @@ msgstr "警告"
msgid "Config changed, would you like to rebuild the loader?" msgid "Config changed, would you like to rebuild the loader?"
msgstr "配置已更改, 是否重新编译引导?" msgstr "配置已更改, 是否重新编译引导?"
#: menu.sh:1461 menu.sh:1782 #: menu.sh:1461 menu.sh:1825
msgid "Choose a language" msgid "Choose a language"
msgstr "选择语言" msgstr "选择语言"
@ -910,196 +910,205 @@ msgstr "选择布局"
msgid "Choice a keymap" msgid "Choice a keymap"
msgstr "选择键盘" msgstr "选择键盘"
#: menu.sh:1505 menu.sh:1538 menu.sh:1588 menu.sh:1645 menu.sh:1653 #: menu.sh:1506 menu.sh:1554 menu.sh:1605 menu.sh:1668 menu.sh:1672
#: menu.sh:1661 menu.sh:1669 #: menu.sh:1676 menu.sh:1680 menu.sh:1688 menu.sh:1696 menu.sh:1704
#: menu.sh:1712
msgid "Update %s" msgid "Update %s"
msgstr "更新 %s" msgstr "更新 %s"
#: menu.sh:1508 #: menu.sh:1509
msgid "Checking last version" msgid "Checking last version"
msgstr "检测新版本中" msgstr "检测新版本中"
#: menu.sh:1516 #: menu.sh:1518 menu.sh:1521
msgid "Error checking new version" msgid "Error checking new version"
msgstr "检测新版本错误" msgstr "检测新版本错误"
#: menu.sh:1521 #: menu.sh:1528
msgid "No new version."
msgstr "没有新版本."
#: menu.sh:1531
msgid "No new version. Actual version is %s\\nForce update?" msgid "No new version. Actual version is %s\\nForce update?"
msgstr "没有新版本. 实际版本为 %s\\n强制更新?" msgstr "没有新版本. 实际版本为 %s\\n强制更新?"
#: menu.sh:1525 #: menu.sh:1536
msgid "Downloading last version" msgid "Downloading last version"
msgstr "下载新版本中" msgstr "下载新版本中"
#: menu.sh:1530 #: menu.sh:1542 menu.sh:1545
msgid "Error downloading new version" msgid "Error downloading new version"
msgstr "下载新版本错误" msgstr "下载新版本错误"
#: menu.sh:1540 menu.sh:1590 #: menu.sh:1556 menu.sh:1607
msgid "Extracting last version" msgid "Extracting last version"
msgstr "解压新版本" msgstr "解压新版本"
#: menu.sh:1544 #: menu.sh:1560
msgid "Error extracting update file" msgid "Error extracting update file"
msgstr "更新文件解压错误" msgstr "更新文件解压错误"
#: menu.sh:1551 #: menu.sh:1567
msgid "Checksum do not match!" msgid "Checksum do not match!"
msgstr "Checksum不匹配!" msgstr "Checksum不匹配!"
#: menu.sh:1560 #: menu.sh:1576
msgid "" msgid ""
"The current version does not support upgrading to the latest update.zip. " "The current version does not support upgrading to the latest update.zip. "
"Please remake the bootloader disk!" "Please remake the bootloader disk!"
msgstr "当前版本不支持最新的update.zip升级, 请重新制作引导盘!" msgstr "当前版本不支持最新的update.zip升级, 请重新制作引导盘!"
#: menu.sh:1565 #: menu.sh:1581
msgid "Installing new files" msgid "Installing new files"
msgstr "安装更新中" msgstr "安装更新中"
#: menu.sh:1582 #: menu.sh:1598
msgid "Arpl updated with success to %s!\\nReboot?" msgid "Arpl updated with success to %s!\\nReboot?"
msgstr "Arpl更新成功 %s!\\n重启?" msgstr "Arpl更新成功 %s!\\n重启?"
#: menu.sh:1596 #: menu.sh:1613
msgid "Installing new %s" msgid "Installing new %s"
msgstr "安装新 %s 中" msgstr "安装新 %s 中"
#: menu.sh:1624 #: menu.sh:1642 menu.sh:1645
msgid "%s updated with success!" msgid "%s updated with success!"
msgstr "%s 更新成功!" msgstr "%s 更新成功!"
#: menu.sh:1634 #: menu.sh:1656
msgid "Update all"
msgstr "更新所有"
#: menu.sh:1657
msgid "Update arpl" msgid "Update arpl"
msgstr "更新arpl" msgstr "更新arpl"
#: menu.sh:1635 #: menu.sh:1658
msgid "Update addons" msgid "Update addons"
msgstr "更新插件" msgstr "更新插件"
#: menu.sh:1636 #: menu.sh:1659
msgid "Update modules" msgid "Update modules"
msgstr "更新模块" msgstr "更新模块"
#: menu.sh:1637 #: menu.sh:1660
msgid "Update LKMs" msgid "Update LKMs"
msgstr "更新LKMs" msgstr "更新LKMs"
#: menu.sh:1638 #: menu.sh:1661
msgid "Set proxy server" msgid "Set proxy server"
msgstr "设置代理" msgstr "设置代理"
#: menu.sh:1639 #: menu.sh:1662
msgid "Local upload" msgid "Local upload"
msgstr "本地上传" msgstr "本地上传"
#: menu.sh:1645 #: menu.sh:1668 menu.sh:1696
msgid "arpl"
msgstr "arpl"
#: menu.sh:1653
msgid "addons" msgid "addons"
msgstr "插件" msgstr "插件"
#: menu.sh:1661 #: menu.sh:1672 menu.sh:1704
msgid "modules" msgid "modules"
msgstr "模块" msgstr "模块"
#: menu.sh:1669 #: menu.sh:1676 menu.sh:1712
msgid "LKMs" msgid "LKMs"
msgstr "LKMs" msgstr "LKMs"
#: menu.sh:1679 menu.sh:1690 menu.sh:1701 menu.sh:1711 menu.sh:1728 #: menu.sh:1680 menu.sh:1688
#: menu.sh:1742 msgid "arpl"
msgstr "arpl"
#: menu.sh:1722 menu.sh:1733 menu.sh:1744 menu.sh:1754 menu.sh:1771
#: menu.sh:1785
msgid "Update" msgid "Update"
msgstr "更新" msgstr "更新"
#: menu.sh:1680 #: menu.sh:1723
msgid "Please enter a proxy server url" msgid "Please enter a proxy server url"
msgstr "请输入代理服务器url" msgstr "请输入代理服务器url"
#: menu.sh:1691 #: menu.sh:1734
msgid "Invalid proxy server url, continue?" msgid "Invalid proxy server url, continue?"
msgstr "无效的代理服务器url,是否继续?" msgstr "无效的代理服务器url,是否继续?"
#: menu.sh:1706 #: menu.sh:1749
msgid "" msgid ""
"Please keep the attachment name consistent with the attachment name on " "Please keep the attachment name consistent with the attachment name on "
"Github.\\n" "Github.\\n"
msgstr "请保持附件名称与 github 上附件名称一致.\\n" msgstr "请保持附件名称与 github 上附件名称一致.\\n"
#: menu.sh:1707 #: menu.sh:1750
msgid "Upload update.zip will update arpl.\\n" msgid "Upload update.zip will update arpl.\\n"
msgstr "上传 update.zip 将更新 arpl.\\n" msgstr "上传 update.zip 将更新 arpl.\\n"
#: menu.sh:1708 #: menu.sh:1751
msgid "Upload addons.zip will update Addons.\\n" msgid "Upload addons.zip will update Addons.\\n"
msgstr "上传 addons.zip 将更新 插件.\\n" msgstr "上传 addons.zip 将更新 插件.\\n"
#: menu.sh:1709 #: menu.sh:1752
msgid "Upload modules.zip will update Modules.\\n" msgid "Upload modules.zip will update Modules.\\n"
msgstr "上传 modules.zip 将更新 模块.\\n" msgstr "上传 modules.zip 将更新 模块.\\n"
#: menu.sh:1710 #: menu.sh:1753
msgid "Upload rp-lkms.zip will update LKMs.\\n" msgid "Upload rp-lkms.zip will update LKMs.\\n"
msgstr "上传 rp-lkms.zip 将更新 LKMs.\\n" msgstr "上传 rp-lkms.zip 将更新 LKMs.\\n"
#: menu.sh:1763 #: menu.sh:1806
msgid "Choose a model" msgid "Choose a model"
msgstr "选择型号" msgstr "选择型号"
#: menu.sh:1769 #: menu.sh:1812
msgid "Cmdline menu" msgid "Cmdline menu"
msgstr "设置Cmdline" msgstr "设置Cmdline"
#: menu.sh:1770 #: menu.sh:1813
msgid "Synoinfo menu" msgid "Synoinfo menu"
msgstr "设置Synoinfo" msgstr "设置Synoinfo"
#: menu.sh:1773 #: menu.sh:1816
msgid "Advanced menu" msgid "Advanced menu"
msgstr "高级设置" msgstr "高级设置"
#: menu.sh:1776 #: menu.sh:1819
msgid "Build the loader" msgid "Build the loader"
msgstr "编译引导" msgstr "编译引导"
#: menu.sh:1780 #: menu.sh:1823
msgid "Boot the loader" msgid "Boot the loader"
msgstr "启动" msgstr "启动"
#: menu.sh:1783 #: menu.sh:1826
msgid "Choose a keymap" msgid "Choose a keymap"
msgstr "选择键盘" msgstr "选择键盘"
#: menu.sh:1785 #: menu.sh:1828
msgid "Clean disk cache" msgid "Clean disk cache"
msgstr "清除磁盘缓存" msgstr "清除磁盘缓存"
#: menu.sh:1787 #: menu.sh:1830
msgid "Update menu" msgid "Update menu"
msgstr "更新" msgstr "更新"
#: menu.sh:1851 #: menu.sh:1894
msgid "Choose a action" msgid "Choose a action"
msgstr "选择动作" msgstr "选择动作"
#: menu.sh:1852 #: menu.sh:1895
msgid "Poweroff" msgid "Poweroff"
msgstr "关机" msgstr "关机"
#: menu.sh:1853 #: menu.sh:1896
msgid "Reboot" msgid "Reboot"
msgstr "重启" msgstr "重启"
#: menu.sh:1854 #: menu.sh:1897
msgid "Reboot to arpl" msgid "Reboot to arpl"
msgstr "重启到arpl" msgstr "重启到arpl"
#: menu.sh:1855 #: menu.sh:1898
msgid "Back to shell" msgid "Back to shell"
msgstr "退出到shell" msgstr "退出到shell"
#: menu.sh:1881 #: menu.sh:1924
msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu" msgid "Call \\033[1;32mmenu.sh\\033[0m to return to menu"
msgstr "执行 \\033[1;32mmenu.sh\\033[0m 重新进入设置菜单" msgstr "执行 \\033[1;32mmenu.sh\\033[0m 重新进入设置菜单"

View File

@ -202,17 +202,17 @@ function productversMenu() {
--form "${MSG}" 10 110 2 "URL" 1 1 "${paturl}" 1 5 100 0 "MD5" 2 1 "${patsum}" 2 5 100 0 \ --form "${MSG}" 10 110 2 "URL" 1 1 "${paturl}" 1 5 100 0 "MD5" 2 1 "${patsum}" 2 5 100 0 \
2>"${TMP_PATH}/resp" 2>"${TMP_PATH}/resp"
[ $? -ne 0 ] && return [ $? -ne 0 ] && return
[ -z "${paturl}" -o -z "${patsum}" ] && return
paturl="$(cat "${TMP_PATH}/resp" | tail -n +1 | head -1)" paturl="$(cat "${TMP_PATH}/resp" | tail -n +1 | head -1)"
patsum="$(cat "${TMP_PATH}/resp" | tail -n +2 | head -1)" patsum="$(cat "${TMP_PATH}/resp" | tail -n +2 | head -1)"
[ -z "${paturl}" -o -z "${patsum}" ] && return
writeConfigKey "paturl" "${paturl}" "${USER_CONFIG_FILE}" writeConfigKey "paturl" "${paturl}" "${USER_CONFIG_FILE}"
writeConfigKey "patsum" "${patsum}" "${USER_CONFIG_FILE}" writeConfigKey "patsum" "${patsum}" "${USER_CONFIG_FILE}"
PRODUCTVER=${resp} PRODUCTVER=${resp}
writeConfigKey "productver" "${PRODUCTVER}" "${USER_CONFIG_FILE}" writeConfigKey "productver" "${PRODUCTVER}" "${USER_CONFIG_FILE}"
BUILDNUM="" BUILDNUM=""
SMALLNUM="" SMALLNUM=""
writeConfigKey "buildnum" "" "${USER_CONFIG_FILE}" writeConfigKey "buildnum" "${BUILDNUM}" "${USER_CONFIG_FILE}"
writeConfigKey "smallnum" "" "${USER_CONFIG_FILE}" writeConfigKey "smallnum" "${SMALLNUM}" "${USER_CONFIG_FILE}"
dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \ dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Product Version")" \
--infobox "$(TEXT "Reconfiguring Synoinfo, Addons and Modules")" 0 0 --infobox "$(TEXT "Reconfiguring Synoinfo, Addons and Modules")" 0 0
# Delete synoinfo and reload model/build synoinfo # Delete synoinfo and reload model/build synoinfo
@ -1499,6 +1499,7 @@ function keymapMenu() {
# 2 - current version # 2 - current version
# 3 - repo url # 3 - repo url
# 4 - attachment name # 4 - attachment name
# 5 - silent
function downloadExts() { function downloadExts() {
PROXY="$(readConfigKey "proxy" "${USER_CONFIG_FILE}")" PROXY="$(readConfigKey "proxy" "${USER_CONFIG_FILE}")"
[ -n "${PROXY}" ] && [[ "${PROXY: -1}" != "/" ]] && PROXY="${PROXY}/" [ -n "${PROXY}" ] && [[ "${PROXY: -1}" != "/" ]] && PROXY="${PROXY}/"
@ -1512,22 +1513,38 @@ function downloadExts() {
TAG="${LATESTURL##*/}" TAG="${LATESTURL##*/}"
[ "${TAG:0:1}" = "v" ] && TAG="${TAG:1}" [ "${TAG:0:1}" = "v" ] && TAG="${TAG:1}"
if [ -z "${TAG}" ]; then if [ -z "${TAG}" ]; then
if [ ! "${5}" = "0" ]; then
dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--infobox "$(TEXT "Error checking new version")" 0 0
else
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--msgbox "$(TEXT "Error checking new version")" 0 0 --msgbox "$(TEXT "Error checking new version")" 0 0
fi
return 1 return 1
fi fi
if [ "${2}" = "${TAG}" ]; then if [ "${2}" = "${TAG}" ]; then
if [ ! "${5}" = "0" ]; then
dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--infobox "$(TEXT "No new version.")" 0 0
return 1
else
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--yesno "$(printf "$(TEXT "No new version. Actual version is %s\nForce update?")" "${2}")" 0 0 --yesno "$(printf "$(TEXT "No new version. Actual version is %s\nForce update?")" "${2}")" 0 0
[ $? -ne 0 ] && return 1 [ $? -ne 0 ] && return 1
fi fi
fi
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--infobox "$(TEXT "Downloading last version")" 0 0 --infobox "$(TEXT "Downloading last version")" 0 0
rm -f "/tmp/${4}.zip" rm -f "/tmp/${4}.zip"
STATUS=$(curl -kL -w "%{http_code}" "${PROXY}${3}/releases/download/${TAG}/${4}.zip" -o "/tmp/${4}.zip") STATUS=$(curl -kL -w "%{http_code}" "${PROXY}${3}/releases/download/${TAG}/${4}.zip" -o "/tmp/${4}.zip")
if [ $? -ne 0 -o ${STATUS} -ne 200 ]; then if [ $? -ne 0 -o ${STATUS} -ne 200 ]; then
if [ ! "${5}" = "0" ]; then
dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--infobox "$(TEXT "Error downloading new version")" 0 0
else
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--msgbox "$(TEXT "Error downloading new version")" 0 0 --msgbox "$(TEXT "Error downloading new version")" 0 0
fi
return 1 return 1
fi fi
return 0 return 0
@ -1542,14 +1559,14 @@ function updateArpl() {
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--msgbox "$(TEXT "Error extracting update file")" 0 0 --msgbox "$(TEXT "Error extracting update file")" 0 0
continue return 1
fi fi
# Check checksums # Check checksums
(cd /tmp && sha256sum --status -c sha256sum) (cd /tmp && sha256sum --status -c sha256sum)
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--msgbox "$(TEXT "Checksum do not match!")" 0 0 --msgbox "$(TEXT "Checksum do not match!")" 0 0
continue return 1
fi fi
# Check conditions # Check conditions
if [ -f "/tmp/update-check.sh" ]; then if [ -f "/tmp/update-check.sh" ]; then
@ -1558,7 +1575,7 @@ function updateArpl() {
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--msgbox "$(TEXT "The current version does not support upgrading to the latest update.zip. Please remake the bootloader disk!")" 0 0 --msgbox "$(TEXT "The current version does not support upgrading to the latest update.zip. Please remake the bootloader disk!")" 0 0
continue return 1
fi fi
fi fi
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
@ -1584,6 +1601,7 @@ function updateArpl() {
} }
# 1 - ext name # 1 - ext name
# 2 - silent
function updateExts() { function updateExts() {
T="$(printf "$(TEXT "Update %s")" "${1}")" T="$(printf "$(TEXT "Update %s")" "${1}")"
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
@ -1620,8 +1638,13 @@ function updateExts() {
unzip /tmp/rp-lkms.zip -d "${LKM_PATH}" >/dev/null 2>&1 unzip /tmp/rp-lkms.zip -d "${LKM_PATH}" >/dev/null 2>&1
fi fi
DIRTY=1 DIRTY=1
if [ ! "${2}" = "0" ]; then
dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--infobox "$(printf "$(TEXT "%s updated with success!")" "${1}")" 0 0
else
dialog --backtitle "$(backtitle)" --colors --title "${T}" \ dialog --backtitle "$(backtitle)" --colors --title "${T}" \
--msgbox "$(printf "$(TEXT "%s updated with success!")" "${1}")" 0 0 --msgbox "$(printf "$(TEXT "%s updated with success!")" "${1}")" 0 0
fi
} }
############################################################################### ###############################################################################
@ -1631,7 +1654,8 @@ function updateMenu() {
while true; do while true; do
dialog --backtitle "$(backtitle)" --colors \ dialog --backtitle "$(backtitle)" --colors \
--menu "$(TEXT "Choose a option")" 0 0 0 \ --menu "$(TEXT "Choose a option")" 0 0 0 \
a "$(TEXT "Update arpl")" \ a "$(TEXT "Update all")" \
r "$(TEXT "Update arpl")" \
d "$(TEXT "Update addons")" \ d "$(TEXT "Update addons")" \
m "$(TEXT "Update modules")" \ m "$(TEXT "Update modules")" \
l "$(TEXT "Update LKMs")" \ l "$(TEXT "Update LKMs")" \
@ -1642,9 +1666,29 @@ function updateMenu() {
[ $? -ne 0 ] && return [ $? -ne 0 ] && return
case "$(<${TMP_PATH}/resp)" in case "$(<${TMP_PATH}/resp)" in
a) a)
T="$(printf "$(TEXT "Update %s")" "$(TEXT "addons")")"
CURVER="$(cat "/mnt/p3/addons/VERSION" 2>/dev/null)"
downloadExts "addons" "${CURVER:-0}" "https://github.com/wjz304/arpl-addons" "addons" "1"
[ $? -eq 0 ] && updateExts "addons" "1"
T="$(printf "$(TEXT "Update %s")" "$(TEXT "modules")")"
CURVER="$(cat "/mnt/p3/modules/VERSION" 2>/dev/null)"
downloadExts "modules" "${CURVER:-0}" "https://github.com/wjz304/arpl-modules" "modules" "1"
[ $? -eq 0 ] && updateExts "modules" "1"
T="$(printf "$(TEXT "Update %s")" "$(TEXT "LKMs")")"
CURVER="$(cat "/mnt/p3/lkms/VERSION" 2>/dev/null)"
downloadExts "LKMs" "${CURVER:-0}" "https://github.com/wjz304/redpill-lkm" "rp-lkms" "1"
[ $? -eq 0 ] && updateExts "LKMs" "1"
T="$(printf "$(TEXT "Update %s")" "$(TEXT "arpl")")" T="$(printf "$(TEXT "Update %s")" "$(TEXT "arpl")")"
CURVER="${ARPL_VERSION:-0}" CURVER="${ARPL_VERSION:-0}"
downloadExts "arpl" ${CURVER} "https://github.com/wjz304/arpl-i18n" "update" downloadExts "arpl" ${CURVER} "https://github.com/wjz304/arpl-i18n" "update" "0"
[ $? -ne 0 ] && continue
updateArpl "arpl"
;;
r)
T="$(printf "$(TEXT "Update %s")" "$(TEXT "arpl")")"
CURVER="${ARPL_VERSION:-0}"
downloadExts "arpl" ${CURVER} "https://github.com/wjz304/arpl-i18n" "update" "0"
[ $? -ne 0 ] && continue [ $? -ne 0 ] && continue
updateArpl "arpl" updateArpl "arpl"
;; ;;
@ -1652,25 +1696,25 @@ function updateMenu() {
d) d)
T="$(printf "$(TEXT "Update %s")" "$(TEXT "addons")")" T="$(printf "$(TEXT "Update %s")" "$(TEXT "addons")")"
CURVER="$(cat "/mnt/p3/addons/VERSION" 2>/dev/null)" CURVER="$(cat "/mnt/p3/addons/VERSION" 2>/dev/null)"
downloadExts "addons" "${CURVER:-0}" "https://github.com/wjz304/arpl-addons" "addons" downloadExts "addons" "${CURVER:-0}" "https://github.com/wjz304/arpl-addons" "addons" "0"
[ $? -ne 0 ] && continue [ $? -ne 0 ] && continue
updateExts "addons" updateExts "addons" "0"
;; ;;
m) m)
T="$(printf "$(TEXT "Update %s")" "$(TEXT "modules")")" T="$(printf "$(TEXT "Update %s")" "$(TEXT "modules")")"
CURVER="$(cat "/mnt/p3/modules/VERSION" 2>/dev/null)" CURVER="$(cat "/mnt/p3/modules/VERSION" 2>/dev/null)"
downloadExts "modules" "${CURVER:-0}" "https://github.com/wjz304/arpl-modules" "modules" downloadExts "modules" "${CURVER:-0}" "https://github.com/wjz304/arpl-modules" "modules" "0"
[ $? -ne 0 ] && continue [ $? -ne 0 ] && continue
updateExts "modules" updateExts "modules" "0"
;; ;;
l) l)
T="$(printf "$(TEXT "Update %s")" "$(TEXT "LKMs")")" T="$(printf "$(TEXT "Update %s")" "$(TEXT "LKMs")")"
CURVER="$(cat "/mnt/p3/lkms/VERSION" 2>/dev/null)" CURVER="$(cat "/mnt/p3/lkms/VERSION" 2>/dev/null)"
downloadExts "LKMs" "${CURVER:-0}" "https://github.com/wjz304/redpill-lkm" "rp-lkms" downloadExts "LKMs" "${CURVER:-0}" "https://github.com/wjz304/redpill-lkm" "rp-lkms" "0"
[ $? -ne 0 ] && continue [ $? -ne 0 ] && continue
updateExts "LKMs" updateExts "LKMs" "0"
;; ;;
p) p)
@ -1733,11 +1777,11 @@ function updateMenu() {
if [ "${USER_FILE}" = "update.zip" ]; then if [ "${USER_FILE}" = "update.zip" ]; then
updateArpl "arpl" updateArpl "arpl"
elif [ "${USER_FILE}" = "addons.zip" ]; then elif [ "${USER_FILE}" = "addons.zip" ]; then
updateExts "addons" updateExts "addons" "0"
elif [ "${USER_FILE}" = "modules.zip" ]; then elif [ "${USER_FILE}" = "modules.zip" ]; then
updateExts "modules" updateExts "modules" "0"
elif [ "${USER_FILE}" = "rp-lkms.zip" ]; then elif [ "${USER_FILE}" = "rp-lkms.zip" ]; then
updateExts "LKMs" updateExts "LKMs" "0"
else else
dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Update")" \ dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Update")" \
--msgbox "$(TEXT "Not a valid file, please try again!")" 0 0 --msgbox "$(TEXT "Not a valid file, please try again!")" 0 0