You are not logged in.
Pages: 1
I recently installed Arch on my laptop, and I'd prefer to use English for messages and menus and everything like that, while having sorting, decimals etc (everything else controlled by the locale, really) according to the Swedish locale. I tried setting LOCALE=sv_SE.utf8 and LANG=en_US.utf8 in /etc/rc.conf, but that still gives LANG="sv_SE.utf8" in any given environment. Is there a simple way to set this up? I come from gentoo which has /etc/env.d/02locale where you can set each locale varibale individually, which is handy for someone like me.
Offline
I have my LOCALE=en_US.utf8 in /etc/rc.conf and the following in /etc/profile:
export LANG="en_US.utf8"
export LC_COLLATE="C"
export LC_TIME="sv_SE.utf8"
export LC_MONETARY="sv_SE.utf8"
export LC_MEASUREMENT="sv_SE.utf8"
export LC_CTYPE="sv_SE.utf8"
Of course I also have the following in my .bashrc:
if [ -f /etc/profile ]; then
. /etc/profile
fi
Which results in the following:
$ locale
LANG=en_US.utf8
LC_CTYPE=sv_SE.utf8
LC_NUMERIC="en_US.utf8"
LC_TIME=sv_SE.utf8
LC_COLLATE=C
LC_MONETARY=sv_SE.utf8
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT=sv_SE.utf8
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
Perhaps you could do with setting just LANG=en_US.utf8 and LC_ALL=sv_SE.utf8?
Last edited by [vEX] (2007-10-13 21:14:50)
PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM
Offline
Exactly what I was looking for. Thanks!
Offline
Pages: 1