Pages

Wednesday, June 13, 2012

How do I change the language via a terminal? Ubuntu

You can simple change the default language using terminal in Ubuntu. Try the following steps to do so.

To know your current default language settings
 
1, type locale, hit Enter. This will display your current settings. To change these settings
2, type sudo gedit /etc/default/locale
change the following line in file with your language code. Save and exit

    LANG="en_US"
    LANGUAGE="en_US:en"

3, Also change these two lines in sudo gedit ~/.pam_environment. Save and exit after editing

    LANG=en_US
    LANGUAGE=en_US


4, Reboot your system using  sudo reboot


5, Check whether the settings  are changed or not by  type locale in terminal

No comments:

Post a Comment