From f448bad28b3830e9d489b3aeaac86416936f289a Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Fri, 31 Jan 2025 22:09:00 +0100 Subject: [PATCH] Update main_menu.sh --- scripts/menus/main_menu.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/menus/main_menu.sh b/scripts/menus/main_menu.sh index 722e41e..f1889f6 100644 --- a/scripts/menus/main_menu.sh +++ b/scripts/menus/main_menu.sh @@ -11,22 +11,20 @@ # ========================================================== -# Configuration +# Configuration ============================================ REPO_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main" UTILS_URL="https://raw.githubusercontent.com/MacRimi/ProxMenux/main/scripts/utils.sh" BASE_DIR="/usr/local/share/proxmenux" CACHE_FILE="$BASE_DIR/cache.json" VENV_PATH="/opt/googletrans-env" -LANGUAGE=$(jq -r '.language // "en"' "$BASE_DIR/config.json" 2>/dev/null) +# LANGUAGE=$(jq -r '.language // "en"' "$BASE_DIR/config.json" 2>/dev/null) -# Try to load utils.sh from GitHub if ! source <(curl -sSf "$UTILS_URL"); then echo "$(translate 'Error: Could not load utils.sh from') $UTILS_URL" exit 1 fi -# Initialize cache initialize_cache() { if [ ! -f "$CACHE_FILE" ]; then echo "{}" > "$CACHE_FILE" @@ -34,12 +32,13 @@ initialize_cache() { fi } - # Load language from JSON file load_language() { if [ -f "$CONFIG_FILE" ]; then LANGUAGE=$(jq -r '.language' "$CONFIG_FILE") fi } +# ========================================================== + show_menu() { while true; do