Page 1 of 1

What's the difference between LANG & LANGUAGE?

Posted: Fri 23 Jun 2006, 05:31
by sccat
What's the difference between LANG & LANGUAGE?

such as:

export LANG=XXXX
export LANGUAGE=XXXX

Thanks.

Posted: Fri 23 Jun 2006, 15:47
by MU
export LANGUAGE=XXXX

This is not used I think, at least not as standard.

You have 6 or more locale values.
You can see them in /usr/lib/locale/
You can set all togeteher with LC_ALL
export LC_ALL=de_DE

While testing some language-stuff, I found out, that this works good in /etc/profile:
LANG=vi
export $LANG
LC_ALL=vi
export $LC_ALL

Unfortunately some programs crash with such settings (some wizards).
In that case, you must add these 2 lines after the first line in the problematic wizard-script (#!/bin/sh):
export LANG=C
export LC_ALL=C

Mark