Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
when i installed my Linux, I installed two languages ,Chinese and English,and Chinese is the default language.
But now i want change the default language to English.
i have tried using /usr/bin/redhat-config-language to make the change ,
but it doesn't work.When i restart X,the language is still Chinese.
what should i do to change the default language?
And my Linux is Redhat.
in a shell prompt to launch the Language Configuration Tool. If you are not root, it will prompt you for the root password to continue. This should work. At least that is what the RH 9.0 official guide says.
1) check what your current locale says; open a terminal/console and type
locale
you should get a list. all the lines should have the same locale name at the end of them, something like "en_US.UTF-8" (this depends on the locale _you_ have, but it's in the same format). you may write that down, in case you wish to switch back to the old locale after this. now let's change the default language, or, to say it better, let's change either LC_LANG or LC_ALL. difference between them is that LC_LANG sets the language used but leaves everything else as it is (the way dates and currencies are shown etc.), but LC_ALL means that every locale is set to the new one...I guess you should try LC_ALL, so do like this (in terminal/console):
Code:
locale -a | more
(now you'll get a list of locales, choose the one that fits you, like en_US.iso885915. put the one you want into the next LC_ALL= -command like on the example below..)
Code:
LC_ALL=en_US.iso885915
export LC_ALL
now restart your X and see if anything has changed if it did, you've succeeded. if it didn't, something's wrong...anyway, if you want to switch back to the old locale (the one you wrote down from after locale command), just do
I'm not sure whether this stuff is "saved" so that when you reboot it will be the new locale you set up, or the old one. if after reboot your language-settings are reverted back to chinese, put the code
Code:
LC_ALL=en_US.iso885915
export LC_ALL
(or put anything you just want instead of en_US.iso885915) into some bootscript, like /etc/rc.local or then into your /home/username/.bash_profile.
it doesn't work.
i change the language with the below code:
LC_ALL=en_US.iso885915
export LC_ALL
it only made the Chinese filename display uncorrectly,but the terminal can still display in Chinese.
and what i want is to let every thing display in English,including menu terminal ,and so.
Quote:
Originally posted by b0uncer mm..try this one out:
1) check what your current locale says; open a terminal/console and type
locale
you should get a list. all the lines should have the same locale name at the end of them, something like "en_US.UTF-8" (this depends on the locale _you_ have, but it's in the same format). you may write that down, in case you wish to switch back to the old locale after this. now let's change the default language, or, to say it better, let's change either LC_LANG or LC_ALL. difference between them is that LC_LANG sets the language used but leaves everything else as it is (the way dates and currencies are shown etc.), but LC_ALL means that every locale is set to the new one...I guess you should try LC_ALL, so do like this (in terminal/console):
Code:
locale -a | more
(now you'll get a list of locales, choose the one that fits you, like en_US.iso885915. put the one you want into the next LC_ALL= -command like on the example below..)
Code:
LC_ALL=en_US.iso885915
export LC_ALL
now restart your X and see if anything has changed if it did, you've succeeded. if it didn't, something's wrong...anyway, if you want to switch back to the old locale (the one you wrote down from after locale command), just do
I'm not sure whether this stuff is "saved" so that when you reboot it will be the new locale you set up, or the old one. if after reboot your language-settings are reverted back to chinese, put the code
Code:
LC_ALL=en_US.iso885915
export LC_ALL
(or put anything you just want instead of en_US.iso885915) into some bootscript, like /etc/rc.local or then into your /home/username/.bash_profile.
i had used redhat-config-language.
but it didn't work.
i used it to change the default language,and it told me to restart X,but when i started X, its default language is still Chinese,and nothing is changed.I launch redhat-config-language again,and it still told me the default language is Chinese.
Quote:
Originally posted by LinuxLala type
redhat-config-language
in a shell prompt to launch the Language Configuration Tool. If you are not root, it will prompt you for the root password to continue. This should work. At least that is what the RH 9.0 official guide says.
Sorry but I actually selected the default to be english during the installation progress.
But now, I found that the system hide all the files that has been named in chinese...
i.e., i cant access any file which has been named with a chinese file name....
Is there anyway to amend this bit? I stil want to retain the system interface to be in English.
Thz..
perhaps your system "hides" the files whose names it can't display...if it uses english and the names are in chinese, then it may get problems so it simply puts them aside (only an assumption).
if you change locales, then the one you need to change is LC_CTYPE I think. it manages just the charsets, like if I use english language but want to use some scandinavian charset, I use some scandinavian LC_CTYPE and english LC_LANG etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.