Jump to content
  • 0
Sign in to follow this  
neirocha

error setting sistem language to Portuguese Brazil

Question

I'm trying to change the language to my system already for days , changed the locale.gen , I made a list eselect locale and among others, and is giving the error below .

to run the command

#locale
locale : Can not set LC_CTYPE to default locale : No such file or directory
locale : Can not set LC_MESSAGES to default locale : No such file or directory
locale : Can not set LC_ALL to default locale : No such file or directory

LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE=C
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
 
The system does not change to pt_BR
 
I give a export LANG = pt_BR.UTF -8

The system changes the location, but after restarting it back to the default
 
who can help me , I thank
Neirocha - I'm Brazilian - do not speak English used the google translator - if any error written excuse me

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
$ cat /usr/share/i18n/SUPPORTED | grep BR
pt_BR.UTF-8 UTF-8
pt_BR ISO-8859-1
 

 

put 

 

pt_BR.UTF-8 UTF-8

 

in /etc/locale.gen

 

then run 

 

#locale-gen

 

nano  ~/.bashrc

export LANG="pt_BR.UTF-8"

export LC_COLLATE="C"
 

For a system-wide default locale:

root #env-update && source /etc/profile

For a user-specific locale:

 

user $source ~/.bashrc
 
 
 
 
xfce ~ # locale
LANG=pt_BR.UTF-8
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC="pt_BR.UTF-8"
LC_TIME="pt_BR.UTF-8"
LC_COLLATE=C
LC_MONETARY="pt_BR.UTF-8"
LC_MESSAGES="pt_BR.UTF-8"
LC_PAPER="pt_BR.UTF-8"
LC_NAME="pt_BR.UTF-8"
LC_ADDRESS="pt_BR.UTF-8"
LC_TELEPHONE="pt_BR.UTF-8"
LC_MEASUREMENT="pt_BR.UTF-8"
LC_IDENTIFICATION="pt_BR.UTF-8"
LC_ALL=
 
 
# nano /etc/portage/make.conf
 
LINGUAS="pt_BR"

Share this post


Link to post
Share on other sites
  • 0

I mentioned that the procedure did not work , the system does not translate . and continues the error.

 

lenovo neirocha # locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE=C
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
 

when I run export it changes the variables , so restart it returns the standard

 

I'm using xfce

Share this post


Link to post
Share on other sites
  • 0

please post output of 

 

cat ~/.bashrc

cat /etc/locale.gen

#locale-gen

 

i downloaded a stage3 and did above commands. 

it worked for me.

 

i had errors at first because of typos.

quote 'I give a export LANG = pt_BR.UTF -8' 

has a typo. space between F -

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...