Difference between revisions of "Locale"

From ArchWiki
Jump to navigation Jump to search
m (Added link to czech version)
Line 3: Line 3:
 
{{i18n_links_start}}
 
{{i18n_links_start}}
 
{{i18n_entry|English|Configuring locales}}
 
{{i18n_entry|English|Configuring locales}}
 +
{{i18n_entry|Česky|Nastavení locales}}
 
{{i18n_entry|Українська|Локаль}}
 
{{i18n_entry|Українська|Локаль}}
 
{{i18n_links_end}}
 
{{i18n_links_end}}

Revision as of 20:06, 20 June 2007

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n entry Template:I18n links end Configuring (adding and removing) locales is a breeze. As super user, edit /etc/locale.gen, uncommenting (removing "#" from the beginning of appropriate lines) the locales you require. Then, run locale-gen. If you now run locale -a, you should see the locales you have specified.

For your locale to come into effect, you must set it in /etc/rc.conf. Pick the desired locale from your earlier locale -a output and edit the default setting of

LOCALE="en_US.utf8"


This is a system-wide setting, so if you have multiple users on your machine, they might prefer to set their own locale in a login script, for example .bashrc. Just add

export LANG="de_DE@euro"

... for example.

Configuring a locale will allow some terminals (such as xterm) to display non-Latin characters properly. If you need bidirectional support (required for Arabic and Hebrew, for instance), consider installing mlterm.