qsgen2: Remove unused elements

This commit is contained in:
Stig-Ørjan Smelror 2024-02-14 15:57:31 +01:00
parent 7fc4a62497
commit ee28d2de9f
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,5 @@
typeset -A qsgenlang
qsgenlang=(
_qsgen2_msg_1 "Uso: qsgen2 add \"Nombre del Sitio\" \"ruta/al/proyecto\""
_qsgen2_msg_2 "- Actualización forzada: Generando todo"
_qsgen2_msg_3 "* %SCRIPT_NAME% no puede analizar este sitio. Saliendo. *"
_qsgen2_msg_4 "Por favor instala Pandoc."

6
qsgen2
View File

@ -69,7 +69,7 @@ if (${globaldebug}); then
done
fi
echo "Sample QSGenLang entry: ${qsgenlang[_qsgen2_msg_1]}"
echo "Sample QSGenLang entry: ${qsgenlang[_qsgen2_msg_2]}"
function _msg() {
local type=$1
@ -77,9 +77,9 @@ function _msg() {
local full_msg=""
for arg in "$@"; do
if [[ -n "${qsgenlang[$arg]}" ]]; then
if [[ -n "${(q)qsgenlang[$arg]}" ]]; then
echo "Found key: $arg" # Debug line to confirm key is found
full_msg+="${qsgenlang[$arg]}"
full_msg+="${(q)qsgenlang[$arg]}"
else
echo "Key not found: $arg" # Debug line for keys not found
full_msg+="$arg"