Changing locale language in Gentoo Linux

1

2

I am trying to switch from French to English.

I did:

export LANG="en_EN.UTF-8"
env-update

I appears to work, but when I open a new SSH window it remains in French!

yarek

Posted 2012-12-11T10:09:10.083

Reputation: 371

2This is (quite obviously) not a programming question. Voting to close and move to Super User. – unwind – 2012-12-11T10:11:25.823

You are probably looking for ~/.bashrc, or /etc/env.d/02locale, see docs: http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap2_pre1 voting for close.

– None – 2012-12-11T10:13:09.840

Answers

3

First, make sure you 'activated' the locale you want to use, edit /etc/locale.gen and uncomment the following line:

en_US.UTF-8 UTF-8.

Then, as root, you must run:

# locale-gen

You can now set the system locale by using eselect (which will create a file in env.d containing LANG="en_EN.UTF-8" and run env-update):

# eselect locale set en_US.utf8

Marin Hannache

Posted 2012-12-11T10:09:10.083

Reputation: 63