You are not logged in.
Salut,
I prefer the system displaying English texts, though I need German date and number formats. How can I change the date formats?
Thanks in advance,
Stefan
Last edited by vbtricks (2008-05-11 09:50:41)
Offline
I've solved it by doing such:
$ cat /etc/profile.d/_locales.sh
# Locale
export LANG="en_US.utf8"
export LC_NUMERIC="sv_SE.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"
export LC_MESSAGES="en_US.utf8"
And then in my .bashrc I have the following:
if [ -f /etc/profile ]; then
. /etc/profile
fi
/etc/profile will go through all files in /etc/profile.d/ and source them if they are executable (so chmod a+x it).
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
Works perfectly.
Thanks,
Stefan
Offline