mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 12:16:53 +00:00
Update utils.sh
This commit is contained in:
parent
33c133c3d0
commit
eab03c5a9a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user