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 have a remote server which I installed and have been trying to unsuccessfully change the locale to french for a few hours. Below are the contents of my locale files:

    //============ /etc/default/locale

//==================== /var/lib/locales/supported.d/local
fr_FR.UTF-8 UTF-8
en_US.UTF-8 UTF-8
en_GB ISO-8859-1
en_GB.UTF-8 UTF-8
en_GB.ISO-8859-15 ISO-8859-15
fr_BE.UTF-8 UTF-8
fr_CA.UTF-8 UTF-8
fr_CH.UTF-8 UTF-8
fr_LU.UTF-8 UTF-8
fr_FR ISO-8859-1

Everything is still defaulting to english dates and the $ currency in my web app. Is there something else I'm overlooking? I should also mention that I have dpkg re-configured and restarted the server after changes were made.

share|improve this question
up vote 24 down vote accepted

Run the command locale - it should show your current locale.

Generate the locales for french:

sudo locale-gen fr_FR
sudo locale-gen fr_FR.UTF-8

Also, try regenerating the supported locale list by running:

sudo dpkg-reconfigure locales

And update/change the current default locale:

sudo update-locale LANG=fr_FR.UTF-8


Extra steps to try:

  1. Try:

    sudo update-locale LANG="fr_FR.UTF-8" LANGUAGE="fr_FR"
    sudo dpkg-reconfigure locales
  2. Perhaps adding LANG and LANGUAGE in /etc/environment could force a change. Try logout/login or rebooting.

  3. locale will show your current locale for the current user. Perhaps it's worth checking out these files just to be sure no local language variables are set: ~/.profile ~/.bashrc ~/.bash_profile

More info:

share|improve this answer
Jus a quick question. Does the system need to be restarted for changes to take effect? – Dark Star1 Jan 19 '12 at 11:41
I think a logout/login should do it – medigeek Jan 20 '12 at 0:57
wish it did. I ended up having to hardcode the values into the app and updating – Dark Star1 Jan 20 '12 at 2:26
try sudo update-locale LANG="fr_FR.UTF-8" LANGUAGE="fr_FR" and sudo dpkg-reconfigure locales. Finally, perhaps adding LANG and LANGUAGE in /etc/environment could force a change. Try rebooting, maybe it's required for server services. :) – medigeek Jan 20 '12 at 7:57
Also found this question and website that could prove useful:… - – medigeek Jan 20 '12 at 8:01

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.