[IMPROVED] Implementar detección de idioma del sistema en cversadm_token.sh
- Añadir detección automática del idioma del shell (BIN_LANG=${LANG:0:2}) - Cargar archivos de mensajes según el idioma del sistema - Seguir política general persistente para todos los scripts bash del proyecto 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
3027fffd61
commit
55029f38f5
1 changed files with 6 additions and 2 deletions
|
@ -46,8 +46,12 @@ head_key_end="END"
|
|||
source "${BIN_HOME}/${BIN_BASE}/${BIN_LIBS}/base.lib"
|
||||
source "${BIN_HOME}/${BIN_BASE}/${BIN_LIBS}/console.lib"
|
||||
|
||||
# Cargar mensajes en español
|
||||
load_messages "${BIN_HOME}/${BIN_BASE}" "${BIN_MESG}" "es" "developers"
|
||||
# CHECK SHELL LANGUAGE
|
||||
BIN_LANG=${LANG:0:2}
|
||||
|
||||
# Cargar mensajes en el idioma del sistema o español por defecto
|
||||
load_messages "${BIN_HOME}/${BIN_BASE}" "${BIN_MESG}" "${BIN_LANG}" "head"
|
||||
load_messages "${BIN_HOME}/${BIN_BASE}" "${BIN_MESG}" "${BIN_LANG}" "developers"
|
||||
|
||||
# Variables globales
|
||||
title="${head_000} ${head_002}"
|
||||
|
|
Loading…
Reference in a new issue