Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
POSIX locale == en_US or en_GB??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Sun Jan 08, 2006 9:22 pm    Post subject: POSIX locale == en_US or en_GB?? Reply with quote

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
View user's profile Send private message
ovokinder
n00b
n00b


Joined: 27 Feb 2005
Posts: 13

PostPosted: Sun Jan 08, 2006 11:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Wed Jan 11, 2006 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message
maxcow
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 126

PostPosted: Wed Jan 11, 2006 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Wed Jan 11, 2006 2:57 pm    Post subject: Reply with quote

The "C" locale is whatever the author decides to write it in. It is usually US english, but that's just convention; it could be French, or Urdu, or Klingon.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum