LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   -How to add other languages in Etch/Gnome ? (https://www.linuxquestions.org/questions/debian-26/how-to-add-other-languages-in-etch-gnome-544787/)

el amigo* 04-10-2007 07:40 AM

-How to add other languages in Etch/Gnome ?
 
Hi all,

I successfully installed Debian Etch 4.0r0 on 2 PC's yesterday. I performed that install with the first CD (i386), in french, so when I boot, the GDM option for languages offers me french & english. I also need spanish (my family is multi-lingual).

In Fedora & Ubuntu, it was very easy, but in Debian, I don't find the "add other language" option...

-Does any of you have an idea to help me out ?

Thank you very much in advance !

cgjones 04-10-2007 11:27 AM

It looks like Ubuntu uses a program called language-selector, which doesn't appear to be available in Debian.

I think you can add a language in Debian by editing /etc/locale.gen and then running locale-gen. I've never done this before, but I'm pretty sure this should work. You probably should read the man pages for locale.gen and locale-gen before you try it.

yanik 04-10-2007 12:33 PM

as root, try dpkg-reconfigure locales, choose your locales and they will then appear in GDM

cgjones 04-10-2007 01:55 PM

Quote:

Originally Posted by yanik
as root, try dpkg-reconfigure locales, choose your locales and they will then appear in GDM

Oh man, I can't believe I didn't think of that.

el amigo* 04-10-2007 03:47 PM

Thank you both for your input.

I did (as root), dpkg-reconfigure locales, chose my locales and they indeed appeared in GDM.

Now my problem is whenever I try to boot in spanish, I get an error message saying this language doesn't exist, and it boots me into the default language...

I am missing something for sure...

cgjones 04-10-2007 03:52 PM

You could try the following command to see if the locale you picked is valid.
Code:

validlocale locale

el amigo* 04-12-2007 09:32 AM

This is what I get :

PHP Code:

spc2:/home/martin# validlocale locale
locale 'locale' not available
locale ISO
-8859-


Dutch Master 04-12-2007 09:36 AM

Replace locale with es, so the command would be:
Code:

validlocale es

el amigo* 04-12-2007 02:22 PM

it gives me:
PHP Code:

spc2:/home/martin# validlocale es
locale 'es' not available
es ISO
-8859-


cgjones 04-12-2007 02:43 PM

When you ran dpkg-reconfigure locales, what locale(s) did you choose?

el amigo* 04-13-2007 07:08 AM

here it is :

PHP Code:

spc2:/home/martin# dpkg-reconfigure locales
Generating locales (this might take a while)...
  
fr_FR.UTF-8... done
  en_US
.ISO-8859-1... done
  en_US
.ISO-8859-15... done
  en_US
.UTF-8... done
  es_AR
.ISO-8859-1... done
  es_AR
.UTF-8... done
  es_DO
.ISO-8859-1... done
  es_DO
.UTF-8... done
  es_MX
.ISO-8859-1... done
  es_MX
.UTF-8... done
  fr_FR
.ISO-8859-1... done
  es_BO
.ISO-8859-1... done
  es_BO
.UTF-8... done
  es_CL
.ISO-8859-1... done
  es_CL
.UTF-8... done
  es_CO
.ISO-8859-1... done
  es_CO
.UTF-8... done
  es_CR
.ISO-8859-1... done
  es_CR
.UTF-8... done
  es_EC
.ISO-8859-1... done
  es_EC
.UTF-8... done
  es_ES
.ISO-8859-1... done
  es_ES
.UTF-8... done
  es_ES
.ISO-8859-15@euro... done
  es_GT
.ISO-8859-1... done
  es_GT
.UTF-8... done
  es_HN
.ISO-8859-1... done
  es_HN
.UTF-8... done
  es_NI
.ISO-8859-1... done
  es_NI
.UTF-8... done
  es_PA
.ISO-8859-1... done
  es_PA
.UTF-8... done
  es_PE
.ISO-8859-1... done
  es_PE
.UTF-8... done
  es_PR
.ISO-8859-1... done
  es_PR
.UTF-8... done
  es_PY
.ISO-8859-1... done
  es_PY
.UTF-8... done
  es_SV
.ISO-8859-1... done
  es_SV
.UTF-8... done
  es_US
.ISO-8859-1... done
  es_US
.UTF-8... done
  es_UY
.ISO-8859-1... done
  es_UY
.UTF-8... done
  es_VE
.ISO-8859-1... done
  es_VE
.UTF-8... done
Generation complete
.
spc2:/home/martin# validlocale es
locale 'es' not available
es ISO
-8859-


cgjones 04-13-2007 01:42 PM

When you run dpkg-reconfigure locales, you should get a list of locales to choose from. Are you getting a list, or is the output you posted all you are getting.

el amigo* 04-13-2007 02:15 PM

Thank you to keep assisting me.

Indeed,when I run dpkg-reconfigure locales, I get a long list.

What I did was selecting all spanish ones (the ones starting with es).

It is rather strange...

The output on my last post is the result of the selection, followed by what I get issuing validlocale es...

cgjones 04-13-2007 02:27 PM

Try the following command and post the results.
Code:

validlocale es_ES.UTF-8

el amigo* 04-13-2007 04:59 PM

seems good :

PHP Code:

spc2:/home/martin# validlocale es_ES.UTF-8
locale 'es_ES.UTF-8' valid and available 



All times are GMT -5. The time now is 01:49 AM.