Difference between revisions of "Locale"

From ArchWiki
Jump to navigation Jump to search
Line 8: Line 8:
  
 
Configuring a proper locale can greatly enhance your Linux experience. For instance, configuring a Hebrew locale will allow you to read Hebrew messages in Gaim.
 
Configuring a proper locale can greatly enhance your Linux experience. For instance, configuring a Hebrew locale will allow you to read Hebrew messages in Gaim.
 +
 +
'''WARNING: Changing your locale to this will not grant you powers to read Hebrew!'''
  
 
[[Category:Internationalisation]]
 
[[Category:Internationalisation]]

Revision as of 16:08, 8 October 2006

Configuring (adding and removing) locales is a breeze. As super user, edit /etc/locale.gen, uncommenting (removing "#" from the beginnings of appropriate lines) the locales you require. Then, run locale-gen. If you now run locale -a, you should see whatever those you have specified.

For your locale to come into effect, you must set an environmental variable. The easiest way to do this is by editing the .bashrc file in your home directory. Add the following line to this file:

export LC_ALL="locale"

For instance,

export LC_ALL="he_IL.utf8"

When you next start bash (upon reboot, for instance), the LC_ALL environmental variable will be set for you.

Configuring a proper locale can greatly enhance your Linux experience. For instance, configuring a Hebrew locale will allow you to read Hebrew messages in Gaim.

WARNING: Changing your locale to this will not grant you powers to read Hebrew!