LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   How to set the locale so that...? (http://www.linuxquestions.org/questions/slackware-14/how-to-set-the-locale-so-that-4175435221/)

688a 11-02-2012 03:31 AM

How to set the locale so that...?
 
This question might be silly, but I just don't find a place to set it right, sorry!
The question is: lately I've set the LANG="zh_HK"(which is Chinese) in my lang.sh, things are going fine.
But I just wonder if its possible that the UI not becoming in Chinese? What I want is, when the files or file names whatever are written in Chinese, then show them in Chinese; otherwise in English. I don't want the English-Chinese translation in my UI. I want to see my desktop trash "Trash", not trash in Chinese. Funny thing is, the translation is partial, you would see some button in English and others in Chinese...

Is it possible to do that?

Thx.

Didier Spaier 11-02-2012 04:02 AM

I think that it is possible, but the way of getting this behavior depends on the DE you use. Is it XFCE or KDE?

688a 11-02-2012 05:41 AM

Mine is xfce. Thx.

guanx 11-02-2012 06:19 AM

I think what affects filenames is LC_CTYPE. So set only that to Chinese.

However, it would probably be more convenient for you to use the en_US.UTF-8 locale. If your filenames are already encoded in something else (e.g. big5 or whatever), "convmv" can help you to migrate to utf8.

.

688a 11-02-2012 09:17 PM

Quote:

Originally Posted by guanx (Post 4820376)
I think what affects filenames is LC_CTYPE. So set only that to Chinese.

However, it would probably be more convenient for you to use the en_US.UTF-8 locale. If your filenames are already encoded in something else (e.g. big5 or whatever), "convmv" can help you to migrate to utf8.

.

Thanks.
I tried to set LANG=en_US.UTF-8 and LC_CTYPE=zh_HK. Most of the UI is doing fine. But some applications are showing funny characters!

guanx 11-02-2012 11:26 PM

Quote:

Originally Posted by 688a (Post 4821152)
Thanks.
I tried to set LANG=en_US.UTF-8 and LC_CTYPE=zh_HK. Most of the UI is doing fine. But some applications are showing funny characters!

If you would like to migrate to utf8 then use convmv to convert your old filename, then set everything to en_US.UTF-8 including LC_CTYPE.

688a 11-05-2012 03:46 AM

Quote:

Originally Posted by guanx (Post 4821190)
If you would like to migrate to utf8 then use convmv to convert your old filename, then set everything to en_US.UTF-8 including LC_CTYPE.

Thanks. I will try what you said later :). And I mark this thread as done as well!


All times are GMT -5. The time now is 12:53 AM.