This commit is contained in:
Ing 2023-05-06 01:26:18 +08:00
parent 80ed6c1507
commit 85e81cd4da
3 changed files with 5 additions and 5 deletions

View File

@ -551,7 +551,7 @@ msgid "Format disk(s) # Without loader disk"
msgstr ""
#: menu.sh:773 menu.sh:863 menu.sh:876
msgid "Allow degraded installation"
msgid "Allow downgrade installation"
msgstr ""
#: menu.sh:775

View File

@ -550,7 +550,7 @@ msgid "Format disk(s) # Without loader disk"
msgstr "格式化磁盘(s) # 不含启动盘"
#: menu.sh:773 menu.sh:863 menu.sh:876
msgid "Allow degraded installation"
msgid "Allow downgrade installation"
msgstr "允许降级安装"
#: menu.sh:775

View File

@ -770,7 +770,7 @@ function advancedMenu() {
echo "t \"$(TEXT "Try to recovery a DSM installed system")\"" >> "${TMP_PATH}/menu"
echo "s \"$(TEXT "Show SATA(s) # ports and drives")\"" >> "${TMP_PATH}/menu"
echo "f \"$(TEXT "Format disk(s) # Without loader disk")\"" >> "${TMP_PATH}/menu"
echo "a \"$(TEXT "Allow degraded installation")\"" >> "${TMP_PATH}/menu"
echo "a \"$(TEXT "Allow downgrade installation")\"" >> "${TMP_PATH}/menu"
if [ -n "${MODEL}" -a "true" = "`readModelKey "${MODEL}" "dt"`" ]; then
echo "d \"$(TEXT "Custom dts location:/mnt/p1/model.dts # Need rebuild")\"" >> "${TMP_PATH}/menu"
fi
@ -860,7 +860,7 @@ function advancedMenu() {
MSG+="$(TEXT "This feature will allow you to downgrade the installation by removing the VERSION file from the first partition of all disks.\n")"
MSG+="$(TEXT "Therefore, please insert all disks before continuing.\n")"
MSG+="$(TEXT "Warning:\nThis operation is irreversible. Please backup important data. Do you want to continue?")"
dialog --backtitle "`backtitle`" --title "$(TEXT "Allow degraded installation")" \
dialog --backtitle "`backtitle`" --title "$(TEXT "Allow downgrade installation")" \
--yesno "${MSG}" 0 0
[ $? -ne 0 ] && return
(
@ -873,7 +873,7 @@ function advancedMenu() {
umount ${I}
done
rm -rf /tmp/sdX1
) | dialog --backtitle "`backtitle`" --title "$(TEXT "Allow degraded installation")" \
) | dialog --backtitle "`backtitle`" --title "$(TEXT "Allow downgrade installation")" \
--progressbox "$(TEXT "Removing ...")" 20 70
MSG="$(TEXT "Remove VERSION file for all disks completed.")"
dialog --backtitle "`backtitle`" --colors --aspect 18 \