On Wed, Jun 30, 2004 at 02:30:51PM -0300, bulia byak wrote:
[lucas@...408... lucas]$ echo $LANGUAGE es
I don't know why but the only format that works for me is "ru_RU" or "es_ES", not just "ru" or "es". So
I have found that languages only work if I already have the locales generated on the system. Under debian, this is "dpkg-reconfig locale" and you pick a bunch, but I'm not sure about other distros.
I test my configured locales by doing:
LANG=es_MX ls -z
And verifying that both the program (last line) and libc (first line) show up in the correct language. If they just report back the regular "LANG=C" settings, you know it's not config'd:
LANG=es_MX ls -z ls: opci�n inv�lida -- z Pruebe `ls --help' para m�s informaci�n.
good!
LANG=es_ES ls -z ls: invalid option -- z Try `ls --help' for more information.
bad!
:)