View previous topic :: View next topic |
Author |
Message |
Paapaa l33t
Joined: 14 Aug 2005 Posts: 955 Location: Finland
|
Posted: Sun Jan 08, 2006 9:22 pm Post subject: POSIX locale == en_US or en_GB?? |
|
|
I just started to use UTF-8. I'm actually a Finnish user but want to see everything in English. Previously I've been using POSIX (default) locale.
1. Is POSIX locale closer to en_GB or en_US? I just want to keep things unaltered.
2. What are the main differences between en_GB and en_US considering LC_MESSAGES or is there any difference? |
|
Back to top |
|
|
ovokinder n00b
Joined: 27 Feb 2005 Posts: 13
|
Posted: Sun Jan 08, 2006 11:07 pm Post subject: |
|
|
I'm not sure what the differences are between en_US and en_GB, but if you want to use finnish locales and english messages, try something like this:
/etc/env.d/02locale
Code: |
LANG="en_GB.UTF-8"
LC_CTYPE="pt_PT.UTF-8"
LC_NUMERIC="pt_PT.UTF-8"
LC_TIME="pt_PT.UTF-8"
LC_COLLATE="pt_PT.UTF-8"
LC_MONETARY="pt_PT.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="pt_PT.UTF-8"
LC_NAME="pt_PT.UTF-8"
LC_ADDRESS="pt_PT.UTF-8"
LC_TELEPHONE="pt_PT.UTF-8"
LC_MEASUREMENT="pt_PT.UTF-8"
LC_IDENTIFICATION="pt_PT.UTF-8"
LC_ALL=""
|
...then env-update && source /etc/profile
You'll want to swap pt_PT by your locale
On a side note... usually, you'll only need the LC_MESSAGES to english, but some apps (eg. KVirc) respect LANG, instead of LC_MESSAGES. _________________ Live forever!!! or die trying... |
|
Back to top |
|
|
Paapaa l33t
Joined: 14 Aug 2005 Posts: 955 Location: Finland
|
Posted: Wed Jan 11, 2006 10:01 am Post subject: |
|
|
Thanks, but I already know how to change locales. I just want to know the difference between POSIX, en_US, en_GB when cosidering LC_MESSAGES (ie. the language of a program). Maybe there is no difference? |
|
Back to top |
|
|
maxcow Tux's lil' helper
Joined: 04 Jul 2003 Posts: 126
|
Posted: Wed Jan 11, 2006 2:43 pm Post subject: |
|
|
I think the POSIX locale "C" is usually in en_US. A quick check sows that:
Code: | $ ls /usr/share/locale/en_GB/LC_MESSAGES/* | wc -l
103
ls /usr/share/locale/en_US/LC_MESSAGES/* | wc -l
1 |
Which means there is a significative en_GB translation, but no significative en_US translation, supporting my theory
(btw, the one package "translated" into en_US is gcalctool). |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
|