Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 18:12
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
locales
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Wed 14 Sep 2005, 02:42    Post subject:  locales  

i don't know a lot about locales

i think "locale" does not set anything ... it just gives information
eg. locale -a tells you the locale names that are recognized as locales ... i suspect they are created by localedef

i think all you need to do is
export LANG=a-valid-locale-name

this will set LANG for all sub processes too

to set LANG for X you would need to
1) kill X
2) export LANG=valid-locale
3) restart X

or you can edit /etc/profile
/etc/profile is only executed by a login shell
so you would have to start a new login shell or restart the old shell as a login shell
it is not good enough to kill X and restart it

or you can edit /etc/profile and source it, like:
1) kill X
2) . /etc/profile
3) restart X

bash will execute /etc/profile if bash is run as sh
if bash is run as bash, it will execute .bash_profile

ash or bash-as-sh will execute the file in $ENV, if any, if it's not a login shell

if you start ash by typing ash
then run mp
the line-drawing chars are the same ... still 3's

as a workaround you can set in /root/.mprc
poor_man_boxes: 1
which looks better
Back to top
View user's profile Send private message 
Alienx


Joined: 06 May 2005
Posts: 141
Location: Rio de Janeiro - Brazil

PostPosted: Wed 14 Sep 2005, 06:13    Post subject:  

I have some little experience in adapting distributions like Slax, Knoppix and Kanotix to brazilian portuguese

so important as LANG=locale (ex. pt_BR)

is LANGUAGE=locale (for gtk apps like gimp)

and LC_ALL=locale

_________________
Sorry, broken english above Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0436s ][ Queries: 11 (0.0085s) ][ GZIP on ]