diff --git a/scripts/customizable_post_install.sh b/scripts/customizable_post_install.sh index 2ffb591..e589cf5 100644 --- a/scripts/customizable_post_install.sh +++ b/scripts/customizable_post_install.sh @@ -58,7 +58,7 @@ initialize_cache OS_CODENAME="$(grep "VERSION_CODENAME=" /etc/os-release | cut -d"=" -f 2 | xargs )" RAM_SIZE_GB=$(( $(vmstat -s | grep -i "total memory" | xargs | cut -d" " -f 1) / 1024 / 1000)) NECESSARY_REBOOT=0 -SCRIPT_TITLE="Customizable script settings for post-installation of Proxmox" +SCRIPT_TITLE="Customizable post-installation optimization script" # ========================================================== diff --git a/scripts/menus/config_menu.sh b/scripts/menus/config_menu.sh index 58892e4..f911097 100644 --- a/scripts/menus/config_menu.sh +++ b/scripts/menus/config_menu.sh @@ -26,6 +26,8 @@ initialize_cache show_config_menu() { + + cleanup while true; do OPTION=$(whiptail --title "$(translate "Configuration Menu")" --menu "$(translate "Select an option:")" 20 70 8 \ "1" "$(translate "Change Language")" \ @@ -244,4 +246,7 @@ uninstall_proxmenu() { } +if [[ "$LANGUAGE" != "en" ]]; then + msg_lang "$(translate "Generating automatic translations...")" +fi show_config_menu diff --git a/scripts/menus/main_menu.sh b/scripts/menus/main_menu.sh index 59c43b5..9275ef1 100644 --- a/scripts/menus/main_menu.sh +++ b/scripts/menus/main_menu.sh @@ -27,6 +27,7 @@ initialize_cache show_menu() { + cleanup while true; do OPTION=$(whiptail --title "$(translate "Main Menu")" --menu "$(translate "Select an option:")" 20 70 8 \ "1" "$(translate "Settings post-install Proxmox")" \ @@ -54,5 +55,8 @@ done } # Main flow +if [[ "$LANGUAGE" != "en" ]]; then + msg_lang "$(translate "Generating automatic translations...")" +fi show_menu diff --git a/scripts/menus/menu_Helper_Scripts.sh b/scripts/menus/menu_Helper_Scripts.sh index d3ed46c..5b9e387 100644 --- a/scripts/menus/menu_Helper_Scripts.sh +++ b/scripts/menus/menu_Helper_Scripts.sh @@ -95,7 +95,9 @@ show_menu() { done menu_items+=("$(translate "Return to Main Menu")" "") - + + cleanup + script_selection=$(whiptail --title "$(translate "Essential Proxmox VE Helper-Scripts")" \ --menu "\n$HEADER\n\n$(translate "Select a script to execute")" 25 78 16 \ "${menu_items[@]}" 3>&1 1>&2 2>&3) @@ -146,4 +148,8 @@ show_menu() { done } + +if [[ "$LANGUAGE" != "en" ]]; then + msg_lang "$(translate "Generating automatic translations...")" +fi show_menu diff --git a/scripts/menus/menu_post_install.sh b/scripts/menus/menu_post_install.sh index a2289d1..e6ebdcb 100644 --- a/scripts/menus/menu_post_install.sh +++ b/scripts/menus/menu_post_install.sh @@ -43,7 +43,9 @@ show_menu() { done menu_items+=("$(printf "%2d %-40s" "$((${#scripts[@]}+1))" "$(translate "Return to Main Menu")")" "") - + + cleanup + script_selection=$(whiptail --title "$(translate "Post-Installation Scripts Menu")" \ --menu "\n$HEADER" 20 78 $((${#scripts[@]}+1)) \ "${menu_items[@]}" 3>&1 1>&2 2>&3) @@ -67,4 +69,9 @@ show_menu() { done } + +if [[ "$LANGUAGE" != "en" ]]; then + msg_lang "$(translate "Generating automatic translations...")" +fi + show_menu \ No newline at end of file