diff --git a/include/qsgen2/lang/es_ES b/include/qsgen2/lang/es_ES index 992a543..91cf5cc 100644 --- a/include/qsgen2/lang/es_ES +++ b/include/qsgen2/lang/es_ES @@ -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." diff --git a/qsgen2 b/qsgen2 index 2d87721..4e6db20 100755 --- a/qsgen2 +++ b/qsgen2 @@ -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"