mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-05 15:06:53 +00:00
Update main_menu.sh
This commit is contained in:
parent
808afc93b1
commit
c794d5d7fb
@ -34,6 +34,13 @@ initialize_cache() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Load language from JSON file
|
||||||
|
load_language() {
|
||||||
|
if [ -f "$CONFIG_FILE" ]; then
|
||||||
|
LANGUAGE=$(jq -r '.language' "$CONFIG_FILE")
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
show_menu() {
|
show_menu() {
|
||||||
while true; do
|
while true; do
|
||||||
OPTION=$(whiptail --title "$(translate "Main Menu")" --menu "$(translate "Select an option:")" 15 60 5 \
|
OPTION=$(whiptail --title "$(translate "Main Menu")" --menu "$(translate "Select an option:")" 15 60 5 \
|
||||||
@ -59,5 +66,6 @@ done
|
|||||||
|
|
||||||
# Main flow
|
# Main flow
|
||||||
initialize_cache
|
initialize_cache
|
||||||
|
load_language
|
||||||
show_menu
|
show_menu
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user