Update utils.sh

This commit is contained in:
MacRimi 2025-01-27 16:24:28 +01:00 committed by GitHub
parent 33c133c3d0
commit eab03c5a9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,19 +16,20 @@ LOCAL_VERSION_FILE="$BASE_DIR/version.txt"
MENU_SCRIPT="menu.sh" MENU_SCRIPT="menu.sh"
VENV_PATH="/opt/googletrans-env" VENV_PATH="/opt/googletrans-env"
# Translation context # Translation context
TRANSLATION_CONTEXT="Context: Technical message for Proxmox and IT. Translate:" TRANSLATION_CONTEXT="Context: Technical message for Proxmox and IT. Translate:"
# Color and style definitions # Color and style definitions
YW='\033[33m' # Yellow YW="\033[33m"
BL='\033[36m' # Blue YWB="\033[1;33m"
RD='\033[01;31m' # Red GN="\033[1;92m"
BGN='\033[4;92m' # Background Green RD="\033[01;31m"
GN='\033[32m' # Green CL="\033[m"
CL='\033[m' # Clear BFR="\\r\\033[K"
BFR="\\r\\033[K" # Carriage return HOLD="-"
HOLD="-" # Separator CM="${GN}${CL}"
TAB=" " # Tab TAB="
# Default language # Default language
LANGUAGE="${LANGUAGE:-en}" LANGUAGE="${LANGUAGE:-en}"
@ -64,7 +65,7 @@ msg_ok() {
fi fi
printf "\e[?25h" printf "\e[?25h"
local msg="$1" local msg="$1"
echo -e "${BFR}${CM}${GN}${msg}${CL}" echo -e "${BFR}${TAB}${CM}${GN}${msg}${CL}"
} }
# Display error message # Display error message