April 2009
M T W T F S S
« Mar   May »
 12345
6789101112
13141516171819
20212223242526
27282930  

Install new locales on Ubuntu

I’ve spent sometime trying to figure out how to install a locale that I need on one of my servers that runs Ubuntu 8.x. I try to find which package owns the needed file on my laptop that runs kubuntu, but it seems that the file ar not owned by no package.

After googling a bit I’ve found this solution:

1. Check the name of the needed locale:

$ grep es_ES /usr/share/i18n/SUPPORTED
es_ES.UTF-8 UTF-8
es_ES ISO-8859-1
es_ES@euro ISO-8859-15

We want utf8 support, so…

2. Generate choosen locale:

$ sudo locale-gen es_ES.UTF-8
Generating locales...
  es_ES.UTF-8... done
Generation complete.

3. Check it?

$ locale -a
C
en_US.utf8
es_ES
es_ES.utf8
POSIX

That’s all! :-)

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

CAPTCHA image