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 Sat 30 Aug 2014, 18:24
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 Posts_count  
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0384s ][ Queries: 12 (0.0033s) ][ GZIP on ]