Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I'm trying to run an application in another language as my current environment. To start out simple, I wanted to change the language of ls.

Here's what I read all over the place (see below for related questions): set LANG to one of the supported locales, e.g.:

LANG=nl_NL.UTF-8 ls /nonexistent

to have it show Dutch (NL) output.

However, I still get English output:

$ LANG=nl_NL.UTF-8 ls -al /nonexistent
ls: cannot access /nonexistent: No such file or directory

My current environment:

$ locale

To be sure, I've checked:

  • The locale is supported:

    $ grep nl_NL /usr/share/i18n/SUPPORTED 
    nl_NL.UTF-8 UTF-8
    nl_NL ISO-8859-1
    nl_NL@euro ISO-8859-15
  • The locale is generated:

    sudo locale-gen nl_NL.UTF-8

    and sudo dpkg-reconfigure locales also shows it's generated.

  • Installed the Dutch language pack (already installed):

    sudo apt-get install language-pack-nl

What else have I tried?

  • Using export to set both LANG and LANGUAGE instead of prepending the command.
  • Setting also LC_ALL.

Ironically, some (only some!) GUI applications are actually in Dutch, but I haven't configured that at all!

enter image description here

I'm on Kubuntu 12.04(.2), as far as that matters.

Similar questions (to no avail):

What's wrong on my system? Where to debug this further?

share|improve this question
up vote 5 down vote accepted

Because LANGUAGE, which takes precedence over LANG, is set and unchanged.

$ LANGUAGE=nl ls /nonexistent
ls: kan geen toegang krijgen tot /nonexistent: Bestand of map bestaat niet

More info is in the GNU gettext documentation:

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.

share|improve this answer
I'd swear I had tried this already. Yet, looking at my shell history, I think this is because I only tried this before generating the locale. Could you include a source for why "LANGUAGE takes precedence over LANG"? Thanks for the heads up. – gertvdijk Jun 23 '13 at 16:03

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.