Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i've been trying to be able to type korean with ami (in which i was successful), but in the duration of my endevaor i've somehow caused some applications to display korean menus, etc. i'm using kde 3.2.
i remember doing something for $LANG and echo $LANG shows
ko_KR.UTF-8
and i know i changed it somehow. is that why some of my apps have korean menus and stuff?
if so, how can i change it back to english?
try setting locale environment variables(including $LANG) to English (en_US), leaving only LC_CTYPE on ko_KR.UTF-8
put them in ~/.bash_profile or ~/.profile, depends on how you start X and how your distro is set up.
yeah that's what i was thinking but i forgot how i set the $LANG to be in korean...
and i don't have any of the profile files.
even my vi is in korean. i can read korean fine but i'm just not used to seeing it in applications and stuff.
i think i did something like export $LANG something...
is it export $LANG=en_US?
EDIT:
i guess not.
bash-2.05b$ export $LANG=en_US
bash: export: `ko_KR.UTF-8=en_US': not a valid identifier
thanks. but i still have the problem.
i'm pretty sure it's the $LANG varialbe because if i su to root, the variable echos en_US.UTF-8 and vi is in english.
i tried export LANG=en_US.UTF-8 as nonroot and it echos en_US.UTF-8, but if i kill x, it'll turn back to ko_KR.UTF-8.
what's wrong?
what do you mean where?
as a nonroot user i just typed export LANG=en_US.UTF-8 in konsole
temporarily the variable is changed but when i kill x it's reset.
there was no such file in my home directory but i made the file and inserted [export LANG=en_US.UTF-8] without brackets.
that didn't work so i searched for another .bash_profile which was located in /etc/skel. i edited it and this is the file:
Code:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
LANG=en_US.UTF-8
export PATH
export LANG
unset USERNAMEN
i just ladded LANG=... and export LANG. it still didn't work. after i kill x the variable stays the same but after i start x, it turns back to normal.
now i kinda remember editing a file that had just a list of items, and i added about 4 or 5 items at the end of it. some site in chinese told me to do it. forgot which...
EDIT:
i found it now. the file i edited before was /etc/sysconfig/i18n, which reads
how do you launch your X session? startx or DM?
so the X apps are ok now, the problem is that whenever you drop back to the console after ending an X session the variables gets set back to ko_KR?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.