Update main menu

This commit is contained in:
MacRimi 2025-07-08 23:21:11 +02:00
parent c9d172d301
commit 0550aa9bd2
4 changed files with 13 additions and 8 deletions

View File

@ -41,6 +41,7 @@ BASE_DIR="/usr/local/share/proxmenux"
CONFIG_FILE="$BASE_DIR/config.json"
CACHE_FILE="$BASE_DIR/cache.json"
UTILS_FILE="$BASE_DIR/utils.sh"
EMERGENCY_FILE="$BASE_DIR/emergency_repair.sh"
LOCAL_VERSION_FILE="$BASE_DIR/version.txt"
MENU_SCRIPT="menu"
VENV_PATH="/opt/googletrans-env"
@ -349,6 +350,7 @@ install_normal_version() {
FILES=(
"$UTILS_FILE $REPO_URL/scripts/utils.sh"
"$EMERGENCY_FILE $REPO_URL/scripts/emergency_repair.sh"
"$INSTALL_DIR/$MENU_SCRIPT $REPO_URL/$MENU_SCRIPT"
"$LOCAL_VERSION_FILE $REPO_URL/version.txt"
)
@ -366,6 +368,7 @@ install_normal_version() {
done
chmod +x "$INSTALL_DIR/$MENU_SCRIPT"
chmod +x "$EMERGENCY_FILE"
}
####################################################
@ -467,6 +470,7 @@ install_translation_version() {
FILES=(
"$CACHE_FILE $REPO_URL/json/cache.json"
"$UTILS_FILE $REPO_URL/scripts/utils.sh"
"$EMERGENCY_FILE $REPO_URL/scripts/emergency_repair.sh"
"$INSTALL_DIR/$MENU_SCRIPT $REPO_URL/$MENU_SCRIPT"
"$LOCAL_VERSION_FILE $REPO_URL/version.txt"
)
@ -487,6 +491,7 @@ install_translation_version() {
done
chmod +x "$INSTALL_DIR/$MENU_SCRIPT"
chmod +x "$EMERGENCY_FILE"
}
####################################################

View File

@ -48,12 +48,12 @@
"it": "Dischi e archiviazione",
"pt": "Discos e armazenamento"
},
"Network": {
"es": "Red",
"fr": "Réseau",
"de": "Netzwerk",
"it": "Rete",
"pt": "Rede"
"Network Management": {
"es": "Gestión de Red",
"fr": "Gestion de Réseau",
"de": "Netzwerkmanagement",
"it": "Gestione della Rete",
"pt": "Gestão de Rede"
},
"Settings": {
"es": "Configuración",

View File

@ -44,7 +44,7 @@ show_menu() {
4 "$(translate "Create VM from template or script")" \
5 "$(translate "Disk and Storage Manager")" \
6 "$(translate "Proxmox VE Helper Scripts")" \
7 "$(translate "Network")" \
7 "$(translate "Network Management")" \
8 "$(translate "Utilities and Tools")" \
9 "$(translate "Settings")" \
0 "$(translate "Exit")" 2>"$TEMP_FILE"

View File

@ -721,7 +721,7 @@ guided_configuration_cleanup() {
restart_network_service() {
if dialog --title "$(translate "Restart Network")" \
--yesno "$(translate "This will restart the network service and may cause a brief disconnection. Continue?")" 10 60; then
--yesno "\n$(translate "This will restart the network service and may cause a brief disconnection. Continue?")" 10 60; then
show_proxmenux_logo
msg_info "$(translate "Restarting network service...")"