From ArchWiki
Revision as of 14:43, 12 May 2006 by Itai (talk | contribs) (configuring locales - not arch-specific)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

For you 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.