[FIXED] Títulos de diálogos en zettlr_install.sh

- Corregidos títulos en diálogos de confirmación para mostrar acciones claras
- Mejorado formato de mensajes y preguntas de confirmación
- Reemplazadas variables difíciles de leer por textos descriptivos
- Mantenida la estructura de mensajes del proyecto

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Mauro Rosero P. 2025-04-04 10:14:26 -05:00
parent b71ff6069b
commit 23e931fead
Signed by: mrosero
GPG key ID: 83BD2A5F674B7E26

View file

@ -416,13 +416,13 @@ uninstall_zettlr() {
# Mostrar diálogo de confirmación # Mostrar diálogo de confirmación
if command -v dialog &>/dev/null; then if command -v dialog &>/dev/null; then
dialog --title "${head_confirm}" --yesno "¿${head_delete} Zettlr Markdown Editor?" 8 60 dialog --title "${head_delete} Zettlr" --yesno "¿Está seguro que desea ${head_delete} Zettlr Markdown Editor?" 8 60
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "\n${head_info}: ${head_op_error}" echo -e "\n${head_info}: ${head_op_error}"
return 0 return 0
fi fi
else else
read -p "¿${head_delete} Zettlr Markdown Editor? (s/n): " CONFIRM read -p "¿Está seguro que desea ${head_delete} Zettlr Markdown Editor? (s/n): " CONFIRM
if [[ ! "$CONFIRM" =~ ^[Ss]$ ]]; then if [[ ! "$CONFIRM" =~ ^[Ss]$ ]]; then
echo -e "\n${head_info}: ${head_op_error}" echo -e "\n${head_info}: ${head_op_error}"
return 0 return 0
@ -483,7 +483,7 @@ else
if [ $ZETTLR_INSTALLED -eq 1 ]; then if [ $ZETTLR_INSTALLED -eq 1 ]; then
# Preguntar si desea reinstalar # Preguntar si desea reinstalar
if command -v dialog &>/dev/null; then if command -v dialog &>/dev/null; then
dialog --title "${head_confirm}" --yesno "Zettlr ${head_version} ya está instalado. ¿Desea reinstalarlo?" 8 60 dialog --title "Reinstalar Zettlr" --yesno "Zettlr ${head_version} ya está instalado. ¿Desea reinstalarlo?" 8 60
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
uninstall_zettlr && install_zettlr uninstall_zettlr && install_zettlr
fi fi
@ -496,14 +496,14 @@ else
else else
# Preguntar si desea instalar # Preguntar si desea instalar
if command -v dialog &>/dev/null; then if command -v dialog &>/dev/null; then
dialog --title "${head_confirm}" --yesno "¿${head_create} Zettlr Markdown Editor?" 8 60 dialog --title "Instalar Zettlr" --yesno "¿Desea instalar Zettlr Markdown Editor?" 8 60
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
install_zettlr install_zettlr
else else
echo -e "\n${head_info}: ${head_op_error}" echo -e "\n${head_info}: ${head_op_error}"
fi fi
else else
read -p "¿${head_create} Zettlr Markdown Editor? (s/n): " CONFIRM read -p "¿Desea instalar Zettlr Markdown Editor? (s/n): " CONFIRM
if [[ "$CONFIRM" =~ ^[Ss]$ ]]; then if [[ "$CONFIRM" =~ ^[Ss]$ ]]; then
install_zettlr install_zettlr
else else