On my Librem 5 I can set LANG=es_ES.UTF-8 and the messages of commands come out in Spanish:
purism@pureos:~$ date
Tue 07 Nov 2023 12:48:20 PM CET
purism@pureos:~$ LANG=es_ES.UTF-8 date
mar 07 nov 2023 12:47:29 CET
(mar means martes, in English Tuesday)
This does not work on the Librem 11. I looked withg strace
into it and saw that on the L5 I have:
purism@pureos:~$ ls -l /usr/lib/locale/
total 5812
drwxr-xr-x 3 root root 4096 Oct 4 05:58 C.UTF-8
-rw-r--r-- 1 root root 5997472 Oct 4 05:59 locale-archive
On the L11 the file locale-archive
is not there. I copied it over from the L5 to the L11 and it seems to work. I removed it again.
What is the correct way to get it?