I have little experience in the linux environment and for the last few days I’ve been trying to bring an old netbook back to life. And to make this difficult task possible, I’m using Alpine-Linux.
I got a lot of progress installing XFCE4 and the translations of GUI elements to pt_BR. Although the application that manages the calendar is correctly translated to pt_BR, the system DATE is still being displayed in en_US.
OS Name: Alpine Linux v3.17
Xfce Type: 4.16
Distributor: Alpine Linux
CPU: Intel Aton CPU N450 @ 1.66GHz x 2
Memory: 1.9 GiB
GPU: i915 (384.0 MiB)
In the terminal when I use the [date] command it returns the date in en_US.
Wed Dec 21 16:50:31 -02 2022
I need to change the output to the pt_BR language. Thanks in advance if anyone has any information in this regard.
The procedure to enable Portuguese - BRAZIL (BR) (pt_BR) under Alpine Linux is as follows:
- Install Locales support for musl using the apk command:
apk add musl-locales
apk add lang # pull lang packages for existing installed pkgs
- List all locales installed. For example:
locale -a | more
locale -a | grep -i BR
- Set MUSL_LOCPATH using the export command:
- Test it using the date command:
- Add the following to your shell profile file such as $HOME/.profile or $HOME/.bash_profile
Hi, it worked perfectly!
qua dez 21 22:52:20 -02 2022
Thank you very much!
Good to know. I marked it as solved.