1

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

1 Answer 1

2

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

3
  • but what about the variable LANGUAGE ? typing locale shows an entry for LANGUAGE as well.
    – deepak
    Dec 6, 2012 at 14:42
  • Updated my answer .. please check.
    – Napster_X
    Dec 6, 2012 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, 2012 at 15:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .