What's the difference between LANG & LANGUAGE?

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
sccat
Posts: 160
Joined: Mon 22 Aug 2005, 04:22

What's the difference between LANG & LANGUAGE?

#1 Post by sccat »

What's the difference between LANG & LANGUAGE?

such as:

export LANG=XXXX
export LANGUAGE=XXXX

Thanks.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post 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

Post Reply