How to change language to Brazilian Portuguese (pt_BR.UTF-8)

Issues related to hardware problems
Post Reply
dodimcfly
Posts: 1
Joined: 2019/04/16 20:34:38

How to change language to Brazilian Portuguese (pt_BR.UTF-8)

Post by dodimcfly » 2020/08/10 21:49:35

Hi, mey JBoss app send mail messages in Brazilian Portuguese and the default language of CentOS 8 is US English.
[root@rotinasjboss ~]# locale -a
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_COLLATE to default locale: No such file or directory
C
C.utf8
POSIX
en_AG
en_AU
en_AU.utf8
en_BW
en_BW.utf8
en_CA
en_CA.utf8
en_DK
en_DK.utf8
en_GB
en_GB.iso885915
en_GB.utf8
en_HK
en_HK.utf8
en_IE
en_IE.utf8
en_IE@euro
en_IL
en_IN
en_NG
en_NZ
en_NZ.utf8
en_PH
en_PH.utf8
en_SC.utf8
en_SG
en_SG.utf8
en_US
en_US.iso885915
en_US.utf8
en_ZA
en_ZA.utf8
en_ZM
en_ZW
en_ZW.utf8
I setted file /etc/locale.conf, but my app not changed to Brazilian Portuguese language.
[root@rotinasjboss ~]# cat /etc/locale.conf
LANG="pt_BR.UTF-8"
#LANG="en_US.UTF-8"
[root@rotinasjboss ~]# localectl
System Locale: LANG=pt_BR.UTF-8
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp

User avatar
TrevorH
Forum Moderator
Posts: 29667
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to change language to Brazilian Portuguese (pt_BR.UTF-8)

Post by TrevorH » 2020/08/10 22:08:00

Run yum list glibc-langpack\* and pick the right one for your language and then yum install that one.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - Hardware Support”