Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For setting locale in Ubuntu, what does the LANGUAGE environment variable mean?

It is not defined in Ubuntu Community Docs or on man 1 locale.

Related question: In Ubuntu, what is the difference between en_US:utf8 and en_US: when setting LANGUAGE

share|improve this question
up vote 1 down vote accepted

The LANG environment variable determines the language in which software programs communicate with the user.

More details are here: Ubuntu Wiki - Environment Variables

For Language, Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called LANGUAGE. GNU gettext gives preference to LANGUAGE over LC_ALL and LANG for the purpose of message handling, but you still need to have LANG (or LC_ALL) set to the primary language; This is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set LANGUAGE=sv:de while leaving LANG=sv_SE.

More details can be found here: GNU gettext manual - The LANGUAGE variable

share|improve this answer
but what about the variable LANGUAGE ? typing locale shows an entry for LANGUAGE as well. – deepak Dec 6 '12 at 14:42
Updated my answer .. please check. – GeekRide Dec 6 '12 at 14:56
thanks :-) accepted the answer. one more thing. on my server LANG=en_US.utf8 and LANGUAGE=en_US: what is the difference if i set LANGUAGE=en_US:utf8 ? – deepak Dec 6 '12 at 15:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.