El Wed, Apr 10, 2024 at 03:04:17PM +0200, Narcis Garcia deia: > > > > He fet l'export $LANGUAGE=ca_ES i ara ho tinc així > >
Sense $ però ja ho saps. > > ➜ echo $LANGUAGE > > es:ca:en_US > > > > ➜ locale > > LANG=ca_ES.UTF-8 > > LANGUAGE=es:ca:en_US > > LC_CTYPE="ca_ES.UTF-8" > > LC_NUMERIC="ca_ES.UTF-8" > > LC_TIME="ca_ES.UTF-8" > > LC_COLLATE="ca_ES.UTF-8" > > LC_MONETARY="ca_ES.UTF-8" > > LC_MESSAGES="ca_ES.UTF-8" > > LC_PAPER="ca_ES.UTF-8" > > LC_NAME="ca_ES.UTF-8" > > LC_ADDRESS="ca_ES.UTF-8" > > LC_TELEPHONE="ca_ES.UTF-8" > > LC_MEASUREMENT="ca_ES.UTF-8" > > LC_IDENTIFICATION="ca_ES.UTF-8" > > LC_ALL=ca_ES.UTF-8 > > > > jordan@somtic ~ > > ❯ export LANGUAGE=ca:es:en_US > > > > jordan@somtic ~ > > ➜ locale > > LANG=ca_ES.UTF-8 > > LANGUAGE=ca:es:en_US > > LC_CTYPE="ca_ES.UTF-8" > > LC_NUMERIC="ca_ES.UTF-8" > > LC_TIME="ca_ES.UTF-8" > > LC_COLLATE="ca_ES.UTF-8" > > LC_MONETARY="ca_ES.UTF-8" > > LC_MESSAGES="ca_ES.UTF-8" > > LC_PAPER="ca_ES.UTF-8" > > LC_NAME="ca_ES.UTF-8" > > LC_ADDRESS="ca_ES.UTF-8" > > LC_TELEPHONE="ca_ES.UTF-8" > > LC_MEASUREMENT="ca_ES.UTF-8" > > LC_IDENTIFICATION="ca_ES.UTF-8" > > LC_ALL=ca_ES.UTF-8 > > > > Però els missatges del terminal em continuen apareixent en castellà, pel > > man, o per apt. Potser, no hi ha traducció al català per Debian 12? > > Jo tant amb LANGUAGE=ca:es:en_US com amb LANGUAGE= si faig df em surten les capçaleres en català. si poso export LANGUAGE=es:ca:en_US em surten en castellà. Quan vas fer dpkg-reconfigure locales ja vas triar ca_ES.UTF-8, oi ? O vas triar algun altre ca ? > > No és greu, però ho volia per si feia captures de pantalla del terminal > > per fer manuals que sortís en català. > > Igual dic una bestiesa. Però tu fas servir coreutils o rust-coreutils ? Jo faig servir coreutils. Si miro strace df quan tinc el català configurat veig que llegeix openat(AT_FDCWD, "/usr/share/locale/ca/LC_MESSAGES/coreutils.mo", O_RDONLY) = 3 i efectivament a https://packages.debian.org/bookworm/arm64/coreutils/filelist surt el fitxer de traduccions de coreutils Però si miro https://packages.debian.org/bookworm/arm64/rust-coreutils/filelist no veig cap fitxer de traducció ni res a /usr/share/locale (per cap llengua)