Update menu

This commit is contained in:
MacRimi 2025-05-22 19:01:38 +02:00
parent a9970199d8
commit c4cd308ba5

3
menu
View File

@ -43,12 +43,13 @@ if [[ -f "$UTILS_FILE" ]]; then
fi fi
# ========================================================== # ==========================================================
show_proxmenux_logo #show_proxmenux_logo
# Initialize language configuration # Initialize language configuration
initialize_config() { initialize_config() {
show_proxmenux_logo
# Check if config file exists and has language field # Check if config file exists and has language field
if [ ! -f "$CONFIG_FILE" ] || [ -z "$(jq -r '.language // empty' "$CONFIG_FILE")" ]; then if [ ! -f "$CONFIG_FILE" ] || [ -z "$(jq -r '.language // empty' "$CONFIG_FILE")" ]; then
LANGUAGE=$(whiptail --title "$(translate "Select Language")" --menu "$(translate "Choose a language for the menu:")" 20 60 12 \ LANGUAGE=$(whiptail --title "$(translate "Select Language")" --menu "$(translate "Choose a language for the menu:")" 20 60 12 \