This commit is contained in:
MacRimi 2025-02-25 19:49:05 +01:00
parent e0680a78eb
commit e33a289253
4 changed files with 5 additions and 15 deletions

4
menu
View File

@ -57,9 +57,7 @@ initialize_config() {
"fr" "$(translate "French")" \ "fr" "$(translate "French")" \
"de" "$(translate "German")" \ "de" "$(translate "German")" \
"it" "$(translate "Italian")" \ "it" "$(translate "Italian")" \
"pt" "$(translate "Portuguese")" \ "pt" "$(translate "Portuguese")" 3>&1 1>&2 2>&3)
"zh-cn" "$(translate "Simplified Chinese")" \
"ja" "$(translate "Japanese")" 3>&1 1>&2 2>&3)
if [ -z "$LANGUAGE" ]; then if [ -z "$LANGUAGE" ]; then
msg_error "$(translate "No language selected. Exiting.")" msg_error "$(translate "No language selected. Exiting.")"

View File

@ -2358,14 +2358,13 @@ for index in "${!sorted_options[@]}"; do
fi fi
msg_success "$(translate "All changes applied. No reboot required.")" msg_success "$(translate "All changes applied. No reboot required.")"
else else
# Si no se seleccionaron opciones, salir sin hacer nada
exit 0 exit 0
fi fi
} }
# Main script execution
show_proxmenux_logo show_proxmenux_logo
if [[ "$LANGUAGE" != "en" ]]; then if [[ "$LANGUAGE" != "en" ]]; then
msg_lang "$(translate "Generating automatic translations...")" msg_lang "$(translate "Generating automatic translations...")"

View File

@ -27,7 +27,6 @@ initialize_cache
show_config_menu() { show_config_menu() {
cleanup
while true; do while true; do
OPTION=$(whiptail --title "$(translate "Configuration Menu")" --menu "$(translate "Select an option:")" 20 70 8 \ OPTION=$(whiptail --title "$(translate "Configuration Menu")" --menu "$(translate "Select an option:")" 20 70 8 \
"1" "$(translate "Change Language")" \ "1" "$(translate "Change Language")" \
@ -62,9 +61,7 @@ change_language() {
"fr" "$(translate "French")" \ "fr" "$(translate "French")" \
"de" "$(translate "German")" \ "de" "$(translate "German")" \
"it" "$(translate "Italian")" \ "it" "$(translate "Italian")" \
"pt" "$(translate "Portuguese")" \ "pt" "$(translate "Portuguese")" 3>&1 1>&2 2>&3)
"zh-cn" "$(translate "Simplified Chinese")" \
"ja" "$(translate "Japanese")" 3>&1 1>&2 2>&3)
if [ -z "$LANGUAGE" ]; then if [ -z "$LANGUAGE" ]; then
msg_error "$(translate "No language selected.")" msg_error "$(translate "No language selected.")"
@ -246,7 +243,5 @@ uninstall_proxmenu() {
} }
if [[ "$LANGUAGE" != "en" ]]; then
msg_lang "$(translate "Generating automatic translations...")"
fi
show_config_menu show_config_menu

View File

@ -315,8 +315,6 @@ else
# Logo for terminal SSH # Logo for terminal SSH
TEXT=( TEXT=(
"" ""
"" ""