Results 1 to 8 of 8

Thread: How to change locale from "en_US.utf8"

  1. #1
    Join Date
    Jul 2008
    Location
    Italy
    Beans
    45

    How to change locale from "en_US.utf8"

    Would someone please let me know how to change the default locale in Ubuntu 10.04.

    In System/Administration/Language Support both Language and Text have been set to English (Denmark).
    /etc/default/locale entry is LANG="en_DK.UTF-8".
    /var/lib/locales/supported.d/locale entry is en_DK.UTF-8.

    Yet locale command lists LANG=en_US.utf8, and all LC_ entries as "en_US.utf8".

    The machine has been reset many a time.

    Thanks in anticipation!

    teoman

  2. #2
    Join Date
    Sep 2009
    Location
    England, UK
    Beans
    189
    Distro
    Xubuntu

    Re: How to change locale from "en_US.utf8"

    Hi,

    AFAIK locals don't get generated on each boot, have you run local-gen (as root??) since changing your settings?

  3. #3
    Join Date
    Jul 2008
    Location
    Italy
    Beans
    45

    Re: How to change locale from "en_US.utf8"

    Yes, I have. It listed en_DK.UTF-8 as up-to-date.
    By the way, I have Hardy and Jaunty installed on this same laptop, they both behave good.

  4. #4
    Join Date
    Aug 2009
    Location
    UK
    Beans
    204
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to change locale from "en_US.utf8"

    You could try this tip:-

    Tip #3 - Getting rid of unnecessary locale data - For this tip, you need to download the "localepurge" package found in Synaptic Package Manager. "localepurge" is just a simple script to recover diskspace wasted for unneeded locale files and localized man pages. It will automagically be invoked upon completion of any apt installation run.

    To open Synaptic Package Manager, follow the instructions in Tip #1. After opening up Synaptic Package Manager, click the Sections button on the bottom left hand corner of the window, if it is not already clicked. Next, at the top of the Synaptic Package Manager window, click the Search button. In the search window, key in the following text :
    Quote:
    localepurge
    Did the "localepurge" package popup in the package window? It probably did, unless you do not have the correct Repositories. Now, click on the box next to the "localepurge" package name. Click on Mark for Installation. Now click the Apply button at the top of the window and wait for the downloading and installing of the "localepurge" package to finish. Once it is done, a new window should popup that has a bunch of abbreviations on it. for example:
    Quote:
    en
    fr
    po
    sp
    ka
    etc...
    You want to select the abbreviation of the language that you speak, or use with Ubuntu, ignoring the capitalized ones. For example, I speak english, so I would select the "en" abbreviation. A french speaker would select the "fr" abbreviation. So on and so forth... Then click next. All done!



    Try at your own risk, it worked me, may not for you.


    Luck

  5. #5
    Join Date
    Jul 2008
    Location
    Italy
    Beans
    45

    Re: How to change locale from "en_US.utf8"

    Thanks for your tip jimmers. However, my problem is not superfluous locale data. I am taking the advice at the bottom of Synaptic's description of localepurge: ..simply don't use this package.

  6. #6
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,505
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to change locale from "en_US.utf8"

    Quote Originally Posted by septekin View Post
    Would someone please let me know how to change the default locale in Ubuntu 10.04.

    In System/Administration/Language Support both Language and Text have been set to English (Denmark).
    /etc/default/locale entry is LANG="en_DK.UTF-8".
    /var/lib/locales/supported.d/locale entry is en_DK.UTF-8.

    Yet locale command lists LANG=en_US.utf8, and all LC_ entries as "en_US.utf8".

    The machine has been reset many a time.

    Thanks in anticipation!

    teoman
    Try:
    Code:
    sudo dpkg-reconfigure locales
    and:
    http://ubuntuguide.org/wiki/Ubuntu_E...mmand_line_way
    http://www.ubuntugeek.com/how-to-sel...on-ubuntu.html
    Last edited by dcstar; July 22nd, 2010 at 08:40 AM.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  7. #7
    Join Date
    Jul 2008
    Location
    Italy
    Beans
    45

    Re: How to change locale from "en_US.utf8"

    Thank you dcstar. I'd already tried dpkg-reconfigure locales with no luck. I've just checked the two articles, they don't suggest anything that I have not already tried.
    However, my locale now is listing correctly, after I put a line in /etc/bash.bashrc that reads "source /etc/default/locale", thanks to an article by jered of slicehost! Since the command locale is giving the right result now I have to mark this thread as solved although my real problem is not: both Firefox and Thunderbird are still conforming to the US format.

    Thanks to all who tried to help.

  8. #8
    Join Date
    Sep 2009
    Beans
    5

    Re: How to change locale from "en_US.utf8"

    I have the same problem in ubuntu 10.04:
    http://ubuntuforums.org/showthread.p...9#post10956239

    And finally it is resolved in https://bugs.launchpad.net/ubuntu/+s...or/+bug/666565.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •