From eab03c5a9a830437089740aa0d597acab1a8f9c3 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:24:28 +0100 Subject: [PATCH] Update utils.sh --- scripts/utils.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/scripts/utils.sh b/scripts/utils.sh index c32da08..9962514 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -16,19 +16,20 @@ LOCAL_VERSION_FILE="$BASE_DIR/version.txt" MENU_SCRIPT="menu.sh" VENV_PATH="/opt/googletrans-env" + # Translation context TRANSLATION_CONTEXT="Context: Technical message for Proxmox and IT. Translate:" # Color and style definitions -YW='\033[33m' # Yellow -BL='\033[36m' # Blue -RD='\033[01;31m' # Red -BGN='\033[4;92m' # Background Green -GN='\033[32m' # Green -CL='\033[m' # Clear -BFR="\\r\\033[K" # Carriage return -HOLD="-" # Separator -TAB=" " # Tab +YW="\033[33m" +YWB="\033[1;33m" +GN="\033[1;92m" +RD="\033[01;31m" +CL="\033[m" +BFR="\\r\\033[K" +HOLD="-" +CM="${GN}✓${CL}" +TAB=" # Default language LANGUAGE="${LANGUAGE:-en}" @@ -64,7 +65,7 @@ msg_ok() { fi printf "\e[?25h" local msg="$1" - echo -e "${BFR}${CM}${GN}${msg}${CL}" + echo -e "${BFR}${TAB}${CM}${GN}${msg}${CL}" } # Display error message