On Wed, 17 Jan 2007, Iñigo Tejedor Arrondo wrote: > Buenos, perdón por el off-topic, pero tiene que ver con nuestro deporte > favorito... /bin/bash :) > > Lo que quiero hacer: > Es un script, con varias funciones y varios argumentos posibles, uno de > ellos es -a, que ejecuta el script para todos los ficheros de un > directorio. > > El script es multidioma: > case $LANG in > es*) > msg1="hola" > ;; > eu*) > msg1="kaixo" > ;; > en*) > msg1="hello" > ;; > esac
No reinventes la rueda. Usa gettext. $ apt-cache show gettext-base [...] Description: GNU Internationalization utilities for the base system This package includes the gettext and ngettext programs which allow other packages to internationalize the messages given by shell scripts.

