ryan wang's picture

Hello.

I want to set my locale to Japanese. (showing Japanese output when I type  ls command in a terminal)

I tried to install the language pack, and set the environment variable LANG, but it doesn't work. I have googled that and tried some ways but still can't slove this problem. Since TurnKey Linux Virtual Appliance is only en-GB locale, I think this is a common issue. If someone know how to do that please help me. You will be very appreciated. Thanks!

 

I am using Ruby on Rails appliance. Some thing i have tried like

apt-get install language-pack-ja
export LANG=ja

 

 

Forum: 
Liraz Siri's picture

Configuring locale in Ubuntu hardy is more difficult than it should be. First you generate the locale like this:

locale-gen ja_JP.UTF-8

You can find a list of locale codes here. Then you edit /etc/environment to replace the LANG variable.

In later versions of Ubuntu there is the localeconf package. FWIW, when the next version of Hardy comes out in April we'll release new versions of the appliances. Debian support is also planned, and configuring locale in Debian Lenny is also pretty easy:

dpkg-reconfigure locales

Add new comment